[
  {
    "id": "KSPM-BP-0001",
    "title": "Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 643 485\" width=\"643\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.54 338.12,366.83 338.12,370.88L338.12,376\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M338.12,286L338.12,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M535.51,295L535.51,355.5C535.51,360.29 338.12,366.08 338.12,370.88L338.12,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M338.12,95L338.12,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,192L334.76,184L341.48,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"273.05\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"338.12\" y=\"331.4\">Workload or routing</tspan><tspan x=\"338.12\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"438.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"535.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"535.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.98\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"338.12\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(338.12,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(338.12,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(535.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(338.12,51.5)\"><rect x=\"-115.82\" y=\"-43.5\" width=\"231.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce runAsNonRoot and</tspan><tspan x=\"0\" y=\"5.6\">Explicit Non-Zero UID in</tspan><tspan x=\"0\" y=\"26.6\">securityContext</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_run_as_non_root_t1\n\ndefault allow = false\n\n# Rule: Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.securityContext.runAsNonRoot according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0001\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1830\" width=\"593\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1297.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 222.49,1235.16 222.49,1245.41L222.49,1363.41\"/><path class=\"pele-marker\" d=\"M222.49,1370.41L219.13,1362.41L225.85,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 477.71,1235.16 477.71,1245.41L477.71,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1357.91L474.35,1349.91L481.07,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1457.41L222.49,1510.91\"/><path class=\"pele-marker\" d=\"M222.49,1517.91L219.13,1509.91L225.85,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1635.16L178.92,1728.39\"/><path class=\"pele-marker\" d=\"M178.92,1735.39L175.56,1727.39L182.28,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1644.05C251.84,1663.47 451.64,1663.47 451.64,1682.89L451.64,1728.39\"/><path class=\"pele-marker\" d=\"M451.64,1735.39L448.28,1727.39L455,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1469.91L477.71,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1735.39L474.35,1727.39L481.07,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.82\" y=\"-43.5\" width=\"231.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce runAsNonRoot and</tspan><tspan x=\"0\" y=\"5.6\">Explicit Non-Zero UID in</tspan><tspan x=\"0\" y=\"26.6\">securityContext</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0001</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1413.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0002",
    "title": "Enforce readOnlyRootFilesystem on All Pod Containers",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce readOnlyRootFilesystem on All Pod Containers.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce readOnlyRootFilesystem on All Pod Containers\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 643 485\" width=\"643\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.53 338.99,366.85 338.99,370.88L338.99,376\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M338.99,286L338.99,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M536.38,295L536.38,355.5C536.38,360.29 338.99,366.08 338.99,370.88L338.99,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M338.99,95L338.99,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,192L335.63,184L342.35,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"273.92\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"338.99\" y=\"331.4\">Workload or routing</tspan><tspan x=\"338.99\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"439.79\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"536.38\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"536.38\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"247.85\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"338.99\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(338.99,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(338.99,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(536.38,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(338.99,51.5)\"><rect x=\"-116.7\" y=\"-43.5\" width=\"233.39\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce</tspan><tspan x=\"0\" y=\"5.6\">readOnlyRootFilesystem on</tspan><tspan x=\"0\" y=\"26.6\">All Pod Containers</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_readonly_root_fs_t1\n\ndefault allow = false\n\n# Rule: Enforce readOnlyRootFilesystem on All Pod Containers\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.readOnlyRootFilesystem according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce readOnlyRootFilesystem on All Pod Containers\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0002\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1830\" width=\"593\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1297.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 222.49,1235.16 222.49,1245.41L222.49,1363.41\"/><path class=\"pele-marker\" d=\"M222.49,1370.41L219.13,1362.41L225.85,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 477.71,1235.16 477.71,1245.41L477.71,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1357.91L474.35,1349.91L481.07,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1457.41L222.49,1510.91\"/><path class=\"pele-marker\" d=\"M222.49,1517.91L219.13,1509.91L225.85,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1635.16L178.92,1728.39\"/><path class=\"pele-marker\" d=\"M178.92,1735.39L175.56,1727.39L182.28,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1644.05C251.84,1663.47 451.64,1663.47 451.64,1682.89L451.64,1728.39\"/><path class=\"pele-marker\" d=\"M451.64,1735.39L448.28,1727.39L455,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1469.91L477.71,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1735.39L474.35,1727.39L481.07,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-116.7\" y=\"-43.5\" width=\"233.39\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce</tspan><tspan x=\"0\" y=\"5.6\">readOnlyRootFilesystem on</tspan><tspan x=\"0\" y=\"26.6\">All Pod Containers</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0002</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1413.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0003",
    "title": "Disallow allowPrivilegeEscalation Across All Container Definitions",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Operational Excellence",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Disallow allowPrivilegeEscalation Across All Container Definitions.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Disallow allowPrivilegeEscalation Across All Container Definitions\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 631 506\" width=\"631\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.76 326.1,387.61 326.1,391.88L326.1,397\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M326.1,307L326.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M523.49,316L523.49,376.5C523.49,381.29 326.1,387.08 326.1,391.88L326.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M326.1,116L326.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,213L322.74,205L329.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"261.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"326.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"326.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"426.89\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"523.49\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"523.49\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"234.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"326.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(326.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(326.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(523.49,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(326.1,62)\"><rect x=\"-103.8\" y=\"-54\" width=\"207.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow</tspan><tspan x=\"0\" y=\"-4.9\">allowPrivilegeEscalation</tspan><tspan x=\"0\" y=\"16.1\">Across All Container</tspan><tspan x=\"0\" y=\"37.1\">Definitions</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_no_privilege_escalation_t1\n\ndefault allow = false\n\n# Rule: Disallow allowPrivilegeEscalation Across All Container Definitions\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.allowPrivilegeEscalation according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Disallow allowPrivilegeEscalation Across All Container Definitions\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0003\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-103.8\" y=\"-54\" width=\"207.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow</tspan><tspan x=\"0\" y=\"-4.9\">allowPrivilegeEscalation</tspan><tspan x=\"0\" y=\"16.1\">Across All Container</tspan><tspan x=\"0\" y=\"37.1\">Definitions</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0003</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0004",
    "title": "Drop All Linux Capabilities (capabilities.drop = [\"ALL\"])",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Drop All Linux Capabilities (capabilities.drop = [\"ALL\"]).",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Drop All Linux Capabilities (capabilities.drop = [&quot;ALL&quot;])\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 641 464\" width=\"641\" height=\"464\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,74L104.27,155\"/><path class=\"pele-marker\" d=\"M104.27,162L100.91,154L107.63,154Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,274L104.27,334.5C104.27,338.56 336.9,345.81 336.9,349.88L336.9,355\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M336.9,265L336.9,355\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M534.3,274L534.3,334.5C534.3,339.29 336.9,345.08 336.9,349.88L336.9,355\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M336.9,74L336.9,164\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,171L333.54,163L340.26,163Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"96.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"110.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"128.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"304\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"319.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"271.83\" y=\"296.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"336.9\" y=\"310.4\">Workload or routing</tspan><tspan x=\"336.9\" y=\"328.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"437.7\" y=\"296.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"534.3\" y=\"310.4\">Image pull by node or runtime</tspan><tspan x=\"534.3\" y=\"328.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"245.76\" y=\"104\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"336.9\" y=\"119.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,50)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,218)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(336.9,409)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(336.9,218)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(534.3,218)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(336.9,41)\"><rect x=\"-114.61\" y=\"-33\" width=\"229.22\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Drop All Linux Capabilities</tspan><tspan x=\"0\" y=\"16.1\">(capabilities.drop = [&quot;ALL&quot;])</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_drop_all_capabilities_t1\n\ndefault allow = false\n\n# Rule: Drop All Linux Capabilities (capabilities.drop = [\"ALL\"])\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.capabilities.drop according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Drop All Linux Capabilities (capabilities.drop = [&quot;ALL&quot;])\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0004\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1809\" width=\"590\" height=\"1809\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1276.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1009.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"501\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"445\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,413L240.96,554\"/><path class=\"pele-marker\" d=\"M240.96,561L237.6,553L244.32,553Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,700.74C202.28,723.07 131.82,723.07 131.82,745.41L131.82,790.91\"/><path class=\"pele-marker\" d=\"M131.82,797.91L128.46,789.91L135.18,789.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,700.74C279.63,723.07 350.1,723.07 350.1,745.41L350.1,790.91\"/><path class=\"pele-marker\" d=\"M350.1,797.91L346.74,789.91L353.46,789.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,863.91L350.1,1062.91\"/><path class=\"pele-marker\" d=\"M350.1,1069.91L346.74,1061.91L353.46,1061.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1163.91C350.1,1173.91 342.1,1173.91 342.1,1183.91L342.1,1203.91C342.1,1214.16 224.98,1214.16 224.98,1224.41L224.98,1342.41\"/><path class=\"pele-marker\" d=\"M224.98,1349.41L221.62,1341.41L228.34,1341.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1163.91C350.1,1173.91 358.1,1173.91 358.1,1183.91L358.1,1203.91C358.1,1214.16 475.21,1214.16 475.21,1224.41L475.21,1329.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1336.91L471.85,1328.91L478.57,1328.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1436.41L224.98,1489.91\"/><path class=\"pele-marker\" d=\"M224.98,1496.91L221.62,1488.91L228.34,1488.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1614.16L181.42,1707.39\"/><path class=\"pele-marker\" d=\"M181.42,1714.39L178.06,1706.39L184.78,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1623.05C254.33,1642.47 449.15,1642.47 449.15,1661.89L449.15,1707.39\"/><path class=\"pele-marker\" d=\"M449.15,1714.39L445.79,1706.39L452.51,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1448.91L475.21,1707.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1714.39L471.85,1706.39L478.57,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1302.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1302.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1035.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1035.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"526.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"526.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"747.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"762.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"747.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"762.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"926.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"940.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"958.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"976.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1226.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1241.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1226.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1241.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1663.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1679.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1663.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1679.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1558.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1574.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,380)\"><rect x=\"-114.61\" y=\"-33\" width=\"229.22\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Drop All Linux Capabilities</tspan><tspan x=\"0\" y=\"16.1\">(capabilities.drop = [&quot;ALL&quot;])</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,642.95)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,830.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,830.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0004</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1116.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1392.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1392.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1569.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1747.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1747.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0005",
    "title": "Enforce RuntimeDefault Seccomp Profile on Pod and Containers",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce RuntimeDefault Seccomp Profile on Pod and Containers.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce RuntimeDefault Seccomp Profile on Pod and Containers\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 631 485\" width=\"631\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.76 326.11,366.61 326.11,370.88L326.11,376\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M326.11,286L326.11,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M523.5,295L523.5,355.5C523.5,360.29 326.11,366.08 326.11,370.88L326.11,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M326.11,95L326.11,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,192L322.75,184L329.47,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"261.04\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"326.11\" y=\"331.4\">Workload or routing</tspan><tspan x=\"326.11\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"426.91\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"523.5\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"523.5\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"234.97\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"326.11\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(326.11,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(326.11,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(523.5,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(326.11,51.5)\"><rect x=\"-103.82\" y=\"-43.5\" width=\"207.63\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RuntimeDefault</tspan><tspan x=\"0\" y=\"5.6\">Seccomp Profile on Pod</tspan><tspan x=\"0\" y=\"26.6\">and Containers</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_seccomp_runtime_default_t1\n\ndefault allow = false\n\n# Rule: Enforce RuntimeDefault Seccomp Profile on Pod and Containers\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.securityContext.seccompProfile.type according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce RuntimeDefault Seccomp Profile on Pod and Containers\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0005\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-103.82\" y=\"-43.5\" width=\"207.63\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RuntimeDefault</tspan><tspan x=\"0\" y=\"5.6\">Seccomp Profile on Pod</tspan><tspan x=\"0\" y=\"26.6\">and Containers</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0005</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0006",
    "title": "Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 629 485\" width=\"629\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.79 324.78,366.59 324.78,370.88L324.78,376\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M324.78,286L324.78,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M522.17,295L522.17,355.5C522.17,360.29 324.78,366.08 324.78,370.88L324.78,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M324.78,95L324.78,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,192L321.42,184L328.14,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"259.7\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"324.78\" y=\"331.4\">Workload or routing</tspan><tspan x=\"324.78\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"425.57\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"522.17\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"522.17\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"233.63\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"324.78\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(324.78,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(324.78,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(522.17,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(324.78,51.5)\"><rect x=\"-102.48\" y=\"-43.5\" width=\"204.96\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Deny hostPID, hostIPC,</tspan><tspan x=\"0\" y=\"5.6\">and hostNetwork Host</tspan><tspan x=\"0\" y=\"26.6\">Namespace Sharing</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_deny_host_namespaces_t1\n\ndefault allow = false\n\n# Rule: Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.hostNetwork according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test an allowed source and a denied source against the actual endpoint",
        "Identity, network reachability, and application permissions are independent. Private networking and DNS require explicit service-specific configuration.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0006\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test an allowed source and a denied source against the actual endpoint\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1830\" width=\"594\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.88\" y=\"1297.91\" width=\"538.65\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 221.37,1235.16 221.37,1245.41L221.37,1363.41\"/><path class=\"pele-marker\" d=\"M221.37,1370.41L218.01,1362.41L224.73,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 478.82,1235.16 478.82,1245.41L478.82,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M478.82,1357.91L475.46,1349.91L482.18,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.37,1457.41L221.37,1510.91\"/><path class=\"pele-marker\" d=\"M221.37,1517.91L218.01,1509.91L224.73,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.8,1635.16L177.8,1728.39\"/><path class=\"pele-marker\" d=\"M177.8,1735.39L174.44,1727.39L181.16,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.72,1644.05C250.72,1663.47 452.76,1663.47 452.76,1682.89L452.76,1728.39\"/><path class=\"pele-marker\" d=\"M452.76,1735.39L449.4,1727.39L456.12,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M478.82,1469.91L478.82,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M478.82,1735.39L475.46,1727.39L482.18,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.51\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.51\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.61\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.37\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.59\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"478.82\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.73\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.8\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"436.7\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"452.76\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"395.85\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"478.82\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-102.48\" y=\"-43.5\" width=\"204.96\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Deny hostPID, hostIPC,</tspan><tspan x=\"0\" y=\"5.6\">and hostNetwork Host</tspan><tspan x=\"0\" y=\"26.6\">Namespace Sharing</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0006</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.37,1413.91)\"><rect x=\"-116.28\" y=\"-43.5\" width=\"232.56\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test an allowed source and</tspan><tspan x=\"0\" y=\"5.6\">a denied source against the</tspan><tspan x=\"0\" y=\"26.6\">actual endpoint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(478.82,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.37,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.8,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(461.79,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0007",
    "title": "Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock).",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock)\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 640 485\" width=\"640\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.58 335.9,366.79 335.9,370.88L335.9,376\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.9,286L335.9,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M533.29,295L533.29,355.5C533.29,360.29 335.9,366.08 335.9,370.88L335.9,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.9,95L335.9,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,192L332.54,184L339.26,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"270.82\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.9\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.9\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"436.69\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"533.29\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"533.29\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"244.75\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.9\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.9,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.9,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(533.29,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.9,51.5)\"><rect x=\"-113.6\" y=\"-43.5\" width=\"227.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Prohibit Sensitive hostPath</tspan><tspan x=\"0\" y=\"5.6\">Volume Mounts (/etc,</tspan><tspan x=\"0\" y=\"26.6\">/var/run/docker.sock)</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_deny_sensitive_hostpath_t1\n\ndefault allow = false\n\n# Rule: Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.volumes[_].hostPath according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock)\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0007\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-113.6\" y=\"-43.5\" width=\"227.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Prohibit Sensitive hostPath</tspan><tspan x=\"0\" y=\"5.6\">Volume Mounts (/etc,</tspan><tspan x=\"0\" y=\"26.6\">/var/run/docker.sock)</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0007</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0008",
    "title": "Enforce Explicit CPU and Memory Resource Limits to Prevent DoS",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Operational Excellence",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit CPU and Memory Resource Limits to Prevent DoS.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit CPU and Memory Resource Limits to Prevent DoS\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 642 485\" width=\"642\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.55 337.65,366.82 337.65,370.88L337.65,376\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.65,286L337.65,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M535.04,295L535.04,355.5C535.04,360.29 337.65,366.08 337.65,370.88L337.65,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.65,95L337.65,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,192L334.29,184L341.01,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.57\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.65\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.65\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"438.44\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"535.04\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"535.04\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.51\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.65\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.65,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.65,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(535.04,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.65,51.5)\"><rect x=\"-115.35\" y=\"-43.5\" width=\"230.7\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Explicit CPU and</tspan><tspan x=\"0\" y=\"5.6\">Memory Resource Limits to</tspan><tspan x=\"0\" y=\"26.6\">Prevent DoS</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_enforce_resource_limits_t1\n\ndefault allow = false\n\n# Rule: Enforce Explicit CPU and Memory Resource Limits to Prevent DoS\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].resources.limits according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce Explicit CPU and Memory Resource Limits to Prevent DoS\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0008\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.35\" y=\"-43.5\" width=\"230.7\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Explicit CPU and</tspan><tspan x=\"0\" y=\"5.6\">Memory Resource Limits to</tspan><tspan x=\"0\" y=\"26.6\">Prevent DoS</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0008</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0009",
    "title": "Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext (Tier-2 • Profile I)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 643 485\" width=\"643\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.54 338.12,366.83 338.12,370.88L338.12,376\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M338.12,286L338.12,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M535.51,295L535.51,355.5C535.51,360.29 338.12,366.08 338.12,370.88L338.12,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M338.12,95L338.12,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,192L334.76,184L341.48,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"273.05\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"338.12\" y=\"331.4\">Workload or routing</tspan><tspan x=\"338.12\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"438.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"535.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"535.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.98\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"338.12\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(338.12,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(338.12,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(535.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(338.12,51.5)\"><rect x=\"-115.82\" y=\"-43.5\" width=\"231.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce runAsNonRoot and</tspan><tspan x=\"0\" y=\"5.6\">Explicit Non-Zero UID in</tspan><tspan x=\"0\" y=\"26.6\">securityContext</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_run_as_non_root_t2\n\ndefault allow = false\n\n# Rule: Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext (Tier-2 • Profile I)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.securityContext.runAsNonRoot according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0009\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1830\" width=\"593\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1297.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 222.49,1235.16 222.49,1245.41L222.49,1363.41\"/><path class=\"pele-marker\" d=\"M222.49,1370.41L219.13,1362.41L225.85,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 477.71,1235.16 477.71,1245.41L477.71,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1357.91L474.35,1349.91L481.07,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1457.41L222.49,1510.91\"/><path class=\"pele-marker\" d=\"M222.49,1517.91L219.13,1509.91L225.85,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1635.16L178.92,1728.39\"/><path class=\"pele-marker\" d=\"M178.92,1735.39L175.56,1727.39L182.28,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1644.05C251.84,1663.47 451.64,1663.47 451.64,1682.89L451.64,1728.39\"/><path class=\"pele-marker\" d=\"M451.64,1735.39L448.28,1727.39L455,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1469.91L477.71,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1735.39L474.35,1727.39L481.07,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.82\" y=\"-43.5\" width=\"231.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce runAsNonRoot and</tspan><tspan x=\"0\" y=\"5.6\">Explicit Non-Zero UID in</tspan><tspan x=\"0\" y=\"26.6\">securityContext</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0009</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1413.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0010",
    "title": "Enforce readOnlyRootFilesystem on All Pod Containers (Tier-2 • Profile J)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce readOnlyRootFilesystem on All Pod Containers.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce readOnlyRootFilesystem on All Pod Containers\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 643 485\" width=\"643\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.53 338.99,366.85 338.99,370.88L338.99,376\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M338.99,286L338.99,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M536.38,295L536.38,355.5C536.38,360.29 338.99,366.08 338.99,370.88L338.99,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M338.99,95L338.99,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,192L335.63,184L342.35,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"273.92\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"338.99\" y=\"331.4\">Workload or routing</tspan><tspan x=\"338.99\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"439.79\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"536.38\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"536.38\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"247.85\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"338.99\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(338.99,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(338.99,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(536.38,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(338.99,51.5)\"><rect x=\"-116.7\" y=\"-43.5\" width=\"233.39\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce</tspan><tspan x=\"0\" y=\"5.6\">readOnlyRootFilesystem on</tspan><tspan x=\"0\" y=\"26.6\">All Pod Containers</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_readonly_root_fs_t2\n\ndefault allow = false\n\n# Rule: Enforce readOnlyRootFilesystem on All Pod Containers (Tier-2 • Profile J)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.readOnlyRootFilesystem according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce readOnlyRootFilesystem on All Pod Containers\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0010\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1830\" width=\"593\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1297.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 222.49,1235.16 222.49,1245.41L222.49,1363.41\"/><path class=\"pele-marker\" d=\"M222.49,1370.41L219.13,1362.41L225.85,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 477.71,1235.16 477.71,1245.41L477.71,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1357.91L474.35,1349.91L481.07,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1457.41L222.49,1510.91\"/><path class=\"pele-marker\" d=\"M222.49,1517.91L219.13,1509.91L225.85,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1635.16L178.92,1728.39\"/><path class=\"pele-marker\" d=\"M178.92,1735.39L175.56,1727.39L182.28,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1644.05C251.84,1663.47 451.64,1663.47 451.64,1682.89L451.64,1728.39\"/><path class=\"pele-marker\" d=\"M451.64,1735.39L448.28,1727.39L455,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1469.91L477.71,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1735.39L474.35,1727.39L481.07,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-116.7\" y=\"-43.5\" width=\"233.39\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce</tspan><tspan x=\"0\" y=\"5.6\">readOnlyRootFilesystem on</tspan><tspan x=\"0\" y=\"26.6\">All Pod Containers</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0010</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1413.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0011",
    "title": "Disallow allowPrivilegeEscalation Across All Container Definitions (Tier-2 • Profile K)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Disallow allowPrivilegeEscalation Across All Container Definitions.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Disallow allowPrivilegeEscalation Across All Container Definitions\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 631 506\" width=\"631\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.76 326.1,387.61 326.1,391.88L326.1,397\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M326.1,307L326.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M523.49,316L523.49,376.5C523.49,381.29 326.1,387.08 326.1,391.88L326.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M326.1,116L326.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,213L322.74,205L329.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"261.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"326.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"326.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"426.89\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"523.49\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"523.49\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"234.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"326.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(326.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(326.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(523.49,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(326.1,62)\"><rect x=\"-103.8\" y=\"-54\" width=\"207.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow</tspan><tspan x=\"0\" y=\"-4.9\">allowPrivilegeEscalation</tspan><tspan x=\"0\" y=\"16.1\">Across All Container</tspan><tspan x=\"0\" y=\"37.1\">Definitions</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_no_privilege_escalation_t2\n\ndefault allow = false\n\n# Rule: Disallow allowPrivilegeEscalation Across All Container Definitions (Tier-2 • Profile K)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.allowPrivilegeEscalation according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Disallow allowPrivilegeEscalation Across All Container Definitions\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0011\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-103.8\" y=\"-54\" width=\"207.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow</tspan><tspan x=\"0\" y=\"-4.9\">allowPrivilegeEscalation</tspan><tspan x=\"0\" y=\"16.1\">Across All Container</tspan><tspan x=\"0\" y=\"37.1\">Definitions</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0011</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0012",
    "title": "Drop All Linux Capabilities (capabilities.drop = [\"ALL\"]) (Tier-2 • Profile L)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Reliability",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Drop All Linux Capabilities (capabilities.drop = [\"ALL\"]).",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Drop All Linux Capabilities (capabilities.drop = [&quot;ALL&quot;])\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 641 464\" width=\"641\" height=\"464\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,74L104.27,155\"/><path class=\"pele-marker\" d=\"M104.27,162L100.91,154L107.63,154Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,274L104.27,334.5C104.27,338.56 336.9,345.81 336.9,349.88L336.9,355\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M336.9,265L336.9,355\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M534.3,274L534.3,334.5C534.3,339.29 336.9,345.08 336.9,349.88L336.9,355\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M336.9,74L336.9,164\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,171L333.54,163L340.26,163Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"96.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"110.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"128.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"304\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"319.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"271.83\" y=\"296.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"336.9\" y=\"310.4\">Workload or routing</tspan><tspan x=\"336.9\" y=\"328.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"437.7\" y=\"296.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"534.3\" y=\"310.4\">Image pull by node or runtime</tspan><tspan x=\"534.3\" y=\"328.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"245.76\" y=\"104\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"336.9\" y=\"119.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,50)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,218)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(336.9,409)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(336.9,218)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(534.3,218)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(336.9,41)\"><rect x=\"-114.61\" y=\"-33\" width=\"229.22\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Drop All Linux Capabilities</tspan><tspan x=\"0\" y=\"16.1\">(capabilities.drop = [&quot;ALL&quot;])</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_drop_all_capabilities_t2\n\ndefault allow = false\n\n# Rule: Drop All Linux Capabilities (capabilities.drop = [\"ALL\"]) (Tier-2 • Profile L)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.capabilities.drop according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Drop All Linux Capabilities (capabilities.drop = [&quot;ALL&quot;])\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0012\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1809\" width=\"590\" height=\"1809\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1276.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1009.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"501\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"445\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,413L240.96,554\"/><path class=\"pele-marker\" d=\"M240.96,561L237.6,553L244.32,553Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,700.74C202.28,723.07 131.82,723.07 131.82,745.41L131.82,790.91\"/><path class=\"pele-marker\" d=\"M131.82,797.91L128.46,789.91L135.18,789.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,700.74C279.63,723.07 350.1,723.07 350.1,745.41L350.1,790.91\"/><path class=\"pele-marker\" d=\"M350.1,797.91L346.74,789.91L353.46,789.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,863.91L350.1,1062.91\"/><path class=\"pele-marker\" d=\"M350.1,1069.91L346.74,1061.91L353.46,1061.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1163.91C350.1,1173.91 342.1,1173.91 342.1,1183.91L342.1,1203.91C342.1,1214.16 224.98,1214.16 224.98,1224.41L224.98,1342.41\"/><path class=\"pele-marker\" d=\"M224.98,1349.41L221.62,1341.41L228.34,1341.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1163.91C350.1,1173.91 358.1,1173.91 358.1,1183.91L358.1,1203.91C358.1,1214.16 475.21,1214.16 475.21,1224.41L475.21,1329.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1336.91L471.85,1328.91L478.57,1328.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1436.41L224.98,1489.91\"/><path class=\"pele-marker\" d=\"M224.98,1496.91L221.62,1488.91L228.34,1488.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1614.16L181.42,1707.39\"/><path class=\"pele-marker\" d=\"M181.42,1714.39L178.06,1706.39L184.78,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1623.05C254.33,1642.47 449.15,1642.47 449.15,1661.89L449.15,1707.39\"/><path class=\"pele-marker\" d=\"M449.15,1714.39L445.79,1706.39L452.51,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1448.91L475.21,1707.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1714.39L471.85,1706.39L478.57,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1302.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1302.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1035.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1035.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"526.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"526.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"747.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"762.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"747.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"762.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"926.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"940.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"958.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"976.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1226.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1241.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1226.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1241.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1663.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1679.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1663.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1679.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1558.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1574.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,380)\"><rect x=\"-114.61\" y=\"-33\" width=\"229.22\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Drop All Linux Capabilities</tspan><tspan x=\"0\" y=\"16.1\">(capabilities.drop = [&quot;ALL&quot;])</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,642.95)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,830.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,830.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0012</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1116.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1392.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1392.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1569.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1747.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1747.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0013",
    "title": "Enforce RuntimeDefault Seccomp Profile on Pod and Containers (Tier-2 • Profile M)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce RuntimeDefault Seccomp Profile on Pod and Containers.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce RuntimeDefault Seccomp Profile on Pod and Containers\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 631 485\" width=\"631\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.76 326.11,366.61 326.11,370.88L326.11,376\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M326.11,286L326.11,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M523.5,295L523.5,355.5C523.5,360.29 326.11,366.08 326.11,370.88L326.11,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M326.11,95L326.11,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,192L322.75,184L329.47,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"261.04\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"326.11\" y=\"331.4\">Workload or routing</tspan><tspan x=\"326.11\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"426.91\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"523.5\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"523.5\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"234.97\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"326.11\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(326.11,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(326.11,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(523.5,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(326.11,51.5)\"><rect x=\"-103.82\" y=\"-43.5\" width=\"207.63\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RuntimeDefault</tspan><tspan x=\"0\" y=\"5.6\">Seccomp Profile on Pod</tspan><tspan x=\"0\" y=\"26.6\">and Containers</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_seccomp_runtime_default_t2\n\ndefault allow = false\n\n# Rule: Enforce RuntimeDefault Seccomp Profile on Pod and Containers (Tier-2 • Profile M)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.securityContext.seccompProfile.type according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce RuntimeDefault Seccomp Profile on Pod and Containers\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0013\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-103.82\" y=\"-43.5\" width=\"207.63\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RuntimeDefault</tspan><tspan x=\"0\" y=\"5.6\">Seccomp Profile on Pod</tspan><tspan x=\"0\" y=\"26.6\">and Containers</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0013</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0014",
    "title": "Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing (Tier-2 • Profile N)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Cost Optimization",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 629 485\" width=\"629\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.79 324.78,366.59 324.78,370.88L324.78,376\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M324.78,286L324.78,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M522.17,295L522.17,355.5C522.17,360.29 324.78,366.08 324.78,370.88L324.78,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M324.78,95L324.78,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,192L321.42,184L328.14,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"259.7\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"324.78\" y=\"331.4\">Workload or routing</tspan><tspan x=\"324.78\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"425.57\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"522.17\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"522.17\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"233.63\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"324.78\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(324.78,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(324.78,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(522.17,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(324.78,51.5)\"><rect x=\"-102.48\" y=\"-43.5\" width=\"204.96\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Deny hostPID, hostIPC,</tspan><tspan x=\"0\" y=\"5.6\">and hostNetwork Host</tspan><tspan x=\"0\" y=\"26.6\">Namespace Sharing</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_deny_host_namespaces_t2\n\ndefault allow = false\n\n# Rule: Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing (Tier-2 • Profile N)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.hostNetwork according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test an allowed source and a denied source against the actual endpoint",
        "Identity, network reachability, and application permissions are independent. Private networking and DNS require explicit service-specific configuration.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0014\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test an allowed source and a denied source against the actual endpoint\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1830\" width=\"594\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.88\" y=\"1297.91\" width=\"538.65\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 221.37,1235.16 221.37,1245.41L221.37,1363.41\"/><path class=\"pele-marker\" d=\"M221.37,1370.41L218.01,1362.41L224.73,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 478.82,1235.16 478.82,1245.41L478.82,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M478.82,1357.91L475.46,1349.91L482.18,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.37,1457.41L221.37,1510.91\"/><path class=\"pele-marker\" d=\"M221.37,1517.91L218.01,1509.91L224.73,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.8,1635.16L177.8,1728.39\"/><path class=\"pele-marker\" d=\"M177.8,1735.39L174.44,1727.39L181.16,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.72,1644.05C250.72,1663.47 452.76,1663.47 452.76,1682.89L452.76,1728.39\"/><path class=\"pele-marker\" d=\"M452.76,1735.39L449.4,1727.39L456.12,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M478.82,1469.91L478.82,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M478.82,1735.39L475.46,1727.39L482.18,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.51\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.51\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.61\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.37\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.59\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"478.82\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.73\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.8\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"436.7\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"452.76\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"395.85\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"478.82\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-102.48\" y=\"-43.5\" width=\"204.96\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Deny hostPID, hostIPC,</tspan><tspan x=\"0\" y=\"5.6\">and hostNetwork Host</tspan><tspan x=\"0\" y=\"26.6\">Namespace Sharing</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0014</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.37,1413.91)\"><rect x=\"-116.28\" y=\"-43.5\" width=\"232.56\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test an allowed source and</tspan><tspan x=\"0\" y=\"5.6\">a denied source against the</tspan><tspan x=\"0\" y=\"26.6\">actual endpoint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(478.82,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.37,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.8,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(461.79,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0015",
    "title": "Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock) (Tier-2 • Profile O)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Performance Efficiency",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock).",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock)\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 640 485\" width=\"640\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.58 335.9,366.79 335.9,370.88L335.9,376\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.9,286L335.9,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M533.29,295L533.29,355.5C533.29,360.29 335.9,366.08 335.9,370.88L335.9,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.9,95L335.9,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,192L332.54,184L339.26,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"270.82\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.9\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.9\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"436.69\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"533.29\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"533.29\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"244.75\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.9\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.9,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.9,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(533.29,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.9,51.5)\"><rect x=\"-113.6\" y=\"-43.5\" width=\"227.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Prohibit Sensitive hostPath</tspan><tspan x=\"0\" y=\"5.6\">Volume Mounts (/etc,</tspan><tspan x=\"0\" y=\"26.6\">/var/run/docker.sock)</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_deny_sensitive_hostpath_t2\n\ndefault allow = false\n\n# Rule: Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock) (Tier-2 • Profile O)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.volumes[_].hostPath according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock)\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0015\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-113.6\" y=\"-43.5\" width=\"227.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Prohibit Sensitive hostPath</tspan><tspan x=\"0\" y=\"5.6\">Volume Mounts (/etc,</tspan><tspan x=\"0\" y=\"26.6\">/var/run/docker.sock)</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0015</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0016",
    "title": "Enforce Explicit CPU and Memory Resource Limits to Prevent DoS (Tier-2 • Profile P)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit CPU and Memory Resource Limits to Prevent DoS.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit CPU and Memory Resource Limits to Prevent DoS\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 642 485\" width=\"642\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.55 337.65,366.82 337.65,370.88L337.65,376\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.65,286L337.65,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M535.04,295L535.04,355.5C535.04,360.29 337.65,366.08 337.65,370.88L337.65,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.65,95L337.65,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,192L334.29,184L341.01,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.57\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.65\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.65\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"438.44\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"535.04\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"535.04\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.51\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.65\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.65,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.65,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(535.04,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.65,51.5)\"><rect x=\"-115.35\" y=\"-43.5\" width=\"230.7\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Explicit CPU and</tspan><tspan x=\"0\" y=\"5.6\">Memory Resource Limits to</tspan><tspan x=\"0\" y=\"26.6\">Prevent DoS</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_enforce_resource_limits_t2\n\ndefault allow = false\n\n# Rule: Enforce Explicit CPU and Memory Resource Limits to Prevent DoS (Tier-2 • Profile P)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].resources.limits according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce Explicit CPU and Memory Resource Limits to Prevent DoS\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0016\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.35\" y=\"-43.5\" width=\"230.7\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Explicit CPU and</tspan><tspan x=\"0\" y=\"5.6\">Memory Resource Limits to</tspan><tspan x=\"0\" y=\"26.6\">Prevent DoS</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0016</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0017",
    "title": "Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext (Tier-3 • Profile Q)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 643 485\" width=\"643\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.54 338.12,366.83 338.12,370.88L338.12,376\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M338.12,286L338.12,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M535.51,295L535.51,355.5C535.51,360.29 338.12,366.08 338.12,370.88L338.12,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M338.12,95L338.12,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,192L334.76,184L341.48,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"273.05\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"338.12\" y=\"331.4\">Workload or routing</tspan><tspan x=\"338.12\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"438.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"535.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"535.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.98\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"338.12\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(338.12,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(338.12,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(535.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(338.12,51.5)\"><rect x=\"-115.82\" y=\"-43.5\" width=\"231.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce runAsNonRoot and</tspan><tspan x=\"0\" y=\"5.6\">Explicit Non-Zero UID in</tspan><tspan x=\"0\" y=\"26.6\">securityContext</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_run_as_non_root_t3\n\ndefault allow = false\n\n# Rule: Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext (Tier-3 • Profile Q)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.securityContext.runAsNonRoot according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0017\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1830\" width=\"593\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1297.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 222.49,1235.16 222.49,1245.41L222.49,1363.41\"/><path class=\"pele-marker\" d=\"M222.49,1370.41L219.13,1362.41L225.85,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 477.71,1235.16 477.71,1245.41L477.71,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1357.91L474.35,1349.91L481.07,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1457.41L222.49,1510.91\"/><path class=\"pele-marker\" d=\"M222.49,1517.91L219.13,1509.91L225.85,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1635.16L178.92,1728.39\"/><path class=\"pele-marker\" d=\"M178.92,1735.39L175.56,1727.39L182.28,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1644.05C251.84,1663.47 451.64,1663.47 451.64,1682.89L451.64,1728.39\"/><path class=\"pele-marker\" d=\"M451.64,1735.39L448.28,1727.39L455,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1469.91L477.71,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1735.39L474.35,1727.39L481.07,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.82\" y=\"-43.5\" width=\"231.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce runAsNonRoot and</tspan><tspan x=\"0\" y=\"5.6\">Explicit Non-Zero UID in</tspan><tspan x=\"0\" y=\"26.6\">securityContext</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0017</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1413.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0018",
    "title": "Enforce readOnlyRootFilesystem on All Pod Containers (Tier-3 • Profile R)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Operational Excellence",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce readOnlyRootFilesystem on All Pod Containers.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce readOnlyRootFilesystem on All Pod Containers\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 643 485\" width=\"643\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.53 338.99,366.85 338.99,370.88L338.99,376\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M338.99,286L338.99,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M536.38,295L536.38,355.5C536.38,360.29 338.99,366.08 338.99,370.88L338.99,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M338.99,95L338.99,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,192L335.63,184L342.35,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"273.92\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"338.99\" y=\"331.4\">Workload or routing</tspan><tspan x=\"338.99\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"439.79\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"536.38\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"536.38\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"247.85\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"338.99\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(338.99,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(338.99,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(536.38,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(338.99,51.5)\"><rect x=\"-116.7\" y=\"-43.5\" width=\"233.39\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce</tspan><tspan x=\"0\" y=\"5.6\">readOnlyRootFilesystem on</tspan><tspan x=\"0\" y=\"26.6\">All Pod Containers</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_readonly_root_fs_t3\n\ndefault allow = false\n\n# Rule: Enforce readOnlyRootFilesystem on All Pod Containers (Tier-3 • Profile R)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.readOnlyRootFilesystem according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce readOnlyRootFilesystem on All Pod Containers\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0018\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1830\" width=\"593\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1297.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 222.49,1235.16 222.49,1245.41L222.49,1363.41\"/><path class=\"pele-marker\" d=\"M222.49,1370.41L219.13,1362.41L225.85,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 477.71,1235.16 477.71,1245.41L477.71,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1357.91L474.35,1349.91L481.07,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1457.41L222.49,1510.91\"/><path class=\"pele-marker\" d=\"M222.49,1517.91L219.13,1509.91L225.85,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1635.16L178.92,1728.39\"/><path class=\"pele-marker\" d=\"M178.92,1735.39L175.56,1727.39L182.28,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1644.05C251.84,1663.47 451.64,1663.47 451.64,1682.89L451.64,1728.39\"/><path class=\"pele-marker\" d=\"M451.64,1735.39L448.28,1727.39L455,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1469.91L477.71,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1735.39L474.35,1727.39L481.07,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-116.7\" y=\"-43.5\" width=\"233.39\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce</tspan><tspan x=\"0\" y=\"5.6\">readOnlyRootFilesystem on</tspan><tspan x=\"0\" y=\"26.6\">All Pod Containers</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0018</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1413.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0019",
    "title": "Disallow allowPrivilegeEscalation Across All Container Definitions (Tier-3 • Profile S)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Disallow allowPrivilegeEscalation Across All Container Definitions.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Disallow allowPrivilegeEscalation Across All Container Definitions\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 631 506\" width=\"631\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.76 326.1,387.61 326.1,391.88L326.1,397\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M326.1,307L326.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M523.49,316L523.49,376.5C523.49,381.29 326.1,387.08 326.1,391.88L326.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M326.1,116L326.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,213L322.74,205L329.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"261.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"326.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"326.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"426.89\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"523.49\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"523.49\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"234.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"326.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(326.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(326.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(523.49,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(326.1,62)\"><rect x=\"-103.8\" y=\"-54\" width=\"207.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow</tspan><tspan x=\"0\" y=\"-4.9\">allowPrivilegeEscalation</tspan><tspan x=\"0\" y=\"16.1\">Across All Container</tspan><tspan x=\"0\" y=\"37.1\">Definitions</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_no_privilege_escalation_t3\n\ndefault allow = false\n\n# Rule: Disallow allowPrivilegeEscalation Across All Container Definitions (Tier-3 • Profile S)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.allowPrivilegeEscalation according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Disallow allowPrivilegeEscalation Across All Container Definitions\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0019\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-103.8\" y=\"-54\" width=\"207.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow</tspan><tspan x=\"0\" y=\"-4.9\">allowPrivilegeEscalation</tspan><tspan x=\"0\" y=\"16.1\">Across All Container</tspan><tspan x=\"0\" y=\"37.1\">Definitions</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0019</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0020",
    "title": "Drop All Linux Capabilities (capabilities.drop = [\"ALL\"]) (Tier-3 • Profile T)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Performance Efficiency",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Drop All Linux Capabilities (capabilities.drop = [\"ALL\"]).",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Drop All Linux Capabilities (capabilities.drop = [&quot;ALL&quot;])\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 641 464\" width=\"641\" height=\"464\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,74L104.27,155\"/><path class=\"pele-marker\" d=\"M104.27,162L100.91,154L107.63,154Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,274L104.27,334.5C104.27,338.56 336.9,345.81 336.9,349.88L336.9,355\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M336.9,265L336.9,355\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M534.3,274L534.3,334.5C534.3,339.29 336.9,345.08 336.9,349.88L336.9,355\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M336.9,74L336.9,164\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,171L333.54,163L340.26,163Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"96.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"110.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"128.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"304\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"319.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"271.83\" y=\"296.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"336.9\" y=\"310.4\">Workload or routing</tspan><tspan x=\"336.9\" y=\"328.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"437.7\" y=\"296.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"534.3\" y=\"310.4\">Image pull by node or runtime</tspan><tspan x=\"534.3\" y=\"328.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"245.76\" y=\"104\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"336.9\" y=\"119.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,50)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,218)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(336.9,409)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(336.9,218)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(534.3,218)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(336.9,41)\"><rect x=\"-114.61\" y=\"-33\" width=\"229.22\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Drop All Linux Capabilities</tspan><tspan x=\"0\" y=\"16.1\">(capabilities.drop = [&quot;ALL&quot;])</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_drop_all_capabilities_t3\n\ndefault allow = false\n\n# Rule: Drop All Linux Capabilities (capabilities.drop = [\"ALL\"]) (Tier-3 • Profile T)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.capabilities.drop according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Drop All Linux Capabilities (capabilities.drop = [&quot;ALL&quot;])\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0020\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1809\" width=\"590\" height=\"1809\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1276.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1009.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"501\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"445\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,413L240.96,554\"/><path class=\"pele-marker\" d=\"M240.96,561L237.6,553L244.32,553Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,700.74C202.28,723.07 131.82,723.07 131.82,745.41L131.82,790.91\"/><path class=\"pele-marker\" d=\"M131.82,797.91L128.46,789.91L135.18,789.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,700.74C279.63,723.07 350.1,723.07 350.1,745.41L350.1,790.91\"/><path class=\"pele-marker\" d=\"M350.1,797.91L346.74,789.91L353.46,789.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,863.91L350.1,1062.91\"/><path class=\"pele-marker\" d=\"M350.1,1069.91L346.74,1061.91L353.46,1061.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1163.91C350.1,1173.91 342.1,1173.91 342.1,1183.91L342.1,1203.91C342.1,1214.16 224.98,1214.16 224.98,1224.41L224.98,1342.41\"/><path class=\"pele-marker\" d=\"M224.98,1349.41L221.62,1341.41L228.34,1341.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1163.91C350.1,1173.91 358.1,1173.91 358.1,1183.91L358.1,1203.91C358.1,1214.16 475.21,1214.16 475.21,1224.41L475.21,1329.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1336.91L471.85,1328.91L478.57,1328.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1436.41L224.98,1489.91\"/><path class=\"pele-marker\" d=\"M224.98,1496.91L221.62,1488.91L228.34,1488.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1614.16L181.42,1707.39\"/><path class=\"pele-marker\" d=\"M181.42,1714.39L178.06,1706.39L184.78,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1623.05C254.33,1642.47 449.15,1642.47 449.15,1661.89L449.15,1707.39\"/><path class=\"pele-marker\" d=\"M449.15,1714.39L445.79,1706.39L452.51,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1448.91L475.21,1707.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1714.39L471.85,1706.39L478.57,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1302.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1302.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1035.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1035.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"526.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"526.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"747.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"762.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"747.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"762.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"926.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"940.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"958.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"976.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1226.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1241.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1226.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1241.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1663.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1679.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1663.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1679.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1558.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1574.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,380)\"><rect x=\"-114.61\" y=\"-33\" width=\"229.22\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Drop All Linux Capabilities</tspan><tspan x=\"0\" y=\"16.1\">(capabilities.drop = [&quot;ALL&quot;])</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,642.95)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,830.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,830.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0020</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1116.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1392.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1392.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1569.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1747.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1747.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0021",
    "title": "Enforce RuntimeDefault Seccomp Profile on Pod and Containers (Tier-3 • Profile U)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Reliability",
    "severity": "Critical",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce RuntimeDefault Seccomp Profile on Pod and Containers.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce RuntimeDefault Seccomp Profile on Pod and Containers\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 631 485\" width=\"631\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.76 326.11,366.61 326.11,370.88L326.11,376\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M326.11,286L326.11,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M523.5,295L523.5,355.5C523.5,360.29 326.11,366.08 326.11,370.88L326.11,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M326.11,95L326.11,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,192L322.75,184L329.47,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"261.04\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"326.11\" y=\"331.4\">Workload or routing</tspan><tspan x=\"326.11\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"426.91\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"523.5\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"523.5\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"234.97\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"326.11\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(326.11,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(326.11,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(523.5,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(326.11,51.5)\"><rect x=\"-103.82\" y=\"-43.5\" width=\"207.63\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RuntimeDefault</tspan><tspan x=\"0\" y=\"5.6\">Seccomp Profile on Pod</tspan><tspan x=\"0\" y=\"26.6\">and Containers</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_seccomp_runtime_default_t3\n\ndefault allow = false\n\n# Rule: Enforce RuntimeDefault Seccomp Profile on Pod and Containers (Tier-3 • Profile U)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.securityContext.seccompProfile.type according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce RuntimeDefault Seccomp Profile on Pod and Containers\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0021\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-103.82\" y=\"-43.5\" width=\"207.63\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RuntimeDefault</tspan><tspan x=\"0\" y=\"5.6\">Seccomp Profile on Pod</tspan><tspan x=\"0\" y=\"26.6\">and Containers</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0021</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0022",
    "title": "Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing (Tier-3 • Profile V)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 629 485\" width=\"629\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.79 324.78,366.59 324.78,370.88L324.78,376\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M324.78,286L324.78,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M522.17,295L522.17,355.5C522.17,360.29 324.78,366.08 324.78,370.88L324.78,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M324.78,95L324.78,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,192L321.42,184L328.14,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"259.7\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"324.78\" y=\"331.4\">Workload or routing</tspan><tspan x=\"324.78\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"425.57\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"522.17\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"522.17\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"233.63\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"324.78\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(324.78,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(324.78,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(522.17,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(324.78,51.5)\"><rect x=\"-102.48\" y=\"-43.5\" width=\"204.96\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Deny hostPID, hostIPC,</tspan><tspan x=\"0\" y=\"5.6\">and hostNetwork Host</tspan><tspan x=\"0\" y=\"26.6\">Namespace Sharing</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_deny_host_namespaces_t3\n\ndefault allow = false\n\n# Rule: Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing (Tier-3 • Profile V)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.hostNetwork according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test an allowed source and a denied source against the actual endpoint",
        "Identity, network reachability, and application permissions are independent. Private networking and DNS require explicit service-specific configuration.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0022\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test an allowed source and a denied source against the actual endpoint\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1830\" width=\"594\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.88\" y=\"1297.91\" width=\"538.65\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 221.37,1235.16 221.37,1245.41L221.37,1363.41\"/><path class=\"pele-marker\" d=\"M221.37,1370.41L218.01,1362.41L224.73,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 478.82,1235.16 478.82,1245.41L478.82,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M478.82,1357.91L475.46,1349.91L482.18,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.37,1457.41L221.37,1510.91\"/><path class=\"pele-marker\" d=\"M221.37,1517.91L218.01,1509.91L224.73,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.8,1635.16L177.8,1728.39\"/><path class=\"pele-marker\" d=\"M177.8,1735.39L174.44,1727.39L181.16,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.72,1644.05C250.72,1663.47 452.76,1663.47 452.76,1682.89L452.76,1728.39\"/><path class=\"pele-marker\" d=\"M452.76,1735.39L449.4,1727.39L456.12,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M478.82,1469.91L478.82,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M478.82,1735.39L475.46,1727.39L482.18,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.51\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.51\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.61\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.37\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.59\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"478.82\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.73\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.8\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"436.7\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"452.76\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"395.85\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"478.82\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-102.48\" y=\"-43.5\" width=\"204.96\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Deny hostPID, hostIPC,</tspan><tspan x=\"0\" y=\"5.6\">and hostNetwork Host</tspan><tspan x=\"0\" y=\"26.6\">Namespace Sharing</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0022</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.37,1413.91)\"><rect x=\"-116.28\" y=\"-43.5\" width=\"232.56\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test an allowed source and</tspan><tspan x=\"0\" y=\"5.6\">a denied source against the</tspan><tspan x=\"0\" y=\"26.6\">actual endpoint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(478.82,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.37,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.8,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(461.79,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0023",
    "title": "Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock) (Tier-3 • Profile W)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Operational Excellence",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock).",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock)\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 640 485\" width=\"640\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.58 335.9,366.79 335.9,370.88L335.9,376\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.9,286L335.9,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M533.29,295L533.29,355.5C533.29,360.29 335.9,366.08 335.9,370.88L335.9,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.9,95L335.9,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,192L332.54,184L339.26,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"270.82\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.9\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.9\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"436.69\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"533.29\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"533.29\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"244.75\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.9\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.9,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.9,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(533.29,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.9,51.5)\"><rect x=\"-113.6\" y=\"-43.5\" width=\"227.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Prohibit Sensitive hostPath</tspan><tspan x=\"0\" y=\"5.6\">Volume Mounts (/etc,</tspan><tspan x=\"0\" y=\"26.6\">/var/run/docker.sock)</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_deny_sensitive_hostpath_t3\n\ndefault allow = false\n\n# Rule: Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock) (Tier-3 • Profile W)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.volumes[_].hostPath according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock)\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0023\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-113.6\" y=\"-43.5\" width=\"227.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Prohibit Sensitive hostPath</tspan><tspan x=\"0\" y=\"5.6\">Volume Mounts (/etc,</tspan><tspan x=\"0\" y=\"26.6\">/var/run/docker.sock)</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0023</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0024",
    "title": "Enforce Explicit CPU and Memory Resource Limits to Prevent DoS (Tier-3 • Profile X)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Cost Optimization",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit CPU and Memory Resource Limits to Prevent DoS.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit CPU and Memory Resource Limits to Prevent DoS\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 642 485\" width=\"642\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.55 337.65,366.82 337.65,370.88L337.65,376\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.65,286L337.65,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M535.04,295L535.04,355.5C535.04,360.29 337.65,366.08 337.65,370.88L337.65,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.65,95L337.65,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,192L334.29,184L341.01,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.57\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.65\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.65\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"438.44\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"535.04\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"535.04\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.51\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.65\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.65,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.65,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(535.04,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.65,51.5)\"><rect x=\"-115.35\" y=\"-43.5\" width=\"230.7\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Explicit CPU and</tspan><tspan x=\"0\" y=\"5.6\">Memory Resource Limits to</tspan><tspan x=\"0\" y=\"26.6\">Prevent DoS</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_enforce_resource_limits_t3\n\ndefault allow = false\n\n# Rule: Enforce Explicit CPU and Memory Resource Limits to Prevent DoS (Tier-3 • Profile X)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].resources.limits according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce Explicit CPU and Memory Resource Limits to Prevent DoS\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0024\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.35\" y=\"-43.5\" width=\"230.7\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Explicit CPU and</tspan><tspan x=\"0\" y=\"5.6\">Memory Resource Limits to</tspan><tspan x=\"0\" y=\"26.6\">Prevent DoS</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0024</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0025",
    "title": "Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext (Tier-4 • Profile Y)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 643 485\" width=\"643\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.54 338.12,366.83 338.12,370.88L338.12,376\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M338.12,286L338.12,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M535.51,295L535.51,355.5C535.51,360.29 338.12,366.08 338.12,370.88L338.12,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M338.12,95L338.12,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,192L334.76,184L341.48,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"273.05\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"338.12\" y=\"331.4\">Workload or routing</tspan><tspan x=\"338.12\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"438.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"535.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"535.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.98\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"338.12\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(338.12,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(338.12,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(535.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(338.12,51.5)\"><rect x=\"-115.82\" y=\"-43.5\" width=\"231.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce runAsNonRoot and</tspan><tspan x=\"0\" y=\"5.6\">Explicit Non-Zero UID in</tspan><tspan x=\"0\" y=\"26.6\">securityContext</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_run_as_non_root_t4\n\ndefault allow = false\n\n# Rule: Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext (Tier-4 • Profile Y)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.securityContext.runAsNonRoot according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0025\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1830\" width=\"593\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1297.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 222.49,1235.16 222.49,1245.41L222.49,1363.41\"/><path class=\"pele-marker\" d=\"M222.49,1370.41L219.13,1362.41L225.85,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 477.71,1235.16 477.71,1245.41L477.71,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1357.91L474.35,1349.91L481.07,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1457.41L222.49,1510.91\"/><path class=\"pele-marker\" d=\"M222.49,1517.91L219.13,1509.91L225.85,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1635.16L178.92,1728.39\"/><path class=\"pele-marker\" d=\"M178.92,1735.39L175.56,1727.39L182.28,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1644.05C251.84,1663.47 451.64,1663.47 451.64,1682.89L451.64,1728.39\"/><path class=\"pele-marker\" d=\"M451.64,1735.39L448.28,1727.39L455,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1469.91L477.71,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1735.39L474.35,1727.39L481.07,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.82\" y=\"-43.5\" width=\"231.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce runAsNonRoot and</tspan><tspan x=\"0\" y=\"5.6\">Explicit Non-Zero UID in</tspan><tspan x=\"0\" y=\"26.6\">securityContext</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0025</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1413.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0026",
    "title": "Enforce readOnlyRootFilesystem on All Pod Containers (Tier-4 • Profile Z)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce readOnlyRootFilesystem on All Pod Containers.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce readOnlyRootFilesystem on All Pod Containers\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 643 485\" width=\"643\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.53 338.99,366.85 338.99,370.88L338.99,376\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M338.99,286L338.99,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M536.38,295L536.38,355.5C536.38,360.29 338.99,366.08 338.99,370.88L338.99,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M338.99,95L338.99,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,192L335.63,184L342.35,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"273.92\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"338.99\" y=\"331.4\">Workload or routing</tspan><tspan x=\"338.99\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"439.79\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"536.38\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"536.38\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"247.85\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"338.99\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(338.99,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(338.99,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(536.38,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(338.99,51.5)\"><rect x=\"-116.7\" y=\"-43.5\" width=\"233.39\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce</tspan><tspan x=\"0\" y=\"5.6\">readOnlyRootFilesystem on</tspan><tspan x=\"0\" y=\"26.6\">All Pod Containers</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_readonly_root_fs_t4\n\ndefault allow = false\n\n# Rule: Enforce readOnlyRootFilesystem on All Pod Containers (Tier-4 • Profile Z)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.readOnlyRootFilesystem according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce readOnlyRootFilesystem on All Pod Containers\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0026\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1830\" width=\"593\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1297.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 222.49,1235.16 222.49,1245.41L222.49,1363.41\"/><path class=\"pele-marker\" d=\"M222.49,1370.41L219.13,1362.41L225.85,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 477.71,1235.16 477.71,1245.41L477.71,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1357.91L474.35,1349.91L481.07,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1457.41L222.49,1510.91\"/><path class=\"pele-marker\" d=\"M222.49,1517.91L219.13,1509.91L225.85,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1635.16L178.92,1728.39\"/><path class=\"pele-marker\" d=\"M178.92,1735.39L175.56,1727.39L182.28,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1644.05C251.84,1663.47 451.64,1663.47 451.64,1682.89L451.64,1728.39\"/><path class=\"pele-marker\" d=\"M451.64,1735.39L448.28,1727.39L455,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1469.91L477.71,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1735.39L474.35,1727.39L481.07,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-116.7\" y=\"-43.5\" width=\"233.39\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce</tspan><tspan x=\"0\" y=\"5.6\">readOnlyRootFilesystem on</tspan><tspan x=\"0\" y=\"26.6\">All Pod Containers</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0026</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1413.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0027",
    "title": "Disallow allowPrivilegeEscalation Across All Container Definitions (Tier-4 • Profile A)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Disallow allowPrivilegeEscalation Across All Container Definitions.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Disallow allowPrivilegeEscalation Across All Container Definitions\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 631 506\" width=\"631\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.76 326.1,387.61 326.1,391.88L326.1,397\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M326.1,307L326.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M523.49,316L523.49,376.5C523.49,381.29 326.1,387.08 326.1,391.88L326.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M326.1,116L326.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,213L322.74,205L329.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"261.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"326.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"326.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"426.89\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"523.49\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"523.49\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"234.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"326.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(326.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(326.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(523.49,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(326.1,62)\"><rect x=\"-103.8\" y=\"-54\" width=\"207.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow</tspan><tspan x=\"0\" y=\"-4.9\">allowPrivilegeEscalation</tspan><tspan x=\"0\" y=\"16.1\">Across All Container</tspan><tspan x=\"0\" y=\"37.1\">Definitions</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_no_privilege_escalation_t4\n\ndefault allow = false\n\n# Rule: Disallow allowPrivilegeEscalation Across All Container Definitions (Tier-4 • Profile A)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.allowPrivilegeEscalation according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Disallow allowPrivilegeEscalation Across All Container Definitions\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0027\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-103.8\" y=\"-54\" width=\"207.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow</tspan><tspan x=\"0\" y=\"-4.9\">allowPrivilegeEscalation</tspan><tspan x=\"0\" y=\"16.1\">Across All Container</tspan><tspan x=\"0\" y=\"37.1\">Definitions</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0027</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0028",
    "title": "Drop All Linux Capabilities (capabilities.drop = [\"ALL\"]) (Tier-4 • Profile B)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Drop All Linux Capabilities (capabilities.drop = [\"ALL\"]).",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Drop All Linux Capabilities (capabilities.drop = [&quot;ALL&quot;])\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 641 464\" width=\"641\" height=\"464\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,74L104.27,155\"/><path class=\"pele-marker\" d=\"M104.27,162L100.91,154L107.63,154Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,274L104.27,334.5C104.27,338.56 336.9,345.81 336.9,349.88L336.9,355\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M336.9,265L336.9,355\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M534.3,274L534.3,334.5C534.3,339.29 336.9,345.08 336.9,349.88L336.9,355\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M336.9,74L336.9,164\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,171L333.54,163L340.26,163Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"96.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"110.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"128.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"304\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"319.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"271.83\" y=\"296.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"336.9\" y=\"310.4\">Workload or routing</tspan><tspan x=\"336.9\" y=\"328.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"437.7\" y=\"296.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"534.3\" y=\"310.4\">Image pull by node or runtime</tspan><tspan x=\"534.3\" y=\"328.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"245.76\" y=\"104\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"336.9\" y=\"119.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,50)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,218)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(336.9,409)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(336.9,218)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(534.3,218)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(336.9,41)\"><rect x=\"-114.61\" y=\"-33\" width=\"229.22\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Drop All Linux Capabilities</tspan><tspan x=\"0\" y=\"16.1\">(capabilities.drop = [&quot;ALL&quot;])</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_drop_all_capabilities_t4\n\ndefault allow = false\n\n# Rule: Drop All Linux Capabilities (capabilities.drop = [\"ALL\"]) (Tier-4 • Profile B)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.capabilities.drop according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Drop All Linux Capabilities (capabilities.drop = [&quot;ALL&quot;])\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0028\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1809\" width=\"590\" height=\"1809\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1276.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1009.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"501\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"445\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,413L240.96,554\"/><path class=\"pele-marker\" d=\"M240.96,561L237.6,553L244.32,553Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,700.74C202.28,723.07 131.82,723.07 131.82,745.41L131.82,790.91\"/><path class=\"pele-marker\" d=\"M131.82,797.91L128.46,789.91L135.18,789.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,700.74C279.63,723.07 350.1,723.07 350.1,745.41L350.1,790.91\"/><path class=\"pele-marker\" d=\"M350.1,797.91L346.74,789.91L353.46,789.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,863.91L350.1,1062.91\"/><path class=\"pele-marker\" d=\"M350.1,1069.91L346.74,1061.91L353.46,1061.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1163.91C350.1,1173.91 342.1,1173.91 342.1,1183.91L342.1,1203.91C342.1,1214.16 224.98,1214.16 224.98,1224.41L224.98,1342.41\"/><path class=\"pele-marker\" d=\"M224.98,1349.41L221.62,1341.41L228.34,1341.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1163.91C350.1,1173.91 358.1,1173.91 358.1,1183.91L358.1,1203.91C358.1,1214.16 475.21,1214.16 475.21,1224.41L475.21,1329.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1336.91L471.85,1328.91L478.57,1328.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1436.41L224.98,1489.91\"/><path class=\"pele-marker\" d=\"M224.98,1496.91L221.62,1488.91L228.34,1488.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1614.16L181.42,1707.39\"/><path class=\"pele-marker\" d=\"M181.42,1714.39L178.06,1706.39L184.78,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1623.05C254.33,1642.47 449.15,1642.47 449.15,1661.89L449.15,1707.39\"/><path class=\"pele-marker\" d=\"M449.15,1714.39L445.79,1706.39L452.51,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1448.91L475.21,1707.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1714.39L471.85,1706.39L478.57,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1302.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1302.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1035.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1035.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"526.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"526.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"747.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"762.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"747.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"762.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"926.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"940.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"958.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"976.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1226.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1241.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1226.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1241.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1663.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1679.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1663.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1679.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1558.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1574.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,380)\"><rect x=\"-114.61\" y=\"-33\" width=\"229.22\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Drop All Linux Capabilities</tspan><tspan x=\"0\" y=\"16.1\">(capabilities.drop = [&quot;ALL&quot;])</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,642.95)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,830.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,830.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0028</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1116.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1392.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1392.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1569.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1747.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1747.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0029",
    "title": "Enforce RuntimeDefault Seccomp Profile on Pod and Containers (Tier-4 • Profile C)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce RuntimeDefault Seccomp Profile on Pod and Containers.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce RuntimeDefault Seccomp Profile on Pod and Containers\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 631 485\" width=\"631\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.76 326.11,366.61 326.11,370.88L326.11,376\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M326.11,286L326.11,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M523.5,295L523.5,355.5C523.5,360.29 326.11,366.08 326.11,370.88L326.11,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M326.11,95L326.11,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,192L322.75,184L329.47,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"261.04\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"326.11\" y=\"331.4\">Workload or routing</tspan><tspan x=\"326.11\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"426.91\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"523.5\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"523.5\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"234.97\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"326.11\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(326.11,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(326.11,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(523.5,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(326.11,51.5)\"><rect x=\"-103.82\" y=\"-43.5\" width=\"207.63\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RuntimeDefault</tspan><tspan x=\"0\" y=\"5.6\">Seccomp Profile on Pod</tspan><tspan x=\"0\" y=\"26.6\">and Containers</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_seccomp_runtime_default_t4\n\ndefault allow = false\n\n# Rule: Enforce RuntimeDefault Seccomp Profile on Pod and Containers (Tier-4 • Profile C)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.securityContext.seccompProfile.type according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce RuntimeDefault Seccomp Profile on Pod and Containers\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0029\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-103.82\" y=\"-43.5\" width=\"207.63\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RuntimeDefault</tspan><tspan x=\"0\" y=\"5.6\">Seccomp Profile on Pod</tspan><tspan x=\"0\" y=\"26.6\">and Containers</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0029</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0030",
    "title": "Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing (Tier-4 • Profile D)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Performance Efficiency",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 629 485\" width=\"629\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.79 324.78,366.59 324.78,370.88L324.78,376\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M324.78,286L324.78,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M522.17,295L522.17,355.5C522.17,360.29 324.78,366.08 324.78,370.88L324.78,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M324.78,95L324.78,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,192L321.42,184L328.14,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"259.7\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"324.78\" y=\"331.4\">Workload or routing</tspan><tspan x=\"324.78\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"425.57\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"522.17\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"522.17\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"233.63\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"324.78\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(324.78,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(324.78,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(522.17,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(324.78,51.5)\"><rect x=\"-102.48\" y=\"-43.5\" width=\"204.96\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Deny hostPID, hostIPC,</tspan><tspan x=\"0\" y=\"5.6\">and hostNetwork Host</tspan><tspan x=\"0\" y=\"26.6\">Namespace Sharing</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_deny_host_namespaces_t4\n\ndefault allow = false\n\n# Rule: Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing (Tier-4 • Profile D)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.hostNetwork according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test an allowed source and a denied source against the actual endpoint",
        "Identity, network reachability, and application permissions are independent. Private networking and DNS require explicit service-specific configuration.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0030\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test an allowed source and a denied source against the actual endpoint\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1830\" width=\"594\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.88\" y=\"1297.91\" width=\"538.65\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 221.37,1235.16 221.37,1245.41L221.37,1363.41\"/><path class=\"pele-marker\" d=\"M221.37,1370.41L218.01,1362.41L224.73,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 478.82,1235.16 478.82,1245.41L478.82,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M478.82,1357.91L475.46,1349.91L482.18,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.37,1457.41L221.37,1510.91\"/><path class=\"pele-marker\" d=\"M221.37,1517.91L218.01,1509.91L224.73,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.8,1635.16L177.8,1728.39\"/><path class=\"pele-marker\" d=\"M177.8,1735.39L174.44,1727.39L181.16,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.72,1644.05C250.72,1663.47 452.76,1663.47 452.76,1682.89L452.76,1728.39\"/><path class=\"pele-marker\" d=\"M452.76,1735.39L449.4,1727.39L456.12,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M478.82,1469.91L478.82,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M478.82,1735.39L475.46,1727.39L482.18,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.51\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.51\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.61\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.37\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.59\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"478.82\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.73\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.8\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"436.7\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"452.76\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"395.85\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"478.82\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-102.48\" y=\"-43.5\" width=\"204.96\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Deny hostPID, hostIPC,</tspan><tspan x=\"0\" y=\"5.6\">and hostNetwork Host</tspan><tspan x=\"0\" y=\"26.6\">Namespace Sharing</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0030</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.37,1413.91)\"><rect x=\"-116.28\" y=\"-43.5\" width=\"232.56\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test an allowed source and</tspan><tspan x=\"0\" y=\"5.6\">a denied source against the</tspan><tspan x=\"0\" y=\"26.6\">actual endpoint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(478.82,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.37,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.8,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(461.79,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0031",
    "title": "Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock) (Tier-4 • Profile E)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock).",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock)\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 640 485\" width=\"640\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.58 335.9,366.79 335.9,370.88L335.9,376\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.9,286L335.9,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M533.29,295L533.29,355.5C533.29,360.29 335.9,366.08 335.9,370.88L335.9,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.9,95L335.9,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,192L332.54,184L339.26,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"270.82\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.9\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.9\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"436.69\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"533.29\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"533.29\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"244.75\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.9\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.9,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.9,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(533.29,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.9,51.5)\"><rect x=\"-113.6\" y=\"-43.5\" width=\"227.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Prohibit Sensitive hostPath</tspan><tspan x=\"0\" y=\"5.6\">Volume Mounts (/etc,</tspan><tspan x=\"0\" y=\"26.6\">/var/run/docker.sock)</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_deny_sensitive_hostpath_t4\n\ndefault allow = false\n\n# Rule: Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock) (Tier-4 • Profile E)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.volumes[_].hostPath according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock)\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0031\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-113.6\" y=\"-43.5\" width=\"227.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Prohibit Sensitive hostPath</tspan><tspan x=\"0\" y=\"5.6\">Volume Mounts (/etc,</tspan><tspan x=\"0\" y=\"26.6\">/var/run/docker.sock)</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0031</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0032",
    "title": "Enforce Explicit CPU and Memory Resource Limits to Prevent DoS (Tier-4 • Profile F)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Reliability",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit CPU and Memory Resource Limits to Prevent DoS.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit CPU and Memory Resource Limits to Prevent DoS\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 642 485\" width=\"642\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.55 337.65,366.82 337.65,370.88L337.65,376\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.65,286L337.65,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M535.04,295L535.04,355.5C535.04,360.29 337.65,366.08 337.65,370.88L337.65,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.65,95L337.65,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,192L334.29,184L341.01,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.57\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.65\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.65\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"438.44\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"535.04\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"535.04\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.51\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.65\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.65,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.65,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(535.04,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.65,51.5)\"><rect x=\"-115.35\" y=\"-43.5\" width=\"230.7\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Explicit CPU and</tspan><tspan x=\"0\" y=\"5.6\">Memory Resource Limits to</tspan><tspan x=\"0\" y=\"26.6\">Prevent DoS</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_enforce_resource_limits_t4\n\ndefault allow = false\n\n# Rule: Enforce Explicit CPU and Memory Resource Limits to Prevent DoS (Tier-4 • Profile F)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].resources.limits according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce Explicit CPU and Memory Resource Limits to Prevent DoS\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0032\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.35\" y=\"-43.5\" width=\"230.7\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Explicit CPU and</tspan><tspan x=\"0\" y=\"5.6\">Memory Resource Limits to</tspan><tspan x=\"0\" y=\"26.6\">Prevent DoS</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0032</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0033",
    "title": "Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext (Tier-5 • Profile G)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 643 485\" width=\"643\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.54 338.12,366.83 338.12,370.88L338.12,376\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M338.12,286L338.12,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M535.51,295L535.51,355.5C535.51,360.29 338.12,366.08 338.12,370.88L338.12,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M338.12,95L338.12,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,192L334.76,184L341.48,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"273.05\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"338.12\" y=\"331.4\">Workload or routing</tspan><tspan x=\"338.12\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"438.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"535.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"535.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.98\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"338.12\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(338.12,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(338.12,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(535.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(338.12,51.5)\"><rect x=\"-115.82\" y=\"-43.5\" width=\"231.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce runAsNonRoot and</tspan><tspan x=\"0\" y=\"5.6\">Explicit Non-Zero UID in</tspan><tspan x=\"0\" y=\"26.6\">securityContext</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_run_as_non_root_t5\n\ndefault allow = false\n\n# Rule: Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext (Tier-5 • Profile G)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.securityContext.runAsNonRoot according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0033\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1830\" width=\"593\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1297.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 222.49,1235.16 222.49,1245.41L222.49,1363.41\"/><path class=\"pele-marker\" d=\"M222.49,1370.41L219.13,1362.41L225.85,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 477.71,1235.16 477.71,1245.41L477.71,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1357.91L474.35,1349.91L481.07,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1457.41L222.49,1510.91\"/><path class=\"pele-marker\" d=\"M222.49,1517.91L219.13,1509.91L225.85,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1635.16L178.92,1728.39\"/><path class=\"pele-marker\" d=\"M178.92,1735.39L175.56,1727.39L182.28,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1644.05C251.84,1663.47 451.64,1663.47 451.64,1682.89L451.64,1728.39\"/><path class=\"pele-marker\" d=\"M451.64,1735.39L448.28,1727.39L455,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1469.91L477.71,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1735.39L474.35,1727.39L481.07,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.82\" y=\"-43.5\" width=\"231.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce runAsNonRoot and</tspan><tspan x=\"0\" y=\"5.6\">Explicit Non-Zero UID in</tspan><tspan x=\"0\" y=\"26.6\">securityContext</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0033</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1413.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0034",
    "title": "Enforce readOnlyRootFilesystem on All Pod Containers (Tier-5 • Profile H)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce readOnlyRootFilesystem on All Pod Containers.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce readOnlyRootFilesystem on All Pod Containers\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 643 485\" width=\"643\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.53 338.99,366.85 338.99,370.88L338.99,376\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M338.99,286L338.99,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M536.38,295L536.38,355.5C536.38,360.29 338.99,366.08 338.99,370.88L338.99,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M338.99,95L338.99,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,192L335.63,184L342.35,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"273.92\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"338.99\" y=\"331.4\">Workload or routing</tspan><tspan x=\"338.99\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"439.79\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"536.38\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"536.38\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"247.85\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"338.99\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(338.99,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(338.99,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(536.38,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(338.99,51.5)\"><rect x=\"-116.7\" y=\"-43.5\" width=\"233.39\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce</tspan><tspan x=\"0\" y=\"5.6\">readOnlyRootFilesystem on</tspan><tspan x=\"0\" y=\"26.6\">All Pod Containers</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_readonly_root_fs_t5\n\ndefault allow = false\n\n# Rule: Enforce readOnlyRootFilesystem on All Pod Containers (Tier-5 • Profile H)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.readOnlyRootFilesystem according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce readOnlyRootFilesystem on All Pod Containers\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0034\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1830\" width=\"593\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1297.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 222.49,1235.16 222.49,1245.41L222.49,1363.41\"/><path class=\"pele-marker\" d=\"M222.49,1370.41L219.13,1362.41L225.85,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 477.71,1235.16 477.71,1245.41L477.71,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1357.91L474.35,1349.91L481.07,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1457.41L222.49,1510.91\"/><path class=\"pele-marker\" d=\"M222.49,1517.91L219.13,1509.91L225.85,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1635.16L178.92,1728.39\"/><path class=\"pele-marker\" d=\"M178.92,1735.39L175.56,1727.39L182.28,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1644.05C251.84,1663.47 451.64,1663.47 451.64,1682.89L451.64,1728.39\"/><path class=\"pele-marker\" d=\"M451.64,1735.39L448.28,1727.39L455,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1469.91L477.71,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1735.39L474.35,1727.39L481.07,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-116.7\" y=\"-43.5\" width=\"233.39\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce</tspan><tspan x=\"0\" y=\"5.6\">readOnlyRootFilesystem on</tspan><tspan x=\"0\" y=\"26.6\">All Pod Containers</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0034</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1413.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0035",
    "title": "Disallow allowPrivilegeEscalation Across All Container Definitions (Tier-5 • Profile I)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Performance Efficiency",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Disallow allowPrivilegeEscalation Across All Container Definitions.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Disallow allowPrivilegeEscalation Across All Container Definitions\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 631 506\" width=\"631\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.76 326.1,387.61 326.1,391.88L326.1,397\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M326.1,307L326.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M523.49,316L523.49,376.5C523.49,381.29 326.1,387.08 326.1,391.88L326.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M326.1,116L326.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,213L322.74,205L329.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"261.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"326.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"326.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"426.89\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"523.49\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"523.49\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"234.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"326.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(326.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(326.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(523.49,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(326.1,62)\"><rect x=\"-103.8\" y=\"-54\" width=\"207.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow</tspan><tspan x=\"0\" y=\"-4.9\">allowPrivilegeEscalation</tspan><tspan x=\"0\" y=\"16.1\">Across All Container</tspan><tspan x=\"0\" y=\"37.1\">Definitions</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_no_privilege_escalation_t5\n\ndefault allow = false\n\n# Rule: Disallow allowPrivilegeEscalation Across All Container Definitions (Tier-5 • Profile I)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.allowPrivilegeEscalation according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Disallow allowPrivilegeEscalation Across All Container Definitions\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0035\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-103.8\" y=\"-54\" width=\"207.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow</tspan><tspan x=\"0\" y=\"-4.9\">allowPrivilegeEscalation</tspan><tspan x=\"0\" y=\"16.1\">Across All Container</tspan><tspan x=\"0\" y=\"37.1\">Definitions</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0035</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0036",
    "title": "Drop All Linux Capabilities (capabilities.drop = [\"ALL\"]) (Tier-5 • Profile J)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Drop All Linux Capabilities (capabilities.drop = [\"ALL\"]).",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Drop All Linux Capabilities (capabilities.drop = [&quot;ALL&quot;])\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 641 464\" width=\"641\" height=\"464\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,74L104.27,155\"/><path class=\"pele-marker\" d=\"M104.27,162L100.91,154L107.63,154Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,274L104.27,334.5C104.27,338.56 336.9,345.81 336.9,349.88L336.9,355\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M336.9,265L336.9,355\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M534.3,274L534.3,334.5C534.3,339.29 336.9,345.08 336.9,349.88L336.9,355\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,362L333.54,354L340.26,354Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M336.9,74L336.9,164\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M336.9,171L333.54,163L340.26,163Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"96.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"110.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"128.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"304\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"319.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"271.83\" y=\"296.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"336.9\" y=\"310.4\">Workload or routing</tspan><tspan x=\"336.9\" y=\"328.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"437.7\" y=\"296.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"534.3\" y=\"310.4\">Image pull by node or runtime</tspan><tspan x=\"534.3\" y=\"328.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"245.76\" y=\"104\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"336.9\" y=\"119.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,50)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,218)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(336.9,409)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(336.9,218)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(534.3,218)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(336.9,41)\"><rect x=\"-114.61\" y=\"-33\" width=\"229.22\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Drop All Linux Capabilities</tspan><tspan x=\"0\" y=\"16.1\">(capabilities.drop = [&quot;ALL&quot;])</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_drop_all_capabilities_t5\n\ndefault allow = false\n\n# Rule: Drop All Linux Capabilities (capabilities.drop = [\"ALL\"]) (Tier-5 • Profile J)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.capabilities.drop according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Drop All Linux Capabilities (capabilities.drop = [&quot;ALL&quot;])\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0036\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1809\" width=\"590\" height=\"1809\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1276.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1009.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"501\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"445\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,413L240.96,554\"/><path class=\"pele-marker\" d=\"M240.96,561L237.6,553L244.32,553Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,700.74C202.28,723.07 131.82,723.07 131.82,745.41L131.82,790.91\"/><path class=\"pele-marker\" d=\"M131.82,797.91L128.46,789.91L135.18,789.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,700.74C279.63,723.07 350.1,723.07 350.1,745.41L350.1,790.91\"/><path class=\"pele-marker\" d=\"M350.1,797.91L346.74,789.91L353.46,789.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,863.91L350.1,1062.91\"/><path class=\"pele-marker\" d=\"M350.1,1069.91L346.74,1061.91L353.46,1061.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1163.91C350.1,1173.91 342.1,1173.91 342.1,1183.91L342.1,1203.91C342.1,1214.16 224.98,1214.16 224.98,1224.41L224.98,1342.41\"/><path class=\"pele-marker\" d=\"M224.98,1349.41L221.62,1341.41L228.34,1341.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1163.91C350.1,1173.91 358.1,1173.91 358.1,1183.91L358.1,1203.91C358.1,1214.16 475.21,1214.16 475.21,1224.41L475.21,1329.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1336.91L471.85,1328.91L478.57,1328.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1436.41L224.98,1489.91\"/><path class=\"pele-marker\" d=\"M224.98,1496.91L221.62,1488.91L228.34,1488.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1614.16L181.42,1707.39\"/><path class=\"pele-marker\" d=\"M181.42,1714.39L178.06,1706.39L184.78,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1623.05C254.33,1642.47 449.15,1642.47 449.15,1661.89L449.15,1707.39\"/><path class=\"pele-marker\" d=\"M449.15,1714.39L445.79,1706.39L452.51,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1448.91L475.21,1707.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1714.39L471.85,1706.39L478.57,1706.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1302.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1302.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1035.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1035.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"526.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"526.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"747.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"762.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"747.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"762.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"926.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"940.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"958.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"976.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1226.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1241.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1226.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1241.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1663.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1679.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1663.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1679.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1558.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1574.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,380)\"><rect x=\"-114.61\" y=\"-33\" width=\"229.22\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Drop All Linux Capabilities</tspan><tspan x=\"0\" y=\"16.1\">(capabilities.drop = [&quot;ALL&quot;])</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,642.95)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,830.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,830.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0036</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1116.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1392.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1392.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1569.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1747.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1747.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0037",
    "title": "Enforce RuntimeDefault Seccomp Profile on Pod and Containers (Tier-5 • Profile K)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce RuntimeDefault Seccomp Profile on Pod and Containers.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce RuntimeDefault Seccomp Profile on Pod and Containers\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 631 485\" width=\"631\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.76 326.11,366.61 326.11,370.88L326.11,376\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M326.11,286L326.11,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M523.5,295L523.5,355.5C523.5,360.29 326.11,366.08 326.11,370.88L326.11,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,383L322.75,375L329.47,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M326.11,95L326.11,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.11,192L322.75,184L329.47,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"261.04\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"326.11\" y=\"331.4\">Workload or routing</tspan><tspan x=\"326.11\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"426.91\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"523.5\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"523.5\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"234.97\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"326.11\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(326.11,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(326.11,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(523.5,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(326.11,51.5)\"><rect x=\"-103.82\" y=\"-43.5\" width=\"207.63\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RuntimeDefault</tspan><tspan x=\"0\" y=\"5.6\">Seccomp Profile on Pod</tspan><tspan x=\"0\" y=\"26.6\">and Containers</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_seccomp_runtime_default_t5\n\ndefault allow = false\n\n# Rule: Enforce RuntimeDefault Seccomp Profile on Pod and Containers (Tier-5 • Profile K)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.securityContext.seccompProfile.type according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce RuntimeDefault Seccomp Profile on Pod and Containers\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0037\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-103.82\" y=\"-43.5\" width=\"207.63\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RuntimeDefault</tspan><tspan x=\"0\" y=\"5.6\">Seccomp Profile on Pod</tspan><tspan x=\"0\" y=\"26.6\">and Containers</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0037</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0038",
    "title": "Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing (Tier-5 • Profile L)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Operational Excellence",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 629 485\" width=\"629\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.79 324.78,366.59 324.78,370.88L324.78,376\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M324.78,286L324.78,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M522.17,295L522.17,355.5C522.17,360.29 324.78,366.08 324.78,370.88L324.78,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,383L321.42,375L328.14,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M324.78,95L324.78,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M324.78,192L321.42,184L328.14,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"259.7\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"324.78\" y=\"331.4\">Workload or routing</tspan><tspan x=\"324.78\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"425.57\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"522.17\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"522.17\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"233.63\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"324.78\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(324.78,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(324.78,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(522.17,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(324.78,51.5)\"><rect x=\"-102.48\" y=\"-43.5\" width=\"204.96\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Deny hostPID, hostIPC,</tspan><tspan x=\"0\" y=\"5.6\">and hostNetwork Host</tspan><tspan x=\"0\" y=\"26.6\">Namespace Sharing</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_deny_host_namespaces_t5\n\ndefault allow = false\n\n# Rule: Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing (Tier-5 • Profile L)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.hostNetwork according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test an allowed source and a denied source against the actual endpoint",
        "Identity, network reachability, and application permissions are independent. Private networking and DNS require explicit service-specific configuration.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Deny hostPID, hostIPC, and hostNetwork Host Namespace Sharing\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0038\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test an allowed source and a denied source against the actual endpoint\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1830\" width=\"594\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.88\" y=\"1297.91\" width=\"538.65\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 221.37,1235.16 221.37,1245.41L221.37,1363.41\"/><path class=\"pele-marker\" d=\"M221.37,1370.41L218.01,1362.41L224.73,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 478.82,1235.16 478.82,1245.41L478.82,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M478.82,1357.91L475.46,1349.91L482.18,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.37,1457.41L221.37,1510.91\"/><path class=\"pele-marker\" d=\"M221.37,1517.91L218.01,1509.91L224.73,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.8,1635.16L177.8,1728.39\"/><path class=\"pele-marker\" d=\"M177.8,1735.39L174.44,1727.39L181.16,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.72,1644.05C250.72,1663.47 452.76,1663.47 452.76,1682.89L452.76,1728.39\"/><path class=\"pele-marker\" d=\"M452.76,1735.39L449.4,1727.39L456.12,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M478.82,1469.91L478.82,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M478.82,1735.39L475.46,1727.39L482.18,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.51\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.51\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.61\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.37\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.59\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"478.82\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.73\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.8\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"436.7\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"452.76\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"395.85\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"478.82\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-102.48\" y=\"-43.5\" width=\"204.96\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Deny hostPID, hostIPC,</tspan><tspan x=\"0\" y=\"5.6\">and hostNetwork Host</tspan><tspan x=\"0\" y=\"26.6\">Namespace Sharing</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0038</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.37,1413.91)\"><rect x=\"-116.28\" y=\"-43.5\" width=\"232.56\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test an allowed source and</tspan><tspan x=\"0\" y=\"5.6\">a denied source against the</tspan><tspan x=\"0\" y=\"26.6\">actual endpoint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(478.82,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.37,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.8,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(461.79,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0039",
    "title": "Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock) (Tier-5 • Profile M)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Cost Optimization",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock).",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock)\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 640 485\" width=\"640\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.58 335.9,366.79 335.9,370.88L335.9,376\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.9,286L335.9,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M533.29,295L533.29,355.5C533.29,360.29 335.9,366.08 335.9,370.88L335.9,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,383L332.54,375L339.26,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.9,95L335.9,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.9,192L332.54,184L339.26,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"270.82\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.9\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.9\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"436.69\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"533.29\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"533.29\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"244.75\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.9\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.9,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.9,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(533.29,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.9,51.5)\"><rect x=\"-113.6\" y=\"-43.5\" width=\"227.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Prohibit Sensitive hostPath</tspan><tspan x=\"0\" y=\"5.6\">Volume Mounts (/etc,</tspan><tspan x=\"0\" y=\"26.6\">/var/run/docker.sock)</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_deny_sensitive_hostpath_t5\n\ndefault allow = false\n\n# Rule: Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock) (Tier-5 • Profile M)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.volumes[_].hostPath according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Prohibit Sensitive hostPath Volume Mounts (/etc, /var/run/docker.sock)\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0039\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-113.6\" y=\"-43.5\" width=\"227.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Prohibit Sensitive hostPath</tspan><tspan x=\"0\" y=\"5.6\">Volume Mounts (/etc,</tspan><tspan x=\"0\" y=\"26.6\">/var/run/docker.sock)</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0039</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0040",
    "title": "Enforce Explicit CPU and Memory Resource Limits to Prevent DoS (Tier-5 • Profile N)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit CPU and Memory Resource Limits to Prevent DoS.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit CPU and Memory Resource Limits to Prevent DoS\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 642 485\" width=\"642\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.55 337.65,366.82 337.65,370.88L337.65,376\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.65,286L337.65,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M535.04,295L535.04,355.5C535.04,360.29 337.65,366.08 337.65,370.88L337.65,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,383L334.29,375L341.01,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.65,95L337.65,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.65,192L334.29,184L341.01,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.57\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.65\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.65\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"438.44\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"535.04\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"535.04\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.51\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.65\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.65,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.65,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(535.04,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.65,51.5)\"><rect x=\"-115.35\" y=\"-43.5\" width=\"230.7\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Explicit CPU and</tspan><tspan x=\"0\" y=\"5.6\">Memory Resource Limits to</tspan><tspan x=\"0\" y=\"26.6\">Prevent DoS</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_enforce_resource_limits_t5\n\ndefault allow = false\n\n# Rule: Enforce Explicit CPU and Memory Resource Limits to Prevent DoS (Tier-5 • Profile N)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].resources.limits according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce Explicit CPU and Memory Resource Limits to Prevent DoS\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0040\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.35\" y=\"-43.5\" width=\"230.7\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Explicit CPU and</tspan><tspan x=\"0\" y=\"5.6\">Memory Resource Limits to</tspan><tspan x=\"0\" y=\"26.6\">Prevent DoS</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0040</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0041",
    "title": "Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext (Tier-6 • Profile O)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Reliability",
    "severity": "Critical",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 643 485\" width=\"643\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.54 338.12,366.83 338.12,370.88L338.12,376\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M338.12,286L338.12,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M535.51,295L535.51,355.5C535.51,360.29 338.12,366.08 338.12,370.88L338.12,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,383L334.76,375L341.48,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M338.12,95L338.12,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.12,192L334.76,184L341.48,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"273.05\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"338.12\" y=\"331.4\">Workload or routing</tspan><tspan x=\"338.12\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"438.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"535.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"535.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.98\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"338.12\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(338.12,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(338.12,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(535.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(338.12,51.5)\"><rect x=\"-115.82\" y=\"-43.5\" width=\"231.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce runAsNonRoot and</tspan><tspan x=\"0\" y=\"5.6\">Explicit Non-Zero UID in</tspan><tspan x=\"0\" y=\"26.6\">securityContext</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_run_as_non_root_t6\n\ndefault allow = false\n\n# Rule: Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext (Tier-6 • Profile O)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.securityContext.runAsNonRoot according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce runAsNonRoot and Explicit Non-Zero UID in securityContext\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0041\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1830\" width=\"593\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1297.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 222.49,1235.16 222.49,1245.41L222.49,1363.41\"/><path class=\"pele-marker\" d=\"M222.49,1370.41L219.13,1362.41L225.85,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 477.71,1235.16 477.71,1245.41L477.71,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1357.91L474.35,1349.91L481.07,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1457.41L222.49,1510.91\"/><path class=\"pele-marker\" d=\"M222.49,1517.91L219.13,1509.91L225.85,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1635.16L178.92,1728.39\"/><path class=\"pele-marker\" d=\"M178.92,1735.39L175.56,1727.39L182.28,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1644.05C251.84,1663.47 451.64,1663.47 451.64,1682.89L451.64,1728.39\"/><path class=\"pele-marker\" d=\"M451.64,1735.39L448.28,1727.39L455,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1469.91L477.71,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1735.39L474.35,1727.39L481.07,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.82\" y=\"-43.5\" width=\"231.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce runAsNonRoot and</tspan><tspan x=\"0\" y=\"5.6\">Explicit Non-Zero UID in</tspan><tspan x=\"0\" y=\"26.6\">securityContext</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0041</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1413.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0042",
    "title": "Enforce readOnlyRootFilesystem on All Pod Containers (Tier-6 • Profile P)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce readOnlyRootFilesystem on All Pod Containers.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce readOnlyRootFilesystem on All Pod Containers\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 643 485\" width=\"643\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.53 338.99,366.85 338.99,370.88L338.99,376\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M338.99,286L338.99,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M536.38,295L536.38,355.5C536.38,360.29 338.99,366.08 338.99,370.88L338.99,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,383L335.63,375L342.35,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M338.99,95L338.99,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M338.99,192L335.63,184L342.35,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"273.92\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"338.99\" y=\"331.4\">Workload or routing</tspan><tspan x=\"338.99\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"439.79\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"536.38\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"536.38\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"247.85\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"338.99\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(338.99,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(338.99,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(536.38,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(338.99,51.5)\"><rect x=\"-116.7\" y=\"-43.5\" width=\"233.39\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce</tspan><tspan x=\"0\" y=\"5.6\">readOnlyRootFilesystem on</tspan><tspan x=\"0\" y=\"26.6\">All Pod Containers</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_readonly_root_fs_t6\n\ndefault allow = false\n\n# Rule: Enforce readOnlyRootFilesystem on All Pod Containers (Tier-6 • Profile P)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.readOnlyRootFilesystem according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Enforce readOnlyRootFilesystem on All Pod Containers\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0042\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1830\" width=\"593\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1297.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 222.49,1235.16 222.49,1245.41L222.49,1363.41\"/><path class=\"pele-marker\" d=\"M222.49,1370.41L219.13,1362.41L225.85,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 477.71,1235.16 477.71,1245.41L477.71,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1357.91L474.35,1349.91L481.07,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1457.41L222.49,1510.91\"/><path class=\"pele-marker\" d=\"M222.49,1517.91L219.13,1509.91L225.85,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1635.16L178.92,1728.39\"/><path class=\"pele-marker\" d=\"M178.92,1735.39L175.56,1727.39L182.28,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1644.05C251.84,1663.47 451.64,1663.47 451.64,1682.89L451.64,1728.39\"/><path class=\"pele-marker\" d=\"M451.64,1735.39L448.28,1727.39L455,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1469.91L477.71,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1735.39L474.35,1727.39L481.07,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-116.7\" y=\"-43.5\" width=\"233.39\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce</tspan><tspan x=\"0\" y=\"5.6\">readOnlyRootFilesystem on</tspan><tspan x=\"0\" y=\"26.6\">All Pod Containers</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0042</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1413.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0043",
    "title": "Disallow allowPrivilegeEscalation Across All Container Definitions (Tier-6 • Profile Q)",
    "category": "k8s-pod",
    "category_name": "Pod Spec & Pod Security Context",
    "service": "Kubernetes Pod",
    "icon_url": "/images/k8s-icons/k8s-pod.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Pod. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Disallow allowPrivilegeEscalation Across All Container Definitions.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Disallow allowPrivilegeEscalation Across All Container Definitions\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 631 506\" width=\"631\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.76 326.1,387.61 326.1,391.88L326.1,397\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M326.1,307L326.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M523.49,316L523.49,376.5C523.49,381.29 326.1,387.08 326.1,391.88L326.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,404L322.74,396L329.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M326.1,116L326.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M326.1,213L322.74,205L329.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"261.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"326.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"326.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"426.89\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"523.49\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"523.49\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"234.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"326.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(326.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(326.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-2-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-2-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(523.49,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(326.1,62)\"><rect x=\"-103.8\" y=\"-54\" width=\"207.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow</tspan><tspan x=\"0\" y=\"-4.9\">allowPrivilegeEscalation</tspan><tspan x=\"0\" y=\"16.1\">Across All Container</tspan><tspan x=\"0\" y=\"37.1\">Definitions</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_pod.k8s_pod_pod_no_privilege_escalation_t6\n\ndefault allow = false\n\n# Rule: Disallow allowPrivilegeEscalation Across All Container Definitions (Tier-6 • Profile Q)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Pod\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.containers[_].securityContext.allowPrivilegeEscalation according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: v1\nkind: Pod\nmetadata:\n  name: \"k8s-pod-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-pod\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-pod-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Pod\"]\n      requirement[\"Disallow allowPrivilegeEscalation Across All Container Definitions\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0043\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-pod\", label: \"Kubernetes Pod\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Pod</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-103.8\" y=\"-54\" width=\"207.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow</tspan><tspan x=\"0\" y=\"-4.9\">allowPrivilegeEscalation</tspan><tspan x=\"0\" y=\"16.1\">Across All Container</tspan><tspan x=\"0\" y=\"37.1\">Definitions</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0043</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Pod</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0044",
    "title": "Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.61 334.1,387.76 334.1,391.88L334.1,397\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M334.1,307L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.94,316L559.94,376.5C559.94,380.69 334.1,387.69 334.1,391.88L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M334.1,116L334.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,213L330.74,205L337.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"334.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"334.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.34\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"334.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(334.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(334.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(334.1,62)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_high_availability_t1\n\ndefault allow = false\n\n# Rule: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.replicas according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Perform restore or failover verification with recorded recovery targets",
        "Replication, versioning, retention lock, and backup recovery provide different guarantees. Select supported settings and test recovery before relying on them.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0044\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Perform restore or failover verification with recorded recovery targets\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48.23\" y=\"1318.91\" width=\"535.96\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.71,1256.16 222.71,1266.41L222.71,1384.41\"/><path class=\"pele-marker\" d=\"M222.71,1391.41L219.35,1383.41L226.07,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.48,1256.16 477.48,1266.41L477.48,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1378.91L474.12,1370.91L480.84,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.71,1478.41L222.71,1531.91\"/><path class=\"pele-marker\" d=\"M222.71,1538.91L219.35,1530.91L226.07,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M179.15,1656.16L179.15,1749.39\"/><path class=\"pele-marker\" d=\"M179.15,1756.39L175.79,1748.39L182.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M252.07,1665.05C252.07,1684.47 451.42,1684.47 451.42,1703.89L451.42,1749.39\"/><path class=\"pele-marker\" d=\"M451.42,1756.39L448.06,1748.39L454.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.48,1490.91L477.48,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1756.39L474.12,1748.39L480.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.95\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.71\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.25\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"128.07\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"179.15\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.36\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.42\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.51\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0044</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.71,1434.91)\"><rect x=\"-110.91\" y=\"-43.5\" width=\"221.82\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Perform restore or failover</tspan><tspan x=\"0\" y=\"5.6\">verification with recorded</tspan><tspan x=\"0\" y=\"26.6\">recovery targets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.48,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.71,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(179.15,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.45,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0045",
    "title": "Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 671 485\" width=\"671\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.55 337.67,366.82 337.67,370.88L337.67,376\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.67,286L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M563.51,295L563.51,355.5C563.51,359.69 337.67,366.69 337.67,370.88L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.67,95L337.67,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,192L334.31,184L341.03,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.6\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.67\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.67\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"466.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"563.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"563.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.53\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.67\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.67,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.67,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(563.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.67,51.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_rolling_update_t1\n\ndefault allow = false\n\n# Rule: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.strategy.rollingUpdate.maxUnavailable according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0045\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0045</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0046",
    "title": "Enforce Immutable Container Image Digests (sha256) in Pod Template",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Operational Excellence",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Immutable Container Image Digests (sha256) in Pod Template.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 665 485\" width=\"665\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.65 332.34,366.73 332.34,370.88L332.34,376\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M332.34,286L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.18,295L558.18,355.5C558.18,359.69 332.34,366.69 332.34,370.88L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M332.34,95L332.34,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,192L328.98,184L335.7,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"267.26\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"332.34\" y=\"331.4\">Workload or routing</tspan><tspan x=\"332.34\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"461.58\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.18\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"558.18\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"241.19\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"332.34\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(332.34,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(332.34,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.18,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(332.34,51.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_image_digest_t1\n\ndefault allow = false\n\n# Rule: Enforce Immutable Container Image Digests (sha256) in Pod Template\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].image according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify artifact digest, trusted signer identity, and relevant attestations",
        "An image signature establishes provenance only under the configured trust policy. Scan results, deployment admission, and runtime restrictions remain separate controls.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/",
        "https://docs.sigstore.dev/cosign/verifying/verify/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0046\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify artifact digest, trusted signer identity, and relevant attestations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1830\" width=\"594\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.67\" y=\"1297.91\" width=\"539.08\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 221.15,1235.16 221.15,1245.41L221.15,1363.41\"/><path class=\"pele-marker\" d=\"M221.15,1370.41L217.79,1362.41L224.51,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 479.04,1235.16 479.04,1245.41L479.04,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1357.91L475.68,1349.91L482.4,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.15,1457.41L221.15,1510.91\"/><path class=\"pele-marker\" d=\"M221.15,1517.91L217.79,1509.91L224.51,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.59,1635.16L177.59,1728.39\"/><path class=\"pele-marker\" d=\"M177.59,1735.39L174.23,1727.39L180.95,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.51,1644.05C250.51,1663.47 452.98,1663.47 452.98,1682.89L452.98,1728.39\"/><path class=\"pele-marker\" d=\"M452.98,1735.39L449.62,1727.39L456.34,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.04,1469.91L479.04,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1735.39L475.68,1727.39L482.4,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.39\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.15\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.81\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.51\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.59\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"436.92\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"452.98\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.07\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0046</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.15,1413.91)\"><rect x=\"-117.15\" y=\"-43.5\" width=\"234.3\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify artifact digest, trusted</tspan><tspan x=\"0\" y=\"5.6\">signer identity, and relevant</tspan><tspan x=\"0\" y=\"26.6\">attestations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.04,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.15,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.59,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.01,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0047",
    "title": "Enforce automountServiceAccountToken = false on Deployment Pod Spec",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce automountServiceAccountToken = false on Deployment Pod Spec.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 689 506\" width=\"689\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.34 355.9,388.03 355.9,391.88L355.9,397\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M355.9,307L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M581.74,316L581.74,376.5C581.74,380.69 355.9,387.69 355.9,391.88L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M355.9,116L355.9,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,213L352.54,205L359.26,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"290.83\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"355.9\" y=\"352.4\">Workload or routing</tspan><tspan x=\"355.9\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"485.15\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"581.74\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"581.74\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"264.76\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"355.9\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(355.9,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(355.9,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(581.74,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(355.9,62)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_disable_sa_automount_t1\n\ndefault allow = false\n\n# Rule: Enforce automountServiceAccountToken = false on Deployment Pod Spec\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.automountServiceAccountToken according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0047\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1318.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"87.35\" y=\"8\" width=\"307.22\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"234.76\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.49,1256.16 222.49,1266.41L222.49,1384.41\"/><path class=\"pele-marker\" d=\"M222.49,1391.41L219.13,1383.41L225.85,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.71,1256.16 477.71,1266.41L477.71,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1378.91L474.35,1370.91L481.07,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1478.41L222.49,1531.91\"/><path class=\"pele-marker\" d=\"M222.49,1538.91L219.13,1530.91L225.85,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1656.16L178.92,1749.39\"/><path class=\"pele-marker\" d=\"M178.92,1756.39L175.56,1748.39L182.28,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1665.05C251.84,1684.47 451.64,1684.47 451.64,1703.89L451.64,1749.39\"/><path class=\"pele-marker\" d=\"M451.64,1756.39L448.28,1748.39L455,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1490.91L477.71,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1756.39L474.35,1748.39L481.07,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0047</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1434.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0048",
    "title": "Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 655 506\" width=\"655\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.84 322.1,387.53 322.1,391.88L322.1,397\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M322.1,307L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M547.94,316L547.94,376.5C547.94,380.69 322.1,387.69 322.1,391.88L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M322.1,116L322.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,213L318.74,205L325.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"257.03\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"322.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"322.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"451.35\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"547.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"547.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"230.96\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"322.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(322.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(322.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(547.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(322.1,62)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_probes_configured_t1\n\ndefault allow = false\n\n# Rule: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].readinessProbe according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0048\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0048</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0049",
    "title": "Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-2 • Profile F)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.61 334.1,387.76 334.1,391.88L334.1,397\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M334.1,307L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.94,316L559.94,376.5C559.94,380.69 334.1,387.69 334.1,391.88L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M334.1,116L334.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,213L330.74,205L337.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"334.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"334.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.34\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"334.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(334.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(334.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(334.1,62)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_high_availability_t2\n\ndefault allow = false\n\n# Rule: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-2 • Profile F)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.replicas according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Perform restore or failover verification with recorded recovery targets",
        "Replication, versioning, retention lock, and backup recovery provide different guarantees. Select supported settings and test recovery before relying on them.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0049\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Perform restore or failover verification with recorded recovery targets\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48.23\" y=\"1318.91\" width=\"535.96\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.71,1256.16 222.71,1266.41L222.71,1384.41\"/><path class=\"pele-marker\" d=\"M222.71,1391.41L219.35,1383.41L226.07,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.48,1256.16 477.48,1266.41L477.48,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1378.91L474.12,1370.91L480.84,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.71,1478.41L222.71,1531.91\"/><path class=\"pele-marker\" d=\"M222.71,1538.91L219.35,1530.91L226.07,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M179.15,1656.16L179.15,1749.39\"/><path class=\"pele-marker\" d=\"M179.15,1756.39L175.79,1748.39L182.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M252.07,1665.05C252.07,1684.47 451.42,1684.47 451.42,1703.89L451.42,1749.39\"/><path class=\"pele-marker\" d=\"M451.42,1756.39L448.06,1748.39L454.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.48,1490.91L477.48,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1756.39L474.12,1748.39L480.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.95\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.71\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.25\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"128.07\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"179.15\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.36\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.42\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.51\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0049</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.71,1434.91)\"><rect x=\"-110.91\" y=\"-43.5\" width=\"221.82\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Perform restore or failover</tspan><tspan x=\"0\" y=\"5.6\">verification with recorded</tspan><tspan x=\"0\" y=\"26.6\">recovery targets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.48,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.71,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(179.15,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.45,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0050",
    "title": "Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-2 • Profile G)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 671 485\" width=\"671\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.55 337.67,366.82 337.67,370.88L337.67,376\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.67,286L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M563.51,295L563.51,355.5C563.51,359.69 337.67,366.69 337.67,370.88L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.67,95L337.67,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,192L334.31,184L341.03,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.6\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.67\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.67\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"466.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"563.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"563.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.53\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.67\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.67,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.67,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(563.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.67,51.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_rolling_update_t2\n\ndefault allow = false\n\n# Rule: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-2 • Profile G)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.strategy.rollingUpdate.maxUnavailable according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0050\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0050</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0051",
    "title": "Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-2 • Profile H)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Operational Excellence",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Immutable Container Image Digests (sha256) in Pod Template.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 665 485\" width=\"665\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.65 332.34,366.73 332.34,370.88L332.34,376\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M332.34,286L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.18,295L558.18,355.5C558.18,359.69 332.34,366.69 332.34,370.88L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M332.34,95L332.34,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,192L328.98,184L335.7,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"267.26\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"332.34\" y=\"331.4\">Workload or routing</tspan><tspan x=\"332.34\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"461.58\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.18\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"558.18\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"241.19\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"332.34\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(332.34,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(332.34,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.18,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(332.34,51.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_image_digest_t2\n\ndefault allow = false\n\n# Rule: Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-2 • Profile H)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].image according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify artifact digest, trusted signer identity, and relevant attestations",
        "An image signature establishes provenance only under the configured trust policy. Scan results, deployment admission, and runtime restrictions remain separate controls.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/",
        "https://docs.sigstore.dev/cosign/verifying/verify/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0051\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify artifact digest, trusted signer identity, and relevant attestations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1830\" width=\"594\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.67\" y=\"1297.91\" width=\"539.08\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 221.15,1235.16 221.15,1245.41L221.15,1363.41\"/><path class=\"pele-marker\" d=\"M221.15,1370.41L217.79,1362.41L224.51,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 479.04,1235.16 479.04,1245.41L479.04,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1357.91L475.68,1349.91L482.4,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.15,1457.41L221.15,1510.91\"/><path class=\"pele-marker\" d=\"M221.15,1517.91L217.79,1509.91L224.51,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.59,1635.16L177.59,1728.39\"/><path class=\"pele-marker\" d=\"M177.59,1735.39L174.23,1727.39L180.95,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.51,1644.05C250.51,1663.47 452.98,1663.47 452.98,1682.89L452.98,1728.39\"/><path class=\"pele-marker\" d=\"M452.98,1735.39L449.62,1727.39L456.34,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.04,1469.91L479.04,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1735.39L475.68,1727.39L482.4,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.39\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.15\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.81\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.51\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.59\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"436.92\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"452.98\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.07\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0051</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.15,1413.91)\"><rect x=\"-117.15\" y=\"-43.5\" width=\"234.3\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify artifact digest, trusted</tspan><tspan x=\"0\" y=\"5.6\">signer identity, and relevant</tspan><tspan x=\"0\" y=\"26.6\">attestations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.04,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.15,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.59,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.01,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0052",
    "title": "Enforce automountServiceAccountToken = false on Deployment Pod Spec (Tier-2 • Profile I)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce automountServiceAccountToken = false on Deployment Pod Spec.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 689 506\" width=\"689\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.34 355.9,388.03 355.9,391.88L355.9,397\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M355.9,307L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M581.74,316L581.74,376.5C581.74,380.69 355.9,387.69 355.9,391.88L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M355.9,116L355.9,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,213L352.54,205L359.26,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"290.83\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"355.9\" y=\"352.4\">Workload or routing</tspan><tspan x=\"355.9\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"485.15\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"581.74\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"581.74\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"264.76\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"355.9\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(355.9,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(355.9,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(581.74,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(355.9,62)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_disable_sa_automount_t2\n\ndefault allow = false\n\n# Rule: Enforce automountServiceAccountToken = false on Deployment Pod Spec (Tier-2 • Profile I)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.automountServiceAccountToken according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0052\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1318.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"87.35\" y=\"8\" width=\"307.22\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"234.76\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.49,1256.16 222.49,1266.41L222.49,1384.41\"/><path class=\"pele-marker\" d=\"M222.49,1391.41L219.13,1383.41L225.85,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.71,1256.16 477.71,1266.41L477.71,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1378.91L474.35,1370.91L481.07,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1478.41L222.49,1531.91\"/><path class=\"pele-marker\" d=\"M222.49,1538.91L219.13,1530.91L225.85,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1656.16L178.92,1749.39\"/><path class=\"pele-marker\" d=\"M178.92,1756.39L175.56,1748.39L182.28,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1665.05C251.84,1684.47 451.64,1684.47 451.64,1703.89L451.64,1749.39\"/><path class=\"pele-marker\" d=\"M451.64,1756.39L448.28,1748.39L455,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1490.91L477.71,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1756.39L474.35,1748.39L481.07,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0052</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1434.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0053",
    "title": "Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints (Tier-2 • Profile J)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 655 506\" width=\"655\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.84 322.1,387.53 322.1,391.88L322.1,397\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M322.1,307L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M547.94,316L547.94,376.5C547.94,380.69 322.1,387.69 322.1,391.88L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M322.1,116L322.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,213L318.74,205L325.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"257.03\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"322.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"322.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"451.35\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"547.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"547.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"230.96\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"322.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(322.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(322.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(547.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(322.1,62)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_probes_configured_t2\n\ndefault allow = false\n\n# Rule: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints (Tier-2 • Profile J)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].readinessProbe according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0053\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0053</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0054",
    "title": "Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-3 • Profile K)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.61 334.1,387.76 334.1,391.88L334.1,397\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M334.1,307L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.94,316L559.94,376.5C559.94,380.69 334.1,387.69 334.1,391.88L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M334.1,116L334.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,213L330.74,205L337.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"334.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"334.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.34\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"334.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(334.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(334.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(334.1,62)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_high_availability_t3\n\ndefault allow = false\n\n# Rule: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-3 • Profile K)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.replicas according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Perform restore or failover verification with recorded recovery targets",
        "Replication, versioning, retention lock, and backup recovery provide different guarantees. Select supported settings and test recovery before relying on them.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0054\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Perform restore or failover verification with recorded recovery targets\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48.23\" y=\"1318.91\" width=\"535.96\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.71,1256.16 222.71,1266.41L222.71,1384.41\"/><path class=\"pele-marker\" d=\"M222.71,1391.41L219.35,1383.41L226.07,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.48,1256.16 477.48,1266.41L477.48,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1378.91L474.12,1370.91L480.84,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.71,1478.41L222.71,1531.91\"/><path class=\"pele-marker\" d=\"M222.71,1538.91L219.35,1530.91L226.07,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M179.15,1656.16L179.15,1749.39\"/><path class=\"pele-marker\" d=\"M179.15,1756.39L175.79,1748.39L182.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M252.07,1665.05C252.07,1684.47 451.42,1684.47 451.42,1703.89L451.42,1749.39\"/><path class=\"pele-marker\" d=\"M451.42,1756.39L448.06,1748.39L454.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.48,1490.91L477.48,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1756.39L474.12,1748.39L480.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.95\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.71\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.25\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"128.07\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"179.15\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.36\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.42\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.51\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0054</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.71,1434.91)\"><rect x=\"-110.91\" y=\"-43.5\" width=\"221.82\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Perform restore or failover</tspan><tspan x=\"0\" y=\"5.6\">verification with recorded</tspan><tspan x=\"0\" y=\"26.6\">recovery targets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.48,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.71,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(179.15,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.45,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0055",
    "title": "Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-3 • Profile L)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Reliability",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 671 485\" width=\"671\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.55 337.67,366.82 337.67,370.88L337.67,376\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.67,286L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M563.51,295L563.51,355.5C563.51,359.69 337.67,366.69 337.67,370.88L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.67,95L337.67,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,192L334.31,184L341.03,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.6\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.67\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.67\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"466.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"563.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"563.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.53\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.67\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.67,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.67,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(563.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.67,51.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_rolling_update_t3\n\ndefault allow = false\n\n# Rule: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-3 • Profile L)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.strategy.rollingUpdate.maxUnavailable according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0055\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0055</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0056",
    "title": "Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-3 • Profile M)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Immutable Container Image Digests (sha256) in Pod Template.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 665 485\" width=\"665\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.65 332.34,366.73 332.34,370.88L332.34,376\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M332.34,286L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.18,295L558.18,355.5C558.18,359.69 332.34,366.69 332.34,370.88L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M332.34,95L332.34,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,192L328.98,184L335.7,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"267.26\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"332.34\" y=\"331.4\">Workload or routing</tspan><tspan x=\"332.34\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"461.58\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.18\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"558.18\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"241.19\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"332.34\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(332.34,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(332.34,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.18,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(332.34,51.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_image_digest_t3\n\ndefault allow = false\n\n# Rule: Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-3 • Profile M)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].image according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify artifact digest, trusted signer identity, and relevant attestations",
        "An image signature establishes provenance only under the configured trust policy. Scan results, deployment admission, and runtime restrictions remain separate controls.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/",
        "https://docs.sigstore.dev/cosign/verifying/verify/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0056\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify artifact digest, trusted signer identity, and relevant attestations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1830\" width=\"594\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.67\" y=\"1297.91\" width=\"539.08\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 221.15,1235.16 221.15,1245.41L221.15,1363.41\"/><path class=\"pele-marker\" d=\"M221.15,1370.41L217.79,1362.41L224.51,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 479.04,1235.16 479.04,1245.41L479.04,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1357.91L475.68,1349.91L482.4,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.15,1457.41L221.15,1510.91\"/><path class=\"pele-marker\" d=\"M221.15,1517.91L217.79,1509.91L224.51,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.59,1635.16L177.59,1728.39\"/><path class=\"pele-marker\" d=\"M177.59,1735.39L174.23,1727.39L180.95,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.51,1644.05C250.51,1663.47 452.98,1663.47 452.98,1682.89L452.98,1728.39\"/><path class=\"pele-marker\" d=\"M452.98,1735.39L449.62,1727.39L456.34,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.04,1469.91L479.04,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1735.39L475.68,1727.39L482.4,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.39\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.15\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.81\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.51\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.59\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"436.92\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"452.98\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.07\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0056</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.15,1413.91)\"><rect x=\"-117.15\" y=\"-43.5\" width=\"234.3\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify artifact digest, trusted</tspan><tspan x=\"0\" y=\"5.6\">signer identity, and relevant</tspan><tspan x=\"0\" y=\"26.6\">attestations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.04,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.15,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.59,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.01,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0057",
    "title": "Enforce automountServiceAccountToken = false on Deployment Pod Spec (Tier-3 • Profile N)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Cost Optimization",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce automountServiceAccountToken = false on Deployment Pod Spec.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 689 506\" width=\"689\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.34 355.9,388.03 355.9,391.88L355.9,397\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M355.9,307L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M581.74,316L581.74,376.5C581.74,380.69 355.9,387.69 355.9,391.88L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M355.9,116L355.9,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,213L352.54,205L359.26,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"290.83\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"355.9\" y=\"352.4\">Workload or routing</tspan><tspan x=\"355.9\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"485.15\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"581.74\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"581.74\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"264.76\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"355.9\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(355.9,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(355.9,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(581.74,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(355.9,62)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_disable_sa_automount_t3\n\ndefault allow = false\n\n# Rule: Enforce automountServiceAccountToken = false on Deployment Pod Spec (Tier-3 • Profile N)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.automountServiceAccountToken according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0057\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1318.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"87.35\" y=\"8\" width=\"307.22\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"234.76\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.49,1256.16 222.49,1266.41L222.49,1384.41\"/><path class=\"pele-marker\" d=\"M222.49,1391.41L219.13,1383.41L225.85,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.71,1256.16 477.71,1266.41L477.71,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1378.91L474.35,1370.91L481.07,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1478.41L222.49,1531.91\"/><path class=\"pele-marker\" d=\"M222.49,1538.91L219.13,1530.91L225.85,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1656.16L178.92,1749.39\"/><path class=\"pele-marker\" d=\"M178.92,1756.39L175.56,1748.39L182.28,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1665.05C251.84,1684.47 451.64,1684.47 451.64,1703.89L451.64,1749.39\"/><path class=\"pele-marker\" d=\"M451.64,1756.39L448.28,1748.39L455,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1490.91L477.71,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1756.39L474.35,1748.39L481.07,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0057</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1434.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0058",
    "title": "Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints (Tier-3 • Profile O)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Performance Efficiency",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 655 506\" width=\"655\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.84 322.1,387.53 322.1,391.88L322.1,397\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M322.1,307L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M547.94,316L547.94,376.5C547.94,380.69 322.1,387.69 322.1,391.88L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M322.1,116L322.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,213L318.74,205L325.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"257.03\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"322.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"322.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"451.35\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"547.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"547.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"230.96\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"322.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(322.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(322.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(547.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(322.1,62)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_probes_configured_t3\n\ndefault allow = false\n\n# Rule: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints (Tier-3 • Profile O)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].readinessProbe according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0058\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0058</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0059",
    "title": "Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-4 • Profile P)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.61 334.1,387.76 334.1,391.88L334.1,397\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M334.1,307L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.94,316L559.94,376.5C559.94,380.69 334.1,387.69 334.1,391.88L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M334.1,116L334.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,213L330.74,205L337.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"334.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"334.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.34\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"334.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(334.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(334.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(334.1,62)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_high_availability_t4\n\ndefault allow = false\n\n# Rule: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-4 • Profile P)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.replicas according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Perform restore or failover verification with recorded recovery targets",
        "Replication, versioning, retention lock, and backup recovery provide different guarantees. Select supported settings and test recovery before relying on them.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0059\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Perform restore or failover verification with recorded recovery targets\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48.23\" y=\"1318.91\" width=\"535.96\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.71,1256.16 222.71,1266.41L222.71,1384.41\"/><path class=\"pele-marker\" d=\"M222.71,1391.41L219.35,1383.41L226.07,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.48,1256.16 477.48,1266.41L477.48,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1378.91L474.12,1370.91L480.84,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.71,1478.41L222.71,1531.91\"/><path class=\"pele-marker\" d=\"M222.71,1538.91L219.35,1530.91L226.07,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M179.15,1656.16L179.15,1749.39\"/><path class=\"pele-marker\" d=\"M179.15,1756.39L175.79,1748.39L182.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M252.07,1665.05C252.07,1684.47 451.42,1684.47 451.42,1703.89L451.42,1749.39\"/><path class=\"pele-marker\" d=\"M451.42,1756.39L448.06,1748.39L454.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.48,1490.91L477.48,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1756.39L474.12,1748.39L480.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.95\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.71\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.25\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"128.07\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"179.15\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.36\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.42\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.51\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0059</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.71,1434.91)\"><rect x=\"-110.91\" y=\"-43.5\" width=\"221.82\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Perform restore or failover</tspan><tspan x=\"0\" y=\"5.6\">verification with recorded</tspan><tspan x=\"0\" y=\"26.6\">recovery targets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.48,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.71,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(179.15,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.45,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0060",
    "title": "Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-4 • Profile Q)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 671 485\" width=\"671\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.55 337.67,366.82 337.67,370.88L337.67,376\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.67,286L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M563.51,295L563.51,355.5C563.51,359.69 337.67,366.69 337.67,370.88L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.67,95L337.67,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,192L334.31,184L341.03,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.6\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.67\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.67\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"466.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"563.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"563.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.53\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.67\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.67,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.67,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(563.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.67,51.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_rolling_update_t4\n\ndefault allow = false\n\n# Rule: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-4 • Profile Q)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.strategy.rollingUpdate.maxUnavailable according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0060\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0060</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0061",
    "title": "Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-4 • Profile R)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Operational Excellence",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Immutable Container Image Digests (sha256) in Pod Template.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 665 485\" width=\"665\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.65 332.34,366.73 332.34,370.88L332.34,376\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M332.34,286L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.18,295L558.18,355.5C558.18,359.69 332.34,366.69 332.34,370.88L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M332.34,95L332.34,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,192L328.98,184L335.7,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"267.26\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"332.34\" y=\"331.4\">Workload or routing</tspan><tspan x=\"332.34\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"461.58\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.18\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"558.18\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"241.19\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"332.34\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(332.34,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(332.34,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.18,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(332.34,51.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_image_digest_t4\n\ndefault allow = false\n\n# Rule: Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-4 • Profile R)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].image according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify artifact digest, trusted signer identity, and relevant attestations",
        "An image signature establishes provenance only under the configured trust policy. Scan results, deployment admission, and runtime restrictions remain separate controls.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/",
        "https://docs.sigstore.dev/cosign/verifying/verify/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0061\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify artifact digest, trusted signer identity, and relevant attestations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1830\" width=\"594\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.67\" y=\"1297.91\" width=\"539.08\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 221.15,1235.16 221.15,1245.41L221.15,1363.41\"/><path class=\"pele-marker\" d=\"M221.15,1370.41L217.79,1362.41L224.51,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 479.04,1235.16 479.04,1245.41L479.04,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1357.91L475.68,1349.91L482.4,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.15,1457.41L221.15,1510.91\"/><path class=\"pele-marker\" d=\"M221.15,1517.91L217.79,1509.91L224.51,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.59,1635.16L177.59,1728.39\"/><path class=\"pele-marker\" d=\"M177.59,1735.39L174.23,1727.39L180.95,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.51,1644.05C250.51,1663.47 452.98,1663.47 452.98,1682.89L452.98,1728.39\"/><path class=\"pele-marker\" d=\"M452.98,1735.39L449.62,1727.39L456.34,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.04,1469.91L479.04,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1735.39L475.68,1727.39L482.4,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.39\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.15\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.81\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.51\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.59\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"436.92\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"452.98\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.07\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0061</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.15,1413.91)\"><rect x=\"-117.15\" y=\"-43.5\" width=\"234.3\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify artifact digest, trusted</tspan><tspan x=\"0\" y=\"5.6\">signer identity, and relevant</tspan><tspan x=\"0\" y=\"26.6\">attestations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.04,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.15,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.59,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.01,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0062",
    "title": "Enforce automountServiceAccountToken = false on Deployment Pod Spec (Tier-4 • Profile S)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce automountServiceAccountToken = false on Deployment Pod Spec.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 689 506\" width=\"689\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.34 355.9,388.03 355.9,391.88L355.9,397\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M355.9,307L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M581.74,316L581.74,376.5C581.74,380.69 355.9,387.69 355.9,391.88L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M355.9,116L355.9,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,213L352.54,205L359.26,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"290.83\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"355.9\" y=\"352.4\">Workload or routing</tspan><tspan x=\"355.9\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"485.15\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"581.74\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"581.74\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"264.76\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"355.9\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(355.9,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(355.9,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(581.74,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(355.9,62)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_disable_sa_automount_t4\n\ndefault allow = false\n\n# Rule: Enforce automountServiceAccountToken = false on Deployment Pod Spec (Tier-4 • Profile S)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.automountServiceAccountToken according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0062\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1318.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"87.35\" y=\"8\" width=\"307.22\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"234.76\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.49,1256.16 222.49,1266.41L222.49,1384.41\"/><path class=\"pele-marker\" d=\"M222.49,1391.41L219.13,1383.41L225.85,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.71,1256.16 477.71,1266.41L477.71,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1378.91L474.35,1370.91L481.07,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1478.41L222.49,1531.91\"/><path class=\"pele-marker\" d=\"M222.49,1538.91L219.13,1530.91L225.85,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1656.16L178.92,1749.39\"/><path class=\"pele-marker\" d=\"M178.92,1756.39L175.56,1748.39L182.28,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1665.05C251.84,1684.47 451.64,1684.47 451.64,1703.89L451.64,1749.39\"/><path class=\"pele-marker\" d=\"M451.64,1756.39L448.28,1748.39L455,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1490.91L477.71,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1756.39L474.35,1748.39L481.07,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0062</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1434.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0063",
    "title": "Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints (Tier-4 • Profile T)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Performance Efficiency",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 655 506\" width=\"655\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.84 322.1,387.53 322.1,391.88L322.1,397\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M322.1,307L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M547.94,316L547.94,376.5C547.94,380.69 322.1,387.69 322.1,391.88L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M322.1,116L322.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,213L318.74,205L325.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"257.03\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"322.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"322.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"451.35\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"547.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"547.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"230.96\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"322.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(322.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(322.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(547.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(322.1,62)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_probes_configured_t4\n\ndefault allow = false\n\n# Rule: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints (Tier-4 • Profile T)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].readinessProbe according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0063\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0063</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0064",
    "title": "Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-5 • Profile U)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Reliability",
    "severity": "Critical",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.61 334.1,387.76 334.1,391.88L334.1,397\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M334.1,307L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.94,316L559.94,376.5C559.94,380.69 334.1,387.69 334.1,391.88L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M334.1,116L334.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,213L330.74,205L337.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"334.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"334.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.34\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"334.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(334.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(334.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(334.1,62)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_high_availability_t5\n\ndefault allow = false\n\n# Rule: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-5 • Profile U)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.replicas according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Perform restore or failover verification with recorded recovery targets",
        "Replication, versioning, retention lock, and backup recovery provide different guarantees. Select supported settings and test recovery before relying on them.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0064\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Perform restore or failover verification with recorded recovery targets\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48.23\" y=\"1318.91\" width=\"535.96\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.71,1256.16 222.71,1266.41L222.71,1384.41\"/><path class=\"pele-marker\" d=\"M222.71,1391.41L219.35,1383.41L226.07,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.48,1256.16 477.48,1266.41L477.48,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1378.91L474.12,1370.91L480.84,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.71,1478.41L222.71,1531.91\"/><path class=\"pele-marker\" d=\"M222.71,1538.91L219.35,1530.91L226.07,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M179.15,1656.16L179.15,1749.39\"/><path class=\"pele-marker\" d=\"M179.15,1756.39L175.79,1748.39L182.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M252.07,1665.05C252.07,1684.47 451.42,1684.47 451.42,1703.89L451.42,1749.39\"/><path class=\"pele-marker\" d=\"M451.42,1756.39L448.06,1748.39L454.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.48,1490.91L477.48,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1756.39L474.12,1748.39L480.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.95\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.71\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.25\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"128.07\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"179.15\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.36\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.42\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.51\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0064</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.71,1434.91)\"><rect x=\"-110.91\" y=\"-43.5\" width=\"221.82\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Perform restore or failover</tspan><tspan x=\"0\" y=\"5.6\">verification with recorded</tspan><tspan x=\"0\" y=\"26.6\">recovery targets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.48,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.71,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(179.15,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.45,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0065",
    "title": "Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-5 • Profile V)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 671 485\" width=\"671\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.55 337.67,366.82 337.67,370.88L337.67,376\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.67,286L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M563.51,295L563.51,355.5C563.51,359.69 337.67,366.69 337.67,370.88L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.67,95L337.67,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,192L334.31,184L341.03,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.6\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.67\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.67\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"466.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"563.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"563.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.53\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.67\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.67,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.67,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(563.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.67,51.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_rolling_update_t5\n\ndefault allow = false\n\n# Rule: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-5 • Profile V)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.strategy.rollingUpdate.maxUnavailable according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0065\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0065</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0066",
    "title": "Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-5 • Profile W)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Operational Excellence",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Immutable Container Image Digests (sha256) in Pod Template.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 665 485\" width=\"665\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.65 332.34,366.73 332.34,370.88L332.34,376\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M332.34,286L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.18,295L558.18,355.5C558.18,359.69 332.34,366.69 332.34,370.88L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M332.34,95L332.34,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,192L328.98,184L335.7,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"267.26\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"332.34\" y=\"331.4\">Workload or routing</tspan><tspan x=\"332.34\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"461.58\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.18\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"558.18\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"241.19\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"332.34\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(332.34,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(332.34,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.18,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(332.34,51.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_image_digest_t5\n\ndefault allow = false\n\n# Rule: Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-5 • Profile W)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].image according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify artifact digest, trusted signer identity, and relevant attestations",
        "An image signature establishes provenance only under the configured trust policy. Scan results, deployment admission, and runtime restrictions remain separate controls.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/",
        "https://docs.sigstore.dev/cosign/verifying/verify/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0066\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify artifact digest, trusted signer identity, and relevant attestations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1830\" width=\"594\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.67\" y=\"1297.91\" width=\"539.08\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 221.15,1235.16 221.15,1245.41L221.15,1363.41\"/><path class=\"pele-marker\" d=\"M221.15,1370.41L217.79,1362.41L224.51,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 479.04,1235.16 479.04,1245.41L479.04,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1357.91L475.68,1349.91L482.4,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.15,1457.41L221.15,1510.91\"/><path class=\"pele-marker\" d=\"M221.15,1517.91L217.79,1509.91L224.51,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.59,1635.16L177.59,1728.39\"/><path class=\"pele-marker\" d=\"M177.59,1735.39L174.23,1727.39L180.95,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.51,1644.05C250.51,1663.47 452.98,1663.47 452.98,1682.89L452.98,1728.39\"/><path class=\"pele-marker\" d=\"M452.98,1735.39L449.62,1727.39L456.34,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.04,1469.91L479.04,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1735.39L475.68,1727.39L482.4,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.39\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.15\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.81\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.51\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.59\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"436.92\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"452.98\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.07\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0066</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.15,1413.91)\"><rect x=\"-117.15\" y=\"-43.5\" width=\"234.3\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify artifact digest, trusted</tspan><tspan x=\"0\" y=\"5.6\">signer identity, and relevant</tspan><tspan x=\"0\" y=\"26.6\">attestations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.04,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.15,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.59,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.01,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0067",
    "title": "Enforce automountServiceAccountToken = false on Deployment Pod Spec (Tier-5 • Profile X)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Cost Optimization",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce automountServiceAccountToken = false on Deployment Pod Spec.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 689 506\" width=\"689\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.34 355.9,388.03 355.9,391.88L355.9,397\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M355.9,307L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M581.74,316L581.74,376.5C581.74,380.69 355.9,387.69 355.9,391.88L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M355.9,116L355.9,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,213L352.54,205L359.26,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"290.83\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"355.9\" y=\"352.4\">Workload or routing</tspan><tspan x=\"355.9\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"485.15\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"581.74\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"581.74\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"264.76\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"355.9\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(355.9,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(355.9,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(581.74,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(355.9,62)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_disable_sa_automount_t5\n\ndefault allow = false\n\n# Rule: Enforce automountServiceAccountToken = false on Deployment Pod Spec (Tier-5 • Profile X)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.automountServiceAccountToken according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0067\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1318.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"87.35\" y=\"8\" width=\"307.22\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"234.76\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.49,1256.16 222.49,1266.41L222.49,1384.41\"/><path class=\"pele-marker\" d=\"M222.49,1391.41L219.13,1383.41L225.85,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.71,1256.16 477.71,1266.41L477.71,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1378.91L474.35,1370.91L481.07,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1478.41L222.49,1531.91\"/><path class=\"pele-marker\" d=\"M222.49,1538.91L219.13,1530.91L225.85,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1656.16L178.92,1749.39\"/><path class=\"pele-marker\" d=\"M178.92,1756.39L175.56,1748.39L182.28,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1665.05C251.84,1684.47 451.64,1684.47 451.64,1703.89L451.64,1749.39\"/><path class=\"pele-marker\" d=\"M451.64,1756.39L448.28,1748.39L455,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1490.91L477.71,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1756.39L474.35,1748.39L481.07,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0067</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1434.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0068",
    "title": "Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints (Tier-5 • Profile Y)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 655 506\" width=\"655\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.84 322.1,387.53 322.1,391.88L322.1,397\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M322.1,307L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M547.94,316L547.94,376.5C547.94,380.69 322.1,387.69 322.1,391.88L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M322.1,116L322.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,213L318.74,205L325.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"257.03\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"322.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"322.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"451.35\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"547.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"547.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"230.96\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"322.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(322.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(322.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(547.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(322.1,62)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_probes_configured_t5\n\ndefault allow = false\n\n# Rule: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints (Tier-5 • Profile Y)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].readinessProbe according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0068\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0068</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0069",
    "title": "Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-6 • Profile Z)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.61 334.1,387.76 334.1,391.88L334.1,397\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M334.1,307L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.94,316L559.94,376.5C559.94,380.69 334.1,387.69 334.1,391.88L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M334.1,116L334.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,213L330.74,205L337.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"334.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"334.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.34\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"334.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(334.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(334.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(334.1,62)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_high_availability_t6\n\ndefault allow = false\n\n# Rule: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-6 • Profile Z)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.replicas according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Perform restore or failover verification with recorded recovery targets",
        "Replication, versioning, retention lock, and backup recovery provide different guarantees. Select supported settings and test recovery before relying on them.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0069\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Perform restore or failover verification with recorded recovery targets\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48.23\" y=\"1318.91\" width=\"535.96\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.71,1256.16 222.71,1266.41L222.71,1384.41\"/><path class=\"pele-marker\" d=\"M222.71,1391.41L219.35,1383.41L226.07,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.48,1256.16 477.48,1266.41L477.48,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1378.91L474.12,1370.91L480.84,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.71,1478.41L222.71,1531.91\"/><path class=\"pele-marker\" d=\"M222.71,1538.91L219.35,1530.91L226.07,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M179.15,1656.16L179.15,1749.39\"/><path class=\"pele-marker\" d=\"M179.15,1756.39L175.79,1748.39L182.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M252.07,1665.05C252.07,1684.47 451.42,1684.47 451.42,1703.89L451.42,1749.39\"/><path class=\"pele-marker\" d=\"M451.42,1756.39L448.06,1748.39L454.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.48,1490.91L477.48,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1756.39L474.12,1748.39L480.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.95\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.71\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.25\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"128.07\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"179.15\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.36\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.42\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.51\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0069</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.71,1434.91)\"><rect x=\"-110.91\" y=\"-43.5\" width=\"221.82\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Perform restore or failover</tspan><tspan x=\"0\" y=\"5.6\">verification with recorded</tspan><tspan x=\"0\" y=\"26.6\">recovery targets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.48,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.71,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(179.15,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.45,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0070",
    "title": "Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-6 • Profile A)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 671 485\" width=\"671\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.55 337.67,366.82 337.67,370.88L337.67,376\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.67,286L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M563.51,295L563.51,355.5C563.51,359.69 337.67,366.69 337.67,370.88L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.67,95L337.67,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,192L334.31,184L341.03,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.6\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.67\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.67\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"466.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"563.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"563.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.53\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.67\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.67,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.67,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(563.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.67,51.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_rolling_update_t6\n\ndefault allow = false\n\n# Rule: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-6 • Profile A)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.strategy.rollingUpdate.maxUnavailable according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0070\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0070</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0071",
    "title": "Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-6 • Profile B)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Immutable Container Image Digests (sha256) in Pod Template.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 665 485\" width=\"665\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.65 332.34,366.73 332.34,370.88L332.34,376\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M332.34,286L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.18,295L558.18,355.5C558.18,359.69 332.34,366.69 332.34,370.88L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M332.34,95L332.34,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,192L328.98,184L335.7,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"267.26\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"332.34\" y=\"331.4\">Workload or routing</tspan><tspan x=\"332.34\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"461.58\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.18\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"558.18\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"241.19\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"332.34\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(332.34,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(332.34,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.18,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(332.34,51.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_image_digest_t6\n\ndefault allow = false\n\n# Rule: Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-6 • Profile B)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].image according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify artifact digest, trusted signer identity, and relevant attestations",
        "An image signature establishes provenance only under the configured trust policy. Scan results, deployment admission, and runtime restrictions remain separate controls.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/",
        "https://docs.sigstore.dev/cosign/verifying/verify/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0071\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify artifact digest, trusted signer identity, and relevant attestations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1830\" width=\"594\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.67\" y=\"1297.91\" width=\"539.08\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 221.15,1235.16 221.15,1245.41L221.15,1363.41\"/><path class=\"pele-marker\" d=\"M221.15,1370.41L217.79,1362.41L224.51,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 479.04,1235.16 479.04,1245.41L479.04,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1357.91L475.68,1349.91L482.4,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.15,1457.41L221.15,1510.91\"/><path class=\"pele-marker\" d=\"M221.15,1517.91L217.79,1509.91L224.51,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.59,1635.16L177.59,1728.39\"/><path class=\"pele-marker\" d=\"M177.59,1735.39L174.23,1727.39L180.95,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.51,1644.05C250.51,1663.47 452.98,1663.47 452.98,1682.89L452.98,1728.39\"/><path class=\"pele-marker\" d=\"M452.98,1735.39L449.62,1727.39L456.34,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.04,1469.91L479.04,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1735.39L475.68,1727.39L482.4,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.39\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.15\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.81\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.51\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.59\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"436.92\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"452.98\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.07\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0071</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.15,1413.91)\"><rect x=\"-117.15\" y=\"-43.5\" width=\"234.3\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify artifact digest, trusted</tspan><tspan x=\"0\" y=\"5.6\">signer identity, and relevant</tspan><tspan x=\"0\" y=\"26.6\">attestations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.04,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.15,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.59,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.01,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0072",
    "title": "Enforce automountServiceAccountToken = false on Deployment Pod Spec (Tier-6 • Profile C)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce automountServiceAccountToken = false on Deployment Pod Spec.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 689 506\" width=\"689\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.34 355.9,388.03 355.9,391.88L355.9,397\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M355.9,307L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M581.74,316L581.74,376.5C581.74,380.69 355.9,387.69 355.9,391.88L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M355.9,116L355.9,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,213L352.54,205L359.26,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"290.83\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"355.9\" y=\"352.4\">Workload or routing</tspan><tspan x=\"355.9\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"485.15\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"581.74\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"581.74\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"264.76\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"355.9\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(355.9,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(355.9,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(581.74,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(355.9,62)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_disable_sa_automount_t6\n\ndefault allow = false\n\n# Rule: Enforce automountServiceAccountToken = false on Deployment Pod Spec (Tier-6 • Profile C)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.automountServiceAccountToken according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0072\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1318.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"87.35\" y=\"8\" width=\"307.22\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"234.76\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.49,1256.16 222.49,1266.41L222.49,1384.41\"/><path class=\"pele-marker\" d=\"M222.49,1391.41L219.13,1383.41L225.85,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.71,1256.16 477.71,1266.41L477.71,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1378.91L474.35,1370.91L481.07,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1478.41L222.49,1531.91\"/><path class=\"pele-marker\" d=\"M222.49,1538.91L219.13,1530.91L225.85,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1656.16L178.92,1749.39\"/><path class=\"pele-marker\" d=\"M178.92,1756.39L175.56,1748.39L182.28,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1665.05C251.84,1684.47 451.64,1684.47 451.64,1703.89L451.64,1749.39\"/><path class=\"pele-marker\" d=\"M451.64,1756.39L448.28,1748.39L455,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1490.91L477.71,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1756.39L474.35,1748.39L481.07,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0072</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1434.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0073",
    "title": "Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints (Tier-6 • Profile D)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Performance Efficiency",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 655 506\" width=\"655\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.84 322.1,387.53 322.1,391.88L322.1,397\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M322.1,307L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M547.94,316L547.94,376.5C547.94,380.69 322.1,387.69 322.1,391.88L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M322.1,116L322.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,213L318.74,205L325.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"257.03\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"322.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"322.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"451.35\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"547.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"547.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"230.96\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"322.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(322.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(322.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(547.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(322.1,62)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_probes_configured_t6\n\ndefault allow = false\n\n# Rule: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints (Tier-6 • Profile D)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].readinessProbe according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0073\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0073</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0074",
    "title": "Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-7 • Profile E)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.61 334.1,387.76 334.1,391.88L334.1,397\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M334.1,307L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.94,316L559.94,376.5C559.94,380.69 334.1,387.69 334.1,391.88L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M334.1,116L334.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,213L330.74,205L337.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"334.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"334.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.34\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"334.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(334.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(334.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(334.1,62)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_high_availability_t7\n\ndefault allow = false\n\n# Rule: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-7 • Profile E)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.replicas according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Perform restore or failover verification with recorded recovery targets",
        "Replication, versioning, retention lock, and backup recovery provide different guarantees. Select supported settings and test recovery before relying on them.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0074\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Perform restore or failover verification with recorded recovery targets\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48.23\" y=\"1318.91\" width=\"535.96\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.71,1256.16 222.71,1266.41L222.71,1384.41\"/><path class=\"pele-marker\" d=\"M222.71,1391.41L219.35,1383.41L226.07,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.48,1256.16 477.48,1266.41L477.48,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1378.91L474.12,1370.91L480.84,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.71,1478.41L222.71,1531.91\"/><path class=\"pele-marker\" d=\"M222.71,1538.91L219.35,1530.91L226.07,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M179.15,1656.16L179.15,1749.39\"/><path class=\"pele-marker\" d=\"M179.15,1756.39L175.79,1748.39L182.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M252.07,1665.05C252.07,1684.47 451.42,1684.47 451.42,1703.89L451.42,1749.39\"/><path class=\"pele-marker\" d=\"M451.42,1756.39L448.06,1748.39L454.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.48,1490.91L477.48,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1756.39L474.12,1748.39L480.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.95\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.71\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.25\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"128.07\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"179.15\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.36\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.42\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.51\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0074</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.71,1434.91)\"><rect x=\"-110.91\" y=\"-43.5\" width=\"221.82\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Perform restore or failover</tspan><tspan x=\"0\" y=\"5.6\">verification with recorded</tspan><tspan x=\"0\" y=\"26.6\">recovery targets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.48,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.71,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(179.15,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.45,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0075",
    "title": "Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-7 • Profile F)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Reliability",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 671 485\" width=\"671\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.55 337.67,366.82 337.67,370.88L337.67,376\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.67,286L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M563.51,295L563.51,355.5C563.51,359.69 337.67,366.69 337.67,370.88L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.67,95L337.67,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,192L334.31,184L341.03,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.6\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.67\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.67\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"466.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"563.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"563.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.53\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.67\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.67,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.67,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(563.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.67,51.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_rolling_update_t7\n\ndefault allow = false\n\n# Rule: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-7 • Profile F)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.strategy.rollingUpdate.maxUnavailable according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0075\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0075</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0076",
    "title": "Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-7 • Profile G)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Immutable Container Image Digests (sha256) in Pod Template.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 665 485\" width=\"665\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.65 332.34,366.73 332.34,370.88L332.34,376\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M332.34,286L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.18,295L558.18,355.5C558.18,359.69 332.34,366.69 332.34,370.88L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M332.34,95L332.34,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,192L328.98,184L335.7,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"267.26\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"332.34\" y=\"331.4\">Workload or routing</tspan><tspan x=\"332.34\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"461.58\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.18\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"558.18\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"241.19\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"332.34\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(332.34,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(332.34,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.18,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(332.34,51.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_image_digest_t7\n\ndefault allow = false\n\n# Rule: Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-7 • Profile G)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].image according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify artifact digest, trusted signer identity, and relevant attestations",
        "An image signature establishes provenance only under the configured trust policy. Scan results, deployment admission, and runtime restrictions remain separate controls.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/",
        "https://docs.sigstore.dev/cosign/verifying/verify/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0076\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify artifact digest, trusted signer identity, and relevant attestations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1830\" width=\"594\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.67\" y=\"1297.91\" width=\"539.08\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 221.15,1235.16 221.15,1245.41L221.15,1363.41\"/><path class=\"pele-marker\" d=\"M221.15,1370.41L217.79,1362.41L224.51,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 479.04,1235.16 479.04,1245.41L479.04,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1357.91L475.68,1349.91L482.4,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.15,1457.41L221.15,1510.91\"/><path class=\"pele-marker\" d=\"M221.15,1517.91L217.79,1509.91L224.51,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.59,1635.16L177.59,1728.39\"/><path class=\"pele-marker\" d=\"M177.59,1735.39L174.23,1727.39L180.95,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.51,1644.05C250.51,1663.47 452.98,1663.47 452.98,1682.89L452.98,1728.39\"/><path class=\"pele-marker\" d=\"M452.98,1735.39L449.62,1727.39L456.34,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.04,1469.91L479.04,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1735.39L475.68,1727.39L482.4,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.39\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.15\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.81\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.51\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.59\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"436.92\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"452.98\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.07\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0076</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.15,1413.91)\"><rect x=\"-117.15\" y=\"-43.5\" width=\"234.3\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify artifact digest, trusted</tspan><tspan x=\"0\" y=\"5.6\">signer identity, and relevant</tspan><tspan x=\"0\" y=\"26.6\">attestations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.04,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.15,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.59,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.01,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0077",
    "title": "Enforce automountServiceAccountToken = false on Deployment Pod Spec (Tier-7 • Profile H)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce automountServiceAccountToken = false on Deployment Pod Spec.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 689 506\" width=\"689\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.34 355.9,388.03 355.9,391.88L355.9,397\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M355.9,307L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M581.74,316L581.74,376.5C581.74,380.69 355.9,387.69 355.9,391.88L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M355.9,116L355.9,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,213L352.54,205L359.26,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"290.83\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"355.9\" y=\"352.4\">Workload or routing</tspan><tspan x=\"355.9\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"485.15\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"581.74\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"581.74\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"264.76\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"355.9\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(355.9,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(355.9,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(581.74,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(355.9,62)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_disable_sa_automount_t7\n\ndefault allow = false\n\n# Rule: Enforce automountServiceAccountToken = false on Deployment Pod Spec (Tier-7 • Profile H)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.automountServiceAccountToken according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0077\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1318.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"87.35\" y=\"8\" width=\"307.22\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"234.76\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.49,1256.16 222.49,1266.41L222.49,1384.41\"/><path class=\"pele-marker\" d=\"M222.49,1391.41L219.13,1383.41L225.85,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.71,1256.16 477.71,1266.41L477.71,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1378.91L474.35,1370.91L481.07,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1478.41L222.49,1531.91\"/><path class=\"pele-marker\" d=\"M222.49,1538.91L219.13,1530.91L225.85,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1656.16L178.92,1749.39\"/><path class=\"pele-marker\" d=\"M178.92,1756.39L175.56,1748.39L182.28,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1665.05C251.84,1684.47 451.64,1684.47 451.64,1703.89L451.64,1749.39\"/><path class=\"pele-marker\" d=\"M451.64,1756.39L448.28,1748.39L455,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1490.91L477.71,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1756.39L474.35,1748.39L481.07,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0077</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1434.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0078",
    "title": "Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints (Tier-7 • Profile I)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Performance Efficiency",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 655 506\" width=\"655\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.84 322.1,387.53 322.1,391.88L322.1,397\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M322.1,307L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M547.94,316L547.94,376.5C547.94,380.69 322.1,387.69 322.1,391.88L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M322.1,116L322.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,213L318.74,205L325.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"257.03\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"322.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"322.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"451.35\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"547.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"547.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"230.96\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"322.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(322.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(322.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(547.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(322.1,62)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_probes_configured_t7\n\ndefault allow = false\n\n# Rule: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints (Tier-7 • Profile I)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].readinessProbe according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0078\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0078</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0079",
    "title": "Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-8 • Profile J)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.61 334.1,387.76 334.1,391.88L334.1,397\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M334.1,307L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.94,316L559.94,376.5C559.94,380.69 334.1,387.69 334.1,391.88L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M334.1,116L334.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,213L330.74,205L337.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"334.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"334.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.34\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"334.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(334.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(334.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(334.1,62)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_high_availability_t8\n\ndefault allow = false\n\n# Rule: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-8 • Profile J)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.replicas according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Perform restore or failover verification with recorded recovery targets",
        "Replication, versioning, retention lock, and backup recovery provide different guarantees. Select supported settings and test recovery before relying on them.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0079\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Perform restore or failover verification with recorded recovery targets\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48.23\" y=\"1318.91\" width=\"535.96\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.71,1256.16 222.71,1266.41L222.71,1384.41\"/><path class=\"pele-marker\" d=\"M222.71,1391.41L219.35,1383.41L226.07,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.48,1256.16 477.48,1266.41L477.48,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1378.91L474.12,1370.91L480.84,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.71,1478.41L222.71,1531.91\"/><path class=\"pele-marker\" d=\"M222.71,1538.91L219.35,1530.91L226.07,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M179.15,1656.16L179.15,1749.39\"/><path class=\"pele-marker\" d=\"M179.15,1756.39L175.79,1748.39L182.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M252.07,1665.05C252.07,1684.47 451.42,1684.47 451.42,1703.89L451.42,1749.39\"/><path class=\"pele-marker\" d=\"M451.42,1756.39L448.06,1748.39L454.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.48,1490.91L477.48,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1756.39L474.12,1748.39L480.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.95\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.71\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.25\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"128.07\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"179.15\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.36\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.42\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.51\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0079</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.71,1434.91)\"><rect x=\"-110.91\" y=\"-43.5\" width=\"221.82\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Perform restore or failover</tspan><tspan x=\"0\" y=\"5.6\">verification with recorded</tspan><tspan x=\"0\" y=\"26.6\">recovery targets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.48,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.71,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(179.15,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.45,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0080",
    "title": "Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-8 • Profile K)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 671 485\" width=\"671\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.55 337.67,366.82 337.67,370.88L337.67,376\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.67,286L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M563.51,295L563.51,355.5C563.51,359.69 337.67,366.69 337.67,370.88L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.67,95L337.67,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,192L334.31,184L341.03,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.6\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.67\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.67\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"466.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"563.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"563.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.53\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.67\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.67,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.67,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(563.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.67,51.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_rolling_update_t8\n\ndefault allow = false\n\n# Rule: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-8 • Profile K)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.strategy.rollingUpdate.maxUnavailable according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0080\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0080</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0081",
    "title": "Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-8 • Profile L)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Operational Excellence",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Immutable Container Image Digests (sha256) in Pod Template.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 665 485\" width=\"665\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.65 332.34,366.73 332.34,370.88L332.34,376\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M332.34,286L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.18,295L558.18,355.5C558.18,359.69 332.34,366.69 332.34,370.88L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M332.34,95L332.34,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,192L328.98,184L335.7,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"267.26\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"332.34\" y=\"331.4\">Workload or routing</tspan><tspan x=\"332.34\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"461.58\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.18\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"558.18\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"241.19\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"332.34\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(332.34,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(332.34,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.18,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(332.34,51.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_image_digest_t8\n\ndefault allow = false\n\n# Rule: Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-8 • Profile L)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].image according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify artifact digest, trusted signer identity, and relevant attestations",
        "An image signature establishes provenance only under the configured trust policy. Scan results, deployment admission, and runtime restrictions remain separate controls.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/",
        "https://docs.sigstore.dev/cosign/verifying/verify/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0081\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify artifact digest, trusted signer identity, and relevant attestations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1830\" width=\"594\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.67\" y=\"1297.91\" width=\"539.08\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 221.15,1235.16 221.15,1245.41L221.15,1363.41\"/><path class=\"pele-marker\" d=\"M221.15,1370.41L217.79,1362.41L224.51,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 479.04,1235.16 479.04,1245.41L479.04,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1357.91L475.68,1349.91L482.4,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.15,1457.41L221.15,1510.91\"/><path class=\"pele-marker\" d=\"M221.15,1517.91L217.79,1509.91L224.51,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.59,1635.16L177.59,1728.39\"/><path class=\"pele-marker\" d=\"M177.59,1735.39L174.23,1727.39L180.95,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.51,1644.05C250.51,1663.47 452.98,1663.47 452.98,1682.89L452.98,1728.39\"/><path class=\"pele-marker\" d=\"M452.98,1735.39L449.62,1727.39L456.34,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.04,1469.91L479.04,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1735.39L475.68,1727.39L482.4,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.39\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.15\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.81\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.51\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.59\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"436.92\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"452.98\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.07\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0081</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.15,1413.91)\"><rect x=\"-117.15\" y=\"-43.5\" width=\"234.3\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify artifact digest, trusted</tspan><tspan x=\"0\" y=\"5.6\">signer identity, and relevant</tspan><tspan x=\"0\" y=\"26.6\">attestations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.04,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.15,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.59,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.01,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0082",
    "title": "Enforce automountServiceAccountToken = false on Deployment Pod Spec (Tier-8 • Profile M)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Cost Optimization",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce automountServiceAccountToken = false on Deployment Pod Spec.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 689 506\" width=\"689\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.34 355.9,388.03 355.9,391.88L355.9,397\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M355.9,307L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M581.74,316L581.74,376.5C581.74,380.69 355.9,387.69 355.9,391.88L355.9,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,404L352.54,396L359.26,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M355.9,116L355.9,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M355.9,213L352.54,205L359.26,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"290.83\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"355.9\" y=\"352.4\">Workload or routing</tspan><tspan x=\"355.9\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"485.15\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"581.74\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"581.74\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"264.76\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"355.9\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(355.9,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(355.9,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(581.74,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(355.9,62)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_disable_sa_automount_t8\n\ndefault allow = false\n\n# Rule: Enforce automountServiceAccountToken = false on Deployment Pod Spec (Tier-8 • Profile M)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.automountServiceAccountToken according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce automountServiceAccountToken = false on Deployment Pod Spec\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0082\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1318.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"87.35\" y=\"8\" width=\"307.22\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"234.76\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.49,1256.16 222.49,1266.41L222.49,1384.41\"/><path class=\"pele-marker\" d=\"M222.49,1391.41L219.13,1383.41L225.85,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.71,1256.16 477.71,1266.41L477.71,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1378.91L474.35,1370.91L481.07,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1478.41L222.49,1531.91\"/><path class=\"pele-marker\" d=\"M222.49,1538.91L219.13,1530.91L225.85,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1656.16L178.92,1749.39\"/><path class=\"pele-marker\" d=\"M178.92,1756.39L175.56,1748.39L182.28,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1665.05C251.84,1684.47 451.64,1684.47 451.64,1703.89L451.64,1749.39\"/><path class=\"pele-marker\" d=\"M451.64,1756.39L448.28,1748.39L455,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1490.91L477.71,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1756.39L474.35,1748.39L481.07,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-133.61\" y=\"-54\" width=\"267.22\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">automountServiceAccountToken</tspan><tspan x=\"0\" y=\"16.1\">= false on Deployment Pod</tspan><tspan x=\"0\" y=\"37.1\">Spec</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0082</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1434.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0083",
    "title": "Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints (Tier-8 • Profile N)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 655 506\" width=\"655\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.84 322.1,387.53 322.1,391.88L322.1,397\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M322.1,307L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M547.94,316L547.94,376.5C547.94,380.69 322.1,387.69 322.1,391.88L322.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,404L318.74,396L325.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M322.1,116L322.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M322.1,213L318.74,205L325.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"257.03\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"322.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"322.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"451.35\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"547.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"547.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"230.96\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"322.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(322.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(322.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(547.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(322.1,62)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_probes_configured_t8\n\ndefault allow = false\n\n# Rule: Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints (Tier-8 • Profile N)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].readinessProbe according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Liveness and Readiness Probes with Safe HTTP/TCP Checkpoints\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0083\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-99.81\" y=\"-54\" width=\"199.62\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Liveness and</tspan><tspan x=\"0\" y=\"-4.9\">Readiness Probes with</tspan><tspan x=\"0\" y=\"16.1\">Safe HTTP/TCP</tspan><tspan x=\"0\" y=\"37.1\">Checkpoints</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0083</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0084",
    "title": "Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-9 • Profile O)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Reliability",
    "severity": "Critical",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.61 334.1,387.76 334.1,391.88L334.1,397\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M334.1,307L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.94,316L559.94,376.5C559.94,380.69 334.1,387.69 334.1,391.88L334.1,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,404L330.74,396L337.46,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M334.1,116L334.1,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M334.1,213L330.74,205L337.46,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.02\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"334.1\" y=\"352.4\">Workload or routing</tspan><tspan x=\"334.1\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.34\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.94\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.94\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.95\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"334.1\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(334.1,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(334.1,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.94,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(334.1,62)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_high_availability_t9\n\ndefault allow = false\n\n# Rule: Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains (Tier-9 • Profile O)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.replicas according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-9\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-9\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-9)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-9\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-9\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-9)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Perform restore or failover verification with recorded recovery targets",
        "Replication, versioning, retention lock, and backup recovery provide different guarantees. Select supported settings and test recovery before relying on them.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Minimum 2 Replicas and Pod Anti-Affinity Across Failure Domains\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0084\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Perform restore or failover verification with recorded recovery targets\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48.23\" y=\"1318.91\" width=\"535.96\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.71,1256.16 222.71,1266.41L222.71,1384.41\"/><path class=\"pele-marker\" d=\"M222.71,1391.41L219.35,1383.41L226.07,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.48,1256.16 477.48,1266.41L477.48,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1378.91L474.12,1370.91L480.84,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.71,1478.41L222.71,1531.91\"/><path class=\"pele-marker\" d=\"M222.71,1538.91L219.35,1530.91L226.07,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M179.15,1656.16L179.15,1749.39\"/><path class=\"pele-marker\" d=\"M179.15,1756.39L175.79,1748.39L182.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M252.07,1665.05C252.07,1684.47 451.42,1684.47 451.42,1703.89L451.42,1749.39\"/><path class=\"pele-marker\" d=\"M451.42,1756.39L448.06,1748.39L454.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.48,1490.91L477.48,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.48,1756.39L474.12,1748.39L480.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.85\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.95\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.71\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.25\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"128.07\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"179.15\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.36\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.42\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.51\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.48\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-111.8\" y=\"-54\" width=\"223.6\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Minimum 2</tspan><tspan x=\"0\" y=\"-4.9\">Replicas and Pod</tspan><tspan x=\"0\" y=\"16.1\">Anti-Affinity Across Failure</tspan><tspan x=\"0\" y=\"37.1\">Domains</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0084</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.71,1434.91)\"><rect x=\"-110.91\" y=\"-43.5\" width=\"221.82\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Perform restore or failover</tspan><tspan x=\"0\" y=\"5.6\">verification with recorded</tspan><tspan x=\"0\" y=\"26.6\">recovery targets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.48,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.71,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(179.15,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.45,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0085",
    "title": "Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-9 • Profile P)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 671 485\" width=\"671\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.55 337.67,366.82 337.67,370.88L337.67,376\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.67,286L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M563.51,295L563.51,355.5C563.51,359.69 337.67,366.69 337.67,370.88L337.67,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,383L334.31,375L341.03,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.67,95L337.67,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.67,192L334.31,184L341.03,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.6\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.67\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.67\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"466.92\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"563.51\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"563.51\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.53\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.67\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.67,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.67,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(563.51,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.67,51.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_rolling_update_t9\n\ndefault allow = false\n\n# Rule: Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0 (Tier-9 • Profile P)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.strategy.rollingUpdate.maxUnavailable according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-9\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-9\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-9)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-9\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-9\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-9)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce RollingUpdate Strategy with maxSurge 25% and maxUnavailable 0\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0085\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-115.38\" y=\"-43.5\" width=\"230.75\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce RollingUpdate</tspan><tspan x=\"0\" y=\"5.6\">Strategy with maxSurge</tspan><tspan x=\"0\" y=\"26.6\">25% and maxUnavailable 0</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0085</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0086",
    "title": "Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-9 • Profile Q)",
    "category": "k8s-deployment",
    "category_name": "Deployments & Rolling Update Defense",
    "service": "Kubernetes Deployment",
    "icon_url": "/images/k8s-icons/k8s-deployment.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes Deployment. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Immutable Container Image Digests (sha256) in Pod Template.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 665 485\" width=\"665\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.65 332.34,366.73 332.34,370.88L332.34,376\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M332.34,286L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.18,295L558.18,355.5C558.18,359.69 332.34,366.69 332.34,370.88L332.34,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,383L328.98,375L335.7,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M332.34,95L332.34,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M332.34,192L328.98,184L335.7,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"267.26\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"332.34\" y=\"331.4\">Workload or routing</tspan><tspan x=\"332.34\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"461.58\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.18\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"558.18\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"241.19\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"332.34\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(332.34,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(332.34,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-2-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-2-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.18,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(332.34,51.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_deployment.k8s_deployment_deployment_image_digest_t9\n\ndefault allow = false\n\n# Rule: Enforce Immutable Container Image Digests (sha256) in Pod Template (Tier-9 • Profile Q)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"Deployment\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].image according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-9\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-9\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-9)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: \"k8s-deployment-hardened-9\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-deployment\"\n    security.kspm.io/tier: \"tier-9\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-9)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-deployment-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify artifact digest, trusted signer identity, and relevant attestations",
        "An image signature establishes provenance only under the configured trust policy. Scan results, deployment admission, and runtime restrictions remain separate controls.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/",
        "https://docs.sigstore.dev/cosign/verifying/verify/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes Deployment\"]\n      requirement[\"Enforce Immutable Container Image Digests (sha256) in Pod Template\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0086\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-deployment\", label: \"Kubernetes Deployment\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify artifact digest, trusted signer identity, and relevant attestations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1830\" width=\"594\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.67\" y=\"1297.91\" width=\"539.08\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 221.15,1235.16 221.15,1245.41L221.15,1363.41\"/><path class=\"pele-marker\" d=\"M221.15,1370.41L217.79,1362.41L224.51,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 479.04,1235.16 479.04,1245.41L479.04,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1357.91L475.68,1349.91L482.4,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.15,1457.41L221.15,1510.91\"/><path class=\"pele-marker\" d=\"M221.15,1517.91L217.79,1509.91L224.51,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.59,1635.16L177.59,1728.39\"/><path class=\"pele-marker\" d=\"M177.59,1735.39L174.23,1727.39L180.95,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.51,1644.05C250.51,1663.47 452.98,1663.47 452.98,1682.89L452.98,1728.39\"/><path class=\"pele-marker\" d=\"M452.98,1735.39L449.62,1727.39L456.34,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.04,1469.91L479.04,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.04,1735.39L475.68,1727.39L482.4,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.29\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.39\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.15\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.81\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.51\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.59\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"436.92\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"452.98\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.07\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.04\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes Deployment</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-110.04\" y=\"-43.5\" width=\"220.08\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Immutable</tspan><tspan x=\"0\" y=\"5.6\">Container Image Digests</tspan><tspan x=\"0\" y=\"26.6\">(sha256) in Pod Template</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0086</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-deployment\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-deployment\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Deployment</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-deployment-1-k8s-k8s-deployment-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1E40AF\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-deployment-1-k8s-k8s-deployment-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm12 0a4 4 0 11-4 4 4 4 0 014-4zm0 2a2 2 0 102 2 2 2 0 00-2-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes Deployment</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.15,1413.91)\"><rect x=\"-117.15\" y=\"-43.5\" width=\"234.3\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify artifact digest, trusted</tspan><tspan x=\"0\" y=\"5.6\">signer identity, and relevant</tspan><tspan x=\"0\" y=\"26.6\">attestations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.04,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.15,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.59,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.01,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0087",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t1\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0087\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0087</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0088",
    "title": "Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 668 485\" width=\"668\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.6 335.02,366.78 335.02,370.88L335.02,376\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.02,286L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M560.42,295L560.42,355.5C560.42,359.7 335.02,366.68 335.02,370.88L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.02,95L335.02,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,192L331.66,184L338.38,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.94\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.02\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.02\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.82\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"560.42\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"560.42\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"243.87\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.02\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.02,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.02,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(560.42,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.02,51.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_no_host_port_t1\n\ndefault allow = false\n\n# Rule: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].ports[_].hostPort according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0088\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0088</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0089",
    "title": "Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Operational Excellence",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 672 506\" width=\"672\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.52 339.44,387.85 339.44,391.88L339.44,397\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M339.44,307L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M564.84,316L564.84,376.5C564.84,380.7 339.44,387.68 339.44,391.88L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M339.44,116L339.44,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,213L336.08,205L342.8,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"274.37\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"339.44\" y=\"352.4\">Workload or routing</tspan><tspan x=\"339.44\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"468.24\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"564.84\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"564.84\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"248.3\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"339.44\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(339.44,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(339.44,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(564.84,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(339.44,62)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_node_affinity_t1\n\ndefault allow = false\n\n# Rule: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.nodeSelector according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0089\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0089</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0090",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-2 • Profile D)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t2\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-2 • Profile D)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0090\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0090</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0091",
    "title": "Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-2 • Profile E)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 668 485\" width=\"668\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.6 335.02,366.78 335.02,370.88L335.02,376\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.02,286L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M560.42,295L560.42,355.5C560.42,359.7 335.02,366.68 335.02,370.88L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.02,95L335.02,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,192L331.66,184L338.38,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.94\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.02\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.02\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.82\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"560.42\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"560.42\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"243.87\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.02\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.02,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.02,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(560.42,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.02,51.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_no_host_port_t2\n\ndefault allow = false\n\n# Rule: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-2 • Profile E)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].ports[_].hostPort according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0091\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0091</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0092",
    "title": "Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-2 • Profile F)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 672 506\" width=\"672\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.52 339.44,387.85 339.44,391.88L339.44,397\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M339.44,307L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M564.84,316L564.84,376.5C564.84,380.7 339.44,387.68 339.44,391.88L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M339.44,116L339.44,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,213L336.08,205L342.8,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"274.37\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"339.44\" y=\"352.4\">Workload or routing</tspan><tspan x=\"339.44\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"468.24\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"564.84\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"564.84\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"248.3\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"339.44\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(339.44,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(339.44,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(564.84,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(339.44,62)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_node_affinity_t2\n\ndefault allow = false\n\n# Rule: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-2 • Profile F)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.nodeSelector according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0092\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0092</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0093",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-3 • Profile G)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t3\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-3 • Profile G)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0093\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0093</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0094",
    "title": "Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-3 • Profile H)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Operational Excellence",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 668 485\" width=\"668\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.6 335.02,366.78 335.02,370.88L335.02,376\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.02,286L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M560.42,295L560.42,355.5C560.42,359.7 335.02,366.68 335.02,370.88L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.02,95L335.02,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,192L331.66,184L338.38,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.94\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.02\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.02\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.82\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"560.42\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"560.42\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"243.87\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.02\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.02,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.02,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(560.42,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.02,51.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_no_host_port_t3\n\ndefault allow = false\n\n# Rule: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-3 • Profile H)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].ports[_].hostPort according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0094\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0094</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0095",
    "title": "Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-3 • Profile I)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 672 506\" width=\"672\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.52 339.44,387.85 339.44,391.88L339.44,397\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M339.44,307L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M564.84,316L564.84,376.5C564.84,380.7 339.44,387.68 339.44,391.88L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M339.44,116L339.44,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,213L336.08,205L342.8,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"274.37\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"339.44\" y=\"352.4\">Workload or routing</tspan><tspan x=\"339.44\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"468.24\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"564.84\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"564.84\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"248.3\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"339.44\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(339.44,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(339.44,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(564.84,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(339.44,62)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_node_affinity_t3\n\ndefault allow = false\n\n# Rule: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-3 • Profile I)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.nodeSelector according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0095\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0095</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0096",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-4 • Profile J)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t4\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-4 • Profile J)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0096\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0096</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0097",
    "title": "Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-4 • Profile K)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 668 485\" width=\"668\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.6 335.02,366.78 335.02,370.88L335.02,376\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.02,286L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M560.42,295L560.42,355.5C560.42,359.7 335.02,366.68 335.02,370.88L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.02,95L335.02,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,192L331.66,184L338.38,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.94\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.02\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.02\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.82\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"560.42\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"560.42\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"243.87\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.02\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.02,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.02,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(560.42,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.02,51.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_no_host_port_t4\n\ndefault allow = false\n\n# Rule: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-4 • Profile K)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].ports[_].hostPort according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0097\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0097</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0098",
    "title": "Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-4 • Profile L)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Reliability",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 672 506\" width=\"672\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.52 339.44,387.85 339.44,391.88L339.44,397\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M339.44,307L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M564.84,316L564.84,376.5C564.84,380.7 339.44,387.68 339.44,391.88L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M339.44,116L339.44,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,213L336.08,205L342.8,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"274.37\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"339.44\" y=\"352.4\">Workload or routing</tspan><tspan x=\"339.44\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"468.24\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"564.84\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"564.84\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"248.3\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"339.44\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(339.44,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(339.44,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(564.84,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(339.44,62)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_node_affinity_t4\n\ndefault allow = false\n\n# Rule: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-4 • Profile L)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.nodeSelector according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0098\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0098</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0099",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-5 • Profile M)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t5\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-5 • Profile M)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0099\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0099</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0100",
    "title": "Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-5 • Profile N)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Cost Optimization",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 668 485\" width=\"668\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.6 335.02,366.78 335.02,370.88L335.02,376\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.02,286L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M560.42,295L560.42,355.5C560.42,359.7 335.02,366.68 335.02,370.88L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.02,95L335.02,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,192L331.66,184L338.38,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.94\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.02\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.02\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.82\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"560.42\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"560.42\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"243.87\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.02\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.02,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.02,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(560.42,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.02,51.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_no_host_port_t5\n\ndefault allow = false\n\n# Rule: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-5 • Profile N)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].ports[_].hostPort according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0100\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0100</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0101",
    "title": "Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-5 • Profile O)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Performance Efficiency",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 672 506\" width=\"672\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.52 339.44,387.85 339.44,391.88L339.44,397\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M339.44,307L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M564.84,316L564.84,376.5C564.84,380.7 339.44,387.68 339.44,391.88L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M339.44,116L339.44,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,213L336.08,205L342.8,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"274.37\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"339.44\" y=\"352.4\">Workload or routing</tspan><tspan x=\"339.44\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"468.24\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"564.84\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"564.84\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"248.3\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"339.44\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(339.44,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(339.44,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(564.84,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(339.44,62)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_node_affinity_t5\n\ndefault allow = false\n\n# Rule: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-5 • Profile O)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.nodeSelector according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0101\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0101</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0102",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-6 • Profile P)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t6\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-6 • Profile P)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0102\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0102</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0103",
    "title": "Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-6 • Profile Q)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 668 485\" width=\"668\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.6 335.02,366.78 335.02,370.88L335.02,376\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.02,286L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M560.42,295L560.42,355.5C560.42,359.7 335.02,366.68 335.02,370.88L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.02,95L335.02,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,192L331.66,184L338.38,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.94\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.02\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.02\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.82\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"560.42\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"560.42\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"243.87\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.02\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.02,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.02,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(560.42,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.02,51.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_no_host_port_t6\n\ndefault allow = false\n\n# Rule: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-6 • Profile Q)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].ports[_].hostPort according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0103\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0103</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0104",
    "title": "Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-6 • Profile R)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Operational Excellence",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 672 506\" width=\"672\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.52 339.44,387.85 339.44,391.88L339.44,397\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M339.44,307L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M564.84,316L564.84,376.5C564.84,380.7 339.44,387.68 339.44,391.88L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M339.44,116L339.44,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,213L336.08,205L342.8,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"274.37\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"339.44\" y=\"352.4\">Workload or routing</tspan><tspan x=\"339.44\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"468.24\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"564.84\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"564.84\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"248.3\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"339.44\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(339.44,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(339.44,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(564.84,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(339.44,62)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_node_affinity_t6\n\ndefault allow = false\n\n# Rule: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-6 • Profile R)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.nodeSelector according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0104\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0104</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0105",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-7 • Profile S)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t7\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-7 • Profile S)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0105\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0105</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0106",
    "title": "Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-7 • Profile T)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Performance Efficiency",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 668 485\" width=\"668\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.6 335.02,366.78 335.02,370.88L335.02,376\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.02,286L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M560.42,295L560.42,355.5C560.42,359.7 335.02,366.68 335.02,370.88L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.02,95L335.02,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,192L331.66,184L338.38,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.94\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.02\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.02\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.82\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"560.42\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"560.42\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"243.87\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.02\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.02,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.02,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(560.42,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.02,51.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_no_host_port_t7\n\ndefault allow = false\n\n# Rule: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-7 • Profile T)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].ports[_].hostPort according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0106\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0106</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0107",
    "title": "Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-7 • Profile U)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Reliability",
    "severity": "Critical",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 672 506\" width=\"672\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.52 339.44,387.85 339.44,391.88L339.44,397\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M339.44,307L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M564.84,316L564.84,376.5C564.84,380.7 339.44,387.68 339.44,391.88L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M339.44,116L339.44,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,213L336.08,205L342.8,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"274.37\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"339.44\" y=\"352.4\">Workload or routing</tspan><tspan x=\"339.44\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"468.24\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"564.84\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"564.84\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"248.3\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"339.44\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(339.44,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(339.44,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(564.84,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(339.44,62)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_node_affinity_t7\n\ndefault allow = false\n\n# Rule: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-7 • Profile U)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.nodeSelector according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0107\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0107</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0108",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-8 • Profile V)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t8\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-8 • Profile V)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0108\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0108</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0109",
    "title": "Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-8 • Profile W)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Operational Excellence",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 668 485\" width=\"668\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.6 335.02,366.78 335.02,370.88L335.02,376\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.02,286L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M560.42,295L560.42,355.5C560.42,359.7 335.02,366.68 335.02,370.88L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.02,95L335.02,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,192L331.66,184L338.38,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.94\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.02\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.02\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.82\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"560.42\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"560.42\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"243.87\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.02\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.02,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.02,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(560.42,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.02,51.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_no_host_port_t8\n\ndefault allow = false\n\n# Rule: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-8 • Profile W)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].ports[_].hostPort according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0109\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0109</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0110",
    "title": "Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-8 • Profile X)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Cost Optimization",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 672 506\" width=\"672\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.52 339.44,387.85 339.44,391.88L339.44,397\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M339.44,307L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M564.84,316L564.84,376.5C564.84,380.7 339.44,387.68 339.44,391.88L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M339.44,116L339.44,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,213L336.08,205L342.8,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"274.37\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"339.44\" y=\"352.4\">Workload or routing</tspan><tspan x=\"339.44\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"468.24\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"564.84\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"564.84\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"248.3\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"339.44\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(339.44,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(339.44,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(564.84,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(339.44,62)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_node_affinity_t8\n\ndefault allow = false\n\n# Rule: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-8 • Profile X)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.nodeSelector according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-8\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-8\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-8)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0110\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0110</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0111",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-9 • Profile Y)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t9\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-9 • Profile Y)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-9\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-9\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-9)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-9\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-9\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-9)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0111\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0111</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0112",
    "title": "Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-9 • Profile Z)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 668 485\" width=\"668\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.6 335.02,366.78 335.02,370.88L335.02,376\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.02,286L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M560.42,295L560.42,355.5C560.42,359.7 335.02,366.68 335.02,370.88L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.02,95L335.02,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,192L331.66,184L338.38,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.94\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.02\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.02\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.82\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"560.42\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"560.42\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"243.87\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.02\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.02,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.02,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(560.42,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.02,51.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_no_host_port_t9\n\ndefault allow = false\n\n# Rule: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-9 • Profile Z)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].ports[_].hostPort according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-9\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-9\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-9)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-9\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-9\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-9)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0112\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0112</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0113",
    "title": "Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-9 • Profile A)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 672 506\" width=\"672\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.52 339.44,387.85 339.44,391.88L339.44,397\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M339.44,307L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M564.84,316L564.84,376.5C564.84,380.7 339.44,387.68 339.44,391.88L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M339.44,116L339.44,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,213L336.08,205L342.8,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"274.37\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"339.44\" y=\"352.4\">Workload or routing</tspan><tspan x=\"339.44\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"468.24\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"564.84\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"564.84\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"248.3\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"339.44\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(339.44,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(339.44,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(564.84,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(339.44,62)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_node_affinity_t9\n\ndefault allow = false\n\n# Rule: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-9 • Profile A)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.nodeSelector according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-9\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-9\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-9)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-9\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-9\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-9)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0113\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0113</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0114",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-10 • Profile B)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t10\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-10 • Profile B)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-10\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-10\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-10)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-10\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-10\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-10)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0114\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0114</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0115",
    "title": "Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-10 • Profile C)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 668 485\" width=\"668\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.6 335.02,366.78 335.02,370.88L335.02,376\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.02,286L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M560.42,295L560.42,355.5C560.42,359.7 335.02,366.68 335.02,370.88L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.02,95L335.02,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,192L331.66,184L338.38,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.94\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.02\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.02\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.82\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"560.42\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"560.42\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"243.87\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.02\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.02,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.02,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(560.42,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.02,51.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_no_host_port_t10\n\ndefault allow = false\n\n# Rule: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-10 • Profile C)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].ports[_].hostPort according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-10\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-10\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-10)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-10\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-10\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-10)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0115\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0115</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0116",
    "title": "Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-10 • Profile D)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Performance Efficiency",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 672 506\" width=\"672\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.52 339.44,387.85 339.44,391.88L339.44,397\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M339.44,307L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M564.84,316L564.84,376.5C564.84,380.7 339.44,387.68 339.44,391.88L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M339.44,116L339.44,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,213L336.08,205L342.8,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"274.37\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"339.44\" y=\"352.4\">Workload or routing</tspan><tspan x=\"339.44\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"468.24\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"564.84\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"564.84\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"248.3\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"339.44\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(339.44,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(339.44,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(564.84,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(339.44,62)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_node_affinity_t10\n\ndefault allow = false\n\n# Rule: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-10 • Profile D)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.nodeSelector according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-10\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-10\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-10)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-10\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-10\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-10)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0116\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0116</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0117",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-11 • Profile E)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t11\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-11 • Profile E)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-11\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-11\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-11)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-11\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-11\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-11)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0117\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0117</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0118",
    "title": "Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-11 • Profile F)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Reliability",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 668 485\" width=\"668\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.6 335.02,366.78 335.02,370.88L335.02,376\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.02,286L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M560.42,295L560.42,355.5C560.42,359.7 335.02,366.68 335.02,370.88L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.02,95L335.02,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,192L331.66,184L338.38,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.94\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.02\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.02\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.82\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"560.42\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"560.42\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"243.87\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.02\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.02,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.02,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(560.42,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.02,51.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_no_host_port_t11\n\ndefault allow = false\n\n# Rule: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-11 • Profile F)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].ports[_].hostPort according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-11\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-11\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-11)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-11\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-11\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-11)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0118\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0118</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0119",
    "title": "Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-11 • Profile G)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 672 506\" width=\"672\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.52 339.44,387.85 339.44,391.88L339.44,397\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M339.44,307L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M564.84,316L564.84,376.5C564.84,380.7 339.44,387.68 339.44,391.88L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M339.44,116L339.44,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,213L336.08,205L342.8,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"274.37\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"339.44\" y=\"352.4\">Workload or routing</tspan><tspan x=\"339.44\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"468.24\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"564.84\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"564.84\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"248.3\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"339.44\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(339.44,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(339.44,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(564.84,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(339.44,62)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_node_affinity_t11\n\ndefault allow = false\n\n# Rule: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-11 • Profile G)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.nodeSelector according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-11\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-11\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-11)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-11\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-11\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-11)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0119\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0119</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0120",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-12 • Profile H)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t12\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-12 • Profile H)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-12\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-12\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-12)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-12\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-12\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-12)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0120\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0120</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0121",
    "title": "Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-12 • Profile I)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Performance Efficiency",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 668 485\" width=\"668\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.6 335.02,366.78 335.02,370.88L335.02,376\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.02,286L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M560.42,295L560.42,355.5C560.42,359.7 335.02,366.68 335.02,370.88L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.02,95L335.02,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,192L331.66,184L338.38,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.94\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.02\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.02\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.82\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"560.42\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"560.42\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"243.87\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.02\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.02,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.02,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(560.42,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.02,51.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_no_host_port_t12\n\ndefault allow = false\n\n# Rule: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-12 • Profile I)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].ports[_].hostPort according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-12\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-12\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-12)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-12\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-12\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-12)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0121\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0121</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0122",
    "title": "Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-12 • Profile J)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 672 506\" width=\"672\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.52 339.44,387.85 339.44,391.88L339.44,397\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M339.44,307L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M564.84,316L564.84,376.5C564.84,380.7 339.44,387.68 339.44,391.88L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M339.44,116L339.44,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,213L336.08,205L342.8,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"274.37\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"339.44\" y=\"352.4\">Workload or routing</tspan><tspan x=\"339.44\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"468.24\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"564.84\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"564.84\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"248.3\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"339.44\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(339.44,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(339.44,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(564.84,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(339.44,62)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_node_affinity_t12\n\ndefault allow = false\n\n# Rule: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-12 • Profile J)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.nodeSelector according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-12\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-12\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-12)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-12\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-12\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-12)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0122\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0122</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0123",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-13 • Profile K)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t13\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-13 • Profile K)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-13\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-13\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-13)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-13\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-13\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-13)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0123\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0123</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0124",
    "title": "Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-13 • Profile L)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Operational Excellence",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 668 485\" width=\"668\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.6 335.02,366.78 335.02,370.88L335.02,376\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.02,286L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M560.42,295L560.42,355.5C560.42,359.7 335.02,366.68 335.02,370.88L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.02,95L335.02,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,192L331.66,184L338.38,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.94\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.02\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.02\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.82\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"560.42\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"560.42\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"243.87\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.02\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.02,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.02,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(560.42,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.02,51.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_no_host_port_t13\n\ndefault allow = false\n\n# Rule: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-13 • Profile L)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].ports[_].hostPort according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-13\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-13\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-13)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-13\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-13\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-13)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0124\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0124</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0125",
    "title": "Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-13 • Profile M)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Cost Optimization",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 672 506\" width=\"672\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.52 339.44,387.85 339.44,391.88L339.44,397\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M339.44,307L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M564.84,316L564.84,376.5C564.84,380.7 339.44,387.68 339.44,391.88L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M339.44,116L339.44,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,213L336.08,205L342.8,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"274.37\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"339.44\" y=\"352.4\">Workload or routing</tspan><tspan x=\"339.44\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"468.24\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"564.84\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"564.84\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"248.3\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"339.44\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(339.44,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(339.44,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(564.84,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(339.44,62)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_node_affinity_t13\n\ndefault allow = false\n\n# Rule: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-13 • Profile M)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.nodeSelector according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-13\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-13\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-13)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-13\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-13\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-13)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0125\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0125</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0126",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-14 • Profile N)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t14\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-14 • Profile N)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-14\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-14\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-14)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-14\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-14\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-14)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0126\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0126</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0127",
    "title": "Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-14 • Profile O)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Reliability",
    "severity": "Critical",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 668 485\" width=\"668\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.6 335.02,366.78 335.02,370.88L335.02,376\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M335.02,286L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M560.42,295L560.42,355.5C560.42,359.7 335.02,366.68 335.02,370.88L335.02,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,383L331.66,375L338.38,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M335.02,95L335.02,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M335.02,192L331.66,184L338.38,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"269.94\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"335.02\" y=\"331.4\">Workload or routing</tspan><tspan x=\"335.02\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.82\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"560.42\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"560.42\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"243.87\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"335.02\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(335.02,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(335.02,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(560.42,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(335.02,51.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_no_host_port_t14\n\ndefault allow = false\n\n# Rule: Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets (Tier-14 • Profile O)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.containers[_].ports[_].hostPort according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-14\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-14\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-14)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-14\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-14\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-14)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Limit Host Port Bindings and Deny Unbounded Port Ranges on DaemonSets\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0127\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-112.72\" y=\"-43.5\" width=\"225.44\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Limit Host Port Bindings</tspan><tspan x=\"0\" y=\"5.6\">and Deny Unbounded Port</tspan><tspan x=\"0\" y=\"26.6\">Ranges on DaemonSets</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0127</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0128",
    "title": "Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-14 • Profile P)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 672 506\" width=\"672\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.52 339.44,387.85 339.44,391.88L339.44,397\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M339.44,307L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M564.84,316L564.84,376.5C564.84,380.7 339.44,387.68 339.44,391.88L339.44,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,404L336.08,396L342.8,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M339.44,116L339.44,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M339.44,213L336.08,205L342.8,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"274.37\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"339.44\" y=\"352.4\">Workload or routing</tspan><tspan x=\"339.44\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"468.24\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"564.84\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"564.84\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"248.3\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"339.44\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(339.44,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(339.44,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(564.84,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(339.44,62)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_node_affinity_t14\n\ndefault allow = false\n\n# Rule: Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint (Tier-14 • Profile P)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.nodeSelector according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-14\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-14\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-14)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-14\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-14\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-14)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Enforce Explicit NodeSelector and Tolerations to Restrict Node Footprint\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0128\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-117.14\" y=\"-54\" width=\"234.29\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce Explicit</tspan><tspan x=\"0\" y=\"-4.9\">NodeSelector and</tspan><tspan x=\"0\" y=\"16.1\">Tolerations to Restrict Node</tspan><tspan x=\"0\" y=\"37.1\">Footprint</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0128</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0129",
    "title": "Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-15 • Profile Q)",
    "category": "k8s-daemonset",
    "category_name": "DaemonSets & Host Namespace Isolation",
    "service": "Kubernetes DaemonSet",
    "icon_url": "/images/k8s-icons/k8s-daemonset.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes DaemonSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 666 506\" width=\"666\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.63 333.21,387.74 333.21,391.88L333.21,397\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M333.21,307L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M558.61,316L558.61,376.5C558.61,380.7 333.21,387.68 333.21,391.88L333.21,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,404L329.85,396L336.57,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M333.21,116L333.21,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M333.21,213L329.85,205L336.57,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"268.13\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"333.21\" y=\"352.4\">Workload or routing</tspan><tspan x=\"333.21\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.01\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"558.61\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"558.61\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"242.07\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"333.21\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(333.21,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(333.21,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-2-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(558.61,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(333.21,62)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_daemonset.k8s_daemonset_daemonset_apparmor_enforced_t15\n\ndefault allow = false\n\n# Rule: Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults (Tier-15 • Profile Q)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"DaemonSet\"\n  obj := input.request.object\n  not obj.metadata\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define metadata.annotations.container.apparmor.security.beta.kubernetes.io according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-15\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-15\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-15)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n  name: \"k8s-daemonset-hardened-15\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-daemonset\"\n    security.kspm.io/tier: \"tier-15\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-15)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-daemonset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes DaemonSet\"]\n      requirement[\"Restrict Privileged DaemonSets and Enforce AppArmor Profile Runtime Defaults\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0129\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-daemonset\", label: \"Kubernetes DaemonSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1851\" width=\"590\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1318.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 224.98,1256.16 224.98,1266.41L224.98,1384.41\"/><path class=\"pele-marker\" d=\"M224.98,1391.41L221.62,1383.41L228.34,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 475.21,1256.16 475.21,1266.41L475.21,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1378.91L471.85,1370.91L478.57,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1478.41L224.98,1531.91\"/><path class=\"pele-marker\" d=\"M224.98,1538.91L221.62,1530.91L228.34,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1656.16L181.42,1749.39\"/><path class=\"pele-marker\" d=\"M181.42,1756.39L178.06,1748.39L184.78,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1665.05C254.33,1684.47 449.15,1684.47 449.15,1703.89L449.15,1749.39\"/><path class=\"pele-marker\" d=\"M449.15,1756.39L445.79,1748.39L452.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1490.91L475.21,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1756.39L471.85,1748.39L478.57,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes DaemonSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-110.91\" y=\"-54\" width=\"221.82\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Restrict Privileged</tspan><tspan x=\"0\" y=\"-4.9\">DaemonSets and Enforce</tspan><tspan x=\"0\" y=\"16.1\">AppArmor Profile Runtime</tspan><tspan x=\"0\" y=\"37.1\">Defaults</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0129</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-daemonset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-daemonset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes DaemonSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad\">\n      <stop stop-color=\"#4F46E5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#3730A3\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-daemonset-1-k8s-k8s-daemonset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a10 10 0 100 20 10 10 0 000-20zm0 3a7 7 0 110 14 7 7 0 010-14zm-1 3v4.59l3.7 2.13.75-1.3-3.2-1.84V8h-1.25z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes DaemonSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1434.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0130",
    "title": "Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.55 337.66,387.82 337.66,391.88L337.66,397\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.66,307L337.66,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.96,316L559.96,376.5C559.96,380.75 337.66,387.62 337.66,391.88L337.66,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.66,116L337.66,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,213L334.3,205L341.02,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.59\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.66\" y=\"352.4\">Workload or routing</tspan><tspan x=\"337.66\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.36\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.96\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.96\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.52\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.66\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.66,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.66,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.96,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.66,62)\"><rect x=\"-115.37\" y=\"-54\" width=\"230.74\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">VolumeClaimTemplates</tspan><tspan x=\"0\" y=\"16.1\">Encryption with Secure CSI</tspan><tspan x=\"0\" y=\"37.1\">StorageClasses</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_encrypted_storage_t1\n\ndefault allow = false\n\n# Rule: Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.volumeClaimTemplates[_].spec.storageClassName according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify key identity and permitted encrypt or decrypt operations",
        "Check service support, key location, key policy, and the service identity. Encryption at rest does not prevent an authorized data read.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0130\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify key identity and permitted encrypt or decrypt operations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1851\" width=\"594\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.56\" y=\"1318.91\" width=\"539.3\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 221.04,1256.16 221.04,1266.41L221.04,1384.41\"/><path class=\"pele-marker\" d=\"M221.04,1391.41L217.68,1383.41L224.4,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 479.15,1256.16 479.15,1266.41L479.15,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.15,1378.91L475.79,1370.91L482.51,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.04,1478.41L221.04,1531.91\"/><path class=\"pele-marker\" d=\"M221.04,1538.91L217.68,1530.91L224.4,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.48,1656.16L177.48,1749.39\"/><path class=\"pele-marker\" d=\"M177.48,1756.39L174.12,1748.39L180.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.4,1665.05C250.4,1684.47 453.09,1684.47 453.09,1703.89L453.09,1749.39\"/><path class=\"pele-marker\" d=\"M453.09,1756.39L449.73,1748.39L456.45,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.15,1490.91L479.15,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.15,1756.39L475.79,1748.39L482.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.18\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.18\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.28\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.04\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.92\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.15\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.4\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.48\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"437.03\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"453.09\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.18\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.15\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-115.37\" y=\"-54\" width=\"230.74\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">VolumeClaimTemplates</tspan><tspan x=\"0\" y=\"16.1\">Encryption with Secure CSI</tspan><tspan x=\"0\" y=\"37.1\">StorageClasses</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0130</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.04,1434.91)\"><rect x=\"-117.59\" y=\"-43.5\" width=\"235.18\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify key identity and</tspan><tspan x=\"0\" y=\"5.6\">permitted encrypt or decrypt</tspan><tspan x=\"0\" y=\"26.6\">operations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.15,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.04,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.48,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.12,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0131",
    "title": "Enforce Headless Service Binding and OrderedReady Pod Management Policy",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Headless Service Binding and OrderedReady Pod Management Policy.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Headless Service Binding and OrderedReady Pod Management Policy\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 485\" width=\"667\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.56 337.23,366.82 337.23,370.88L337.23,376\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.23,286L337.23,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.53,295L559.53,355.5C559.53,359.75 337.23,366.62 337.23,370.88L337.23,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.23,95L337.23,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,192L333.87,184L340.59,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.16\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.23\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.23\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.93\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.53\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"559.53\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.09\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.23\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.23,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.23,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.53,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.23,51.5)\"><rect x=\"-114.94\" y=\"-43.5\" width=\"229.87\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Headless Service</tspan><tspan x=\"0\" y=\"5.6\">Binding and OrderedReady</tspan><tspan x=\"0\" y=\"26.6\">Pod Management Policy</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_ordered_ready_t1\n\ndefault allow = false\n\n# Rule: Enforce Headless Service Binding and OrderedReady Pod Management Policy\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.podManagementPolicy according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Enforce Headless Service Binding and OrderedReady Pod Management Policy\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0131\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-114.94\" y=\"-43.5\" width=\"229.87\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Headless Service</tspan><tspan x=\"0\" y=\"5.6\">Binding and OrderedReady</tspan><tspan x=\"0\" y=\"26.6\">Pod Management Policy</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0131</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0132",
    "title": "Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Operational Excellence",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 658 506\" width=\"658\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.71 328.77,387.66 328.77,391.88L328.77,397\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M328.77,307L328.77,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M551.06,316L551.06,376.5C551.06,380.75 328.77,387.62 328.77,391.88L328.77,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M328.77,116L328.77,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,213L325.41,205L332.13,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"263.69\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"328.77\" y=\"352.4\">Workload or routing</tspan><tspan x=\"328.77\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"454.47\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"551.06\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"551.06\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"237.62\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"328.77\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(328.77,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(328.77,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(551.06,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(328.77,62)\"><rect x=\"-106.47\" y=\"-54\" width=\"212.94\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow HostPath and</tspan><tspan x=\"0\" y=\"-4.9\">Enforce Non-Root UID in</tspan><tspan x=\"0\" y=\"16.1\">StatefulSet Pod</tspan><tspan x=\"0\" y=\"37.1\">SecurityContext</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_run_as_non_root_t1\n\ndefault allow = false\n\n# Rule: Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.securityContext.runAsNonRoot according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-1\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-1\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-1)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0132\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1318.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.49,1256.16 222.49,1266.41L222.49,1384.41\"/><path class=\"pele-marker\" d=\"M222.49,1391.41L219.13,1383.41L225.85,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.71,1256.16 477.71,1266.41L477.71,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1378.91L474.35,1370.91L481.07,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1478.41L222.49,1531.91\"/><path class=\"pele-marker\" d=\"M222.49,1538.91L219.13,1530.91L225.85,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1656.16L178.92,1749.39\"/><path class=\"pele-marker\" d=\"M178.92,1756.39L175.56,1748.39L182.28,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1665.05C251.84,1684.47 451.64,1684.47 451.64,1703.89L451.64,1749.39\"/><path class=\"pele-marker\" d=\"M451.64,1756.39L448.28,1748.39L455,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1490.91L477.71,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1756.39L474.35,1748.39L481.07,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-106.47\" y=\"-54\" width=\"212.94\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow HostPath and</tspan><tspan x=\"0\" y=\"-4.9\">Enforce Non-Root UID in</tspan><tspan x=\"0\" y=\"16.1\">StatefulSet Pod</tspan><tspan x=\"0\" y=\"37.1\">SecurityContext</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0132</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1434.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0133",
    "title": "Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses (Tier-2 • Profile D)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Security",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.55 337.66,387.82 337.66,391.88L337.66,397\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.66,307L337.66,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.96,316L559.96,376.5C559.96,380.75 337.66,387.62 337.66,391.88L337.66,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.66,116L337.66,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,213L334.3,205L341.02,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.59\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.66\" y=\"352.4\">Workload or routing</tspan><tspan x=\"337.66\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.36\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.96\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.96\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.52\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.66\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.66,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.66,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.96,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.66,62)\"><rect x=\"-115.37\" y=\"-54\" width=\"230.74\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">VolumeClaimTemplates</tspan><tspan x=\"0\" y=\"16.1\">Encryption with Secure CSI</tspan><tspan x=\"0\" y=\"37.1\">StorageClasses</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_encrypted_storage_t2\n\ndefault allow = false\n\n# Rule: Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses (Tier-2 • Profile D)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.volumeClaimTemplates[_].spec.storageClassName according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify key identity and permitted encrypt or decrypt operations",
        "Check service support, key location, key policy, and the service identity. Encryption at rest does not prevent an authorized data read.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0133\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify key identity and permitted encrypt or decrypt operations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1851\" width=\"594\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.56\" y=\"1318.91\" width=\"539.3\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 221.04,1256.16 221.04,1266.41L221.04,1384.41\"/><path class=\"pele-marker\" d=\"M221.04,1391.41L217.68,1383.41L224.4,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 479.15,1256.16 479.15,1266.41L479.15,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.15,1378.91L475.79,1370.91L482.51,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.04,1478.41L221.04,1531.91\"/><path class=\"pele-marker\" d=\"M221.04,1538.91L217.68,1530.91L224.4,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.48,1656.16L177.48,1749.39\"/><path class=\"pele-marker\" d=\"M177.48,1756.39L174.12,1748.39L180.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.4,1665.05C250.4,1684.47 453.09,1684.47 453.09,1703.89L453.09,1749.39\"/><path class=\"pele-marker\" d=\"M453.09,1756.39L449.73,1748.39L456.45,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.15,1490.91L479.15,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.15,1756.39L475.79,1748.39L482.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.18\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.18\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.28\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.04\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.92\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.15\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.4\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.48\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"437.03\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"453.09\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.18\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.15\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-115.37\" y=\"-54\" width=\"230.74\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">VolumeClaimTemplates</tspan><tspan x=\"0\" y=\"16.1\">Encryption with Secure CSI</tspan><tspan x=\"0\" y=\"37.1\">StorageClasses</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0133</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.04,1434.91)\"><rect x=\"-117.59\" y=\"-43.5\" width=\"235.18\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify key identity and</tspan><tspan x=\"0\" y=\"5.6\">permitted encrypt or decrypt</tspan><tspan x=\"0\" y=\"26.6\">operations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.15,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.04,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.48,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.12,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0134",
    "title": "Enforce Headless Service Binding and OrderedReady Pod Management Policy (Tier-2 • Profile E)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Headless Service Binding and OrderedReady Pod Management Policy.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Headless Service Binding and OrderedReady Pod Management Policy\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 485\" width=\"667\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.56 337.23,366.82 337.23,370.88L337.23,376\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.23,286L337.23,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.53,295L559.53,355.5C559.53,359.75 337.23,366.62 337.23,370.88L337.23,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.23,95L337.23,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,192L333.87,184L340.59,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.16\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.23\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.23\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.93\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.53\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"559.53\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.09\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.23\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.23,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.23,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.53,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.23,51.5)\"><rect x=\"-114.94\" y=\"-43.5\" width=\"229.87\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Headless Service</tspan><tspan x=\"0\" y=\"5.6\">Binding and OrderedReady</tspan><tspan x=\"0\" y=\"26.6\">Pod Management Policy</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_ordered_ready_t2\n\ndefault allow = false\n\n# Rule: Enforce Headless Service Binding and OrderedReady Pod Management Policy (Tier-2 • Profile E)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.podManagementPolicy according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Enforce Headless Service Binding and OrderedReady Pod Management Policy\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0134\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-114.94\" y=\"-43.5\" width=\"229.87\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Headless Service</tspan><tspan x=\"0\" y=\"5.6\">Binding and OrderedReady</tspan><tspan x=\"0\" y=\"26.6\">Pod Management Policy</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0134</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0135",
    "title": "Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext (Tier-2 • Profile F)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 658 506\" width=\"658\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.71 328.77,387.66 328.77,391.88L328.77,397\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M328.77,307L328.77,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M551.06,316L551.06,376.5C551.06,380.75 328.77,387.62 328.77,391.88L328.77,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M328.77,116L328.77,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,213L325.41,205L332.13,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"263.69\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"328.77\" y=\"352.4\">Workload or routing</tspan><tspan x=\"328.77\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"454.47\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"551.06\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"551.06\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"237.62\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"328.77\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(328.77,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(328.77,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(551.06,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(328.77,62)\"><rect x=\"-106.47\" y=\"-54\" width=\"212.94\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow HostPath and</tspan><tspan x=\"0\" y=\"-4.9\">Enforce Non-Root UID in</tspan><tspan x=\"0\" y=\"16.1\">StatefulSet Pod</tspan><tspan x=\"0\" y=\"37.1\">SecurityContext</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_run_as_non_root_t2\n\ndefault allow = false\n\n# Rule: Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext (Tier-2 • Profile F)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.securityContext.runAsNonRoot according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-2\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-2\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-2)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0135\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1318.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.49,1256.16 222.49,1266.41L222.49,1384.41\"/><path class=\"pele-marker\" d=\"M222.49,1391.41L219.13,1383.41L225.85,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.71,1256.16 477.71,1266.41L477.71,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1378.91L474.35,1370.91L481.07,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1478.41L222.49,1531.91\"/><path class=\"pele-marker\" d=\"M222.49,1538.91L219.13,1530.91L225.85,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1656.16L178.92,1749.39\"/><path class=\"pele-marker\" d=\"M178.92,1756.39L175.56,1748.39L182.28,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1665.05C251.84,1684.47 451.64,1684.47 451.64,1703.89L451.64,1749.39\"/><path class=\"pele-marker\" d=\"M451.64,1756.39L448.28,1748.39L455,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1490.91L477.71,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1756.39L474.35,1748.39L481.07,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-106.47\" y=\"-54\" width=\"212.94\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow HostPath and</tspan><tspan x=\"0\" y=\"-4.9\">Enforce Non-Root UID in</tspan><tspan x=\"0\" y=\"16.1\">StatefulSet Pod</tspan><tspan x=\"0\" y=\"37.1\">SecurityContext</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0135</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1434.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0136",
    "title": "Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses (Tier-3 • Profile G)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.55 337.66,387.82 337.66,391.88L337.66,397\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.66,307L337.66,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.96,316L559.96,376.5C559.96,380.75 337.66,387.62 337.66,391.88L337.66,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.66,116L337.66,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,213L334.3,205L341.02,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.59\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.66\" y=\"352.4\">Workload or routing</tspan><tspan x=\"337.66\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.36\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.96\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.96\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.52\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.66\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.66,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.66,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.96,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.66,62)\"><rect x=\"-115.37\" y=\"-54\" width=\"230.74\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">VolumeClaimTemplates</tspan><tspan x=\"0\" y=\"16.1\">Encryption with Secure CSI</tspan><tspan x=\"0\" y=\"37.1\">StorageClasses</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_encrypted_storage_t3\n\ndefault allow = false\n\n# Rule: Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses (Tier-3 • Profile G)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.volumeClaimTemplates[_].spec.storageClassName according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify key identity and permitted encrypt or decrypt operations",
        "Check service support, key location, key policy, and the service identity. Encryption at rest does not prevent an authorized data read.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0136\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify key identity and permitted encrypt or decrypt operations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1851\" width=\"594\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.56\" y=\"1318.91\" width=\"539.3\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 221.04,1256.16 221.04,1266.41L221.04,1384.41\"/><path class=\"pele-marker\" d=\"M221.04,1391.41L217.68,1383.41L224.4,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 479.15,1256.16 479.15,1266.41L479.15,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.15,1378.91L475.79,1370.91L482.51,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.04,1478.41L221.04,1531.91\"/><path class=\"pele-marker\" d=\"M221.04,1538.91L217.68,1530.91L224.4,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.48,1656.16L177.48,1749.39\"/><path class=\"pele-marker\" d=\"M177.48,1756.39L174.12,1748.39L180.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.4,1665.05C250.4,1684.47 453.09,1684.47 453.09,1703.89L453.09,1749.39\"/><path class=\"pele-marker\" d=\"M453.09,1756.39L449.73,1748.39L456.45,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.15,1490.91L479.15,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.15,1756.39L475.79,1748.39L482.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.18\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.18\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.28\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.04\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.92\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.15\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.4\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.48\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"437.03\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"453.09\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.18\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.15\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-115.37\" y=\"-54\" width=\"230.74\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">VolumeClaimTemplates</tspan><tspan x=\"0\" y=\"16.1\">Encryption with Secure CSI</tspan><tspan x=\"0\" y=\"37.1\">StorageClasses</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0136</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.04,1434.91)\"><rect x=\"-117.59\" y=\"-43.5\" width=\"235.18\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify key identity and</tspan><tspan x=\"0\" y=\"5.6\">permitted encrypt or decrypt</tspan><tspan x=\"0\" y=\"26.6\">operations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.15,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.04,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.48,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.12,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0137",
    "title": "Enforce Headless Service Binding and OrderedReady Pod Management Policy (Tier-3 • Profile H)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Operational Excellence",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Headless Service Binding and OrderedReady Pod Management Policy.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Headless Service Binding and OrderedReady Pod Management Policy\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 485\" width=\"667\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.56 337.23,366.82 337.23,370.88L337.23,376\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.23,286L337.23,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.53,295L559.53,355.5C559.53,359.75 337.23,366.62 337.23,370.88L337.23,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.23,95L337.23,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,192L333.87,184L340.59,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.16\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.23\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.23\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.93\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.53\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"559.53\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.09\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.23\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.23,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.23,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.53,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.23,51.5)\"><rect x=\"-114.94\" y=\"-43.5\" width=\"229.87\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Headless Service</tspan><tspan x=\"0\" y=\"5.6\">Binding and OrderedReady</tspan><tspan x=\"0\" y=\"26.6\">Pod Management Policy</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_ordered_ready_t3\n\ndefault allow = false\n\n# Rule: Enforce Headless Service Binding and OrderedReady Pod Management Policy (Tier-3 • Profile H)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.podManagementPolicy according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Enforce Headless Service Binding and OrderedReady Pod Management Policy\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0137\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-114.94\" y=\"-43.5\" width=\"229.87\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Headless Service</tspan><tspan x=\"0\" y=\"5.6\">Binding and OrderedReady</tspan><tspan x=\"0\" y=\"26.6\">Pod Management Policy</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0137</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0138",
    "title": "Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext (Tier-3 • Profile I)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 658 506\" width=\"658\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.71 328.77,387.66 328.77,391.88L328.77,397\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M328.77,307L328.77,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M551.06,316L551.06,376.5C551.06,380.75 328.77,387.62 328.77,391.88L328.77,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M328.77,116L328.77,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,213L325.41,205L332.13,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"263.69\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"328.77\" y=\"352.4\">Workload or routing</tspan><tspan x=\"328.77\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"454.47\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"551.06\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"551.06\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"237.62\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"328.77\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(328.77,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(328.77,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(551.06,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(328.77,62)\"><rect x=\"-106.47\" y=\"-54\" width=\"212.94\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow HostPath and</tspan><tspan x=\"0\" y=\"-4.9\">Enforce Non-Root UID in</tspan><tspan x=\"0\" y=\"16.1\">StatefulSet Pod</tspan><tspan x=\"0\" y=\"37.1\">SecurityContext</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_run_as_non_root_t3\n\ndefault allow = false\n\n# Rule: Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext (Tier-3 • Profile I)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.securityContext.runAsNonRoot according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-3\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-3\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-3)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0138\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1318.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.49,1256.16 222.49,1266.41L222.49,1384.41\"/><path class=\"pele-marker\" d=\"M222.49,1391.41L219.13,1383.41L225.85,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.71,1256.16 477.71,1266.41L477.71,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1378.91L474.35,1370.91L481.07,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1478.41L222.49,1531.91\"/><path class=\"pele-marker\" d=\"M222.49,1538.91L219.13,1530.91L225.85,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1656.16L178.92,1749.39\"/><path class=\"pele-marker\" d=\"M178.92,1756.39L175.56,1748.39L182.28,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1665.05C251.84,1684.47 451.64,1684.47 451.64,1703.89L451.64,1749.39\"/><path class=\"pele-marker\" d=\"M451.64,1756.39L448.28,1748.39L455,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1490.91L477.71,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1756.39L474.35,1748.39L481.07,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-106.47\" y=\"-54\" width=\"212.94\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow HostPath and</tspan><tspan x=\"0\" y=\"-4.9\">Enforce Non-Root UID in</tspan><tspan x=\"0\" y=\"16.1\">StatefulSet Pod</tspan><tspan x=\"0\" y=\"37.1\">SecurityContext</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0138</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1434.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0139",
    "title": "Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses (Tier-4 • Profile J)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.55 337.66,387.82 337.66,391.88L337.66,397\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.66,307L337.66,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.96,316L559.96,376.5C559.96,380.75 337.66,387.62 337.66,391.88L337.66,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.66,116L337.66,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,213L334.3,205L341.02,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.59\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.66\" y=\"352.4\">Workload or routing</tspan><tspan x=\"337.66\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.36\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.96\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.96\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.52\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.66\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.66,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.66,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.96,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.66,62)\"><rect x=\"-115.37\" y=\"-54\" width=\"230.74\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">VolumeClaimTemplates</tspan><tspan x=\"0\" y=\"16.1\">Encryption with Secure CSI</tspan><tspan x=\"0\" y=\"37.1\">StorageClasses</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_encrypted_storage_t4\n\ndefault allow = false\n\n# Rule: Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses (Tier-4 • Profile J)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.volumeClaimTemplates[_].spec.storageClassName according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify key identity and permitted encrypt or decrypt operations",
        "Check service support, key location, key policy, and the service identity. Encryption at rest does not prevent an authorized data read.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0139\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify key identity and permitted encrypt or decrypt operations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1851\" width=\"594\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.56\" y=\"1318.91\" width=\"539.3\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 221.04,1256.16 221.04,1266.41L221.04,1384.41\"/><path class=\"pele-marker\" d=\"M221.04,1391.41L217.68,1383.41L224.4,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 479.15,1256.16 479.15,1266.41L479.15,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.15,1378.91L475.79,1370.91L482.51,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.04,1478.41L221.04,1531.91\"/><path class=\"pele-marker\" d=\"M221.04,1538.91L217.68,1530.91L224.4,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.48,1656.16L177.48,1749.39\"/><path class=\"pele-marker\" d=\"M177.48,1756.39L174.12,1748.39L180.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.4,1665.05C250.4,1684.47 453.09,1684.47 453.09,1703.89L453.09,1749.39\"/><path class=\"pele-marker\" d=\"M453.09,1756.39L449.73,1748.39L456.45,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.15,1490.91L479.15,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.15,1756.39L475.79,1748.39L482.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.18\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.18\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.28\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.04\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.92\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.15\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.4\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.48\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"437.03\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"453.09\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.18\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.15\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-115.37\" y=\"-54\" width=\"230.74\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">VolumeClaimTemplates</tspan><tspan x=\"0\" y=\"16.1\">Encryption with Secure CSI</tspan><tspan x=\"0\" y=\"37.1\">StorageClasses</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0139</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.04,1434.91)\"><rect x=\"-117.59\" y=\"-43.5\" width=\"235.18\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify key identity and</tspan><tspan x=\"0\" y=\"5.6\">permitted encrypt or decrypt</tspan><tspan x=\"0\" y=\"26.6\">operations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.15,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.04,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.48,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.12,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0140",
    "title": "Enforce Headless Service Binding and OrderedReady Pod Management Policy (Tier-4 • Profile K)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Headless Service Binding and OrderedReady Pod Management Policy.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Headless Service Binding and OrderedReady Pod Management Policy\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 485\" width=\"667\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.56 337.23,366.82 337.23,370.88L337.23,376\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.23,286L337.23,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.53,295L559.53,355.5C559.53,359.75 337.23,366.62 337.23,370.88L337.23,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.23,95L337.23,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,192L333.87,184L340.59,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.16\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.23\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.23\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.93\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.53\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"559.53\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.09\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.23\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.23,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.23,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.53,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.23,51.5)\"><rect x=\"-114.94\" y=\"-43.5\" width=\"229.87\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Headless Service</tspan><tspan x=\"0\" y=\"5.6\">Binding and OrderedReady</tspan><tspan x=\"0\" y=\"26.6\">Pod Management Policy</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_ordered_ready_t4\n\ndefault allow = false\n\n# Rule: Enforce Headless Service Binding and OrderedReady Pod Management Policy (Tier-4 • Profile K)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.podManagementPolicy according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Enforce Headless Service Binding and OrderedReady Pod Management Policy\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0140\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-114.94\" y=\"-43.5\" width=\"229.87\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Headless Service</tspan><tspan x=\"0\" y=\"5.6\">Binding and OrderedReady</tspan><tspan x=\"0\" y=\"26.6\">Pod Management Policy</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0140</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0141",
    "title": "Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext (Tier-4 • Profile L)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Reliability",
    "severity": "Low",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 658 506\" width=\"658\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.71 328.77,387.66 328.77,391.88L328.77,397\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M328.77,307L328.77,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M551.06,316L551.06,376.5C551.06,380.75 328.77,387.62 328.77,391.88L328.77,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M328.77,116L328.77,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,213L325.41,205L332.13,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"263.69\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"328.77\" y=\"352.4\">Workload or routing</tspan><tspan x=\"328.77\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"454.47\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"551.06\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"551.06\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"237.62\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"328.77\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(328.77,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(328.77,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(551.06,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(328.77,62)\"><rect x=\"-106.47\" y=\"-54\" width=\"212.94\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow HostPath and</tspan><tspan x=\"0\" y=\"-4.9\">Enforce Non-Root UID in</tspan><tspan x=\"0\" y=\"16.1\">StatefulSet Pod</tspan><tspan x=\"0\" y=\"37.1\">SecurityContext</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_run_as_non_root_t4\n\ndefault allow = false\n\n# Rule: Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext (Tier-4 • Profile L)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.securityContext.runAsNonRoot according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-4\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-4\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-4)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0141\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1318.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.49,1256.16 222.49,1266.41L222.49,1384.41\"/><path class=\"pele-marker\" d=\"M222.49,1391.41L219.13,1383.41L225.85,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.71,1256.16 477.71,1266.41L477.71,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1378.91L474.35,1370.91L481.07,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1478.41L222.49,1531.91\"/><path class=\"pele-marker\" d=\"M222.49,1538.91L219.13,1530.91L225.85,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1656.16L178.92,1749.39\"/><path class=\"pele-marker\" d=\"M178.92,1756.39L175.56,1748.39L182.28,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1665.05C251.84,1684.47 451.64,1684.47 451.64,1703.89L451.64,1749.39\"/><path class=\"pele-marker\" d=\"M451.64,1756.39L448.28,1748.39L455,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1490.91L477.71,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1756.39L474.35,1748.39L481.07,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-106.47\" y=\"-54\" width=\"212.94\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow HostPath and</tspan><tspan x=\"0\" y=\"-4.9\">Enforce Non-Root UID in</tspan><tspan x=\"0\" y=\"16.1\">StatefulSet Pod</tspan><tspan x=\"0\" y=\"37.1\">SecurityContext</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0141</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1434.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0142",
    "title": "Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses (Tier-5 • Profile M)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.55 337.66,387.82 337.66,391.88L337.66,397\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.66,307L337.66,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.96,316L559.96,376.5C559.96,380.75 337.66,387.62 337.66,391.88L337.66,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.66,116L337.66,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,213L334.3,205L341.02,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.59\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.66\" y=\"352.4\">Workload or routing</tspan><tspan x=\"337.66\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.36\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.96\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.96\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.52\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.66\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.66,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.66,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.96,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.66,62)\"><rect x=\"-115.37\" y=\"-54\" width=\"230.74\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">VolumeClaimTemplates</tspan><tspan x=\"0\" y=\"16.1\">Encryption with Secure CSI</tspan><tspan x=\"0\" y=\"37.1\">StorageClasses</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_encrypted_storage_t5\n\ndefault allow = false\n\n# Rule: Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses (Tier-5 • Profile M)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.volumeClaimTemplates[_].spec.storageClassName according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify key identity and permitted encrypt or decrypt operations",
        "Check service support, key location, key policy, and the service identity. Encryption at rest does not prevent an authorized data read.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0142\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify key identity and permitted encrypt or decrypt operations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1851\" width=\"594\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.56\" y=\"1318.91\" width=\"539.3\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 221.04,1256.16 221.04,1266.41L221.04,1384.41\"/><path class=\"pele-marker\" d=\"M221.04,1391.41L217.68,1383.41L224.4,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 479.15,1256.16 479.15,1266.41L479.15,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.15,1378.91L475.79,1370.91L482.51,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.04,1478.41L221.04,1531.91\"/><path class=\"pele-marker\" d=\"M221.04,1538.91L217.68,1530.91L224.4,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.48,1656.16L177.48,1749.39\"/><path class=\"pele-marker\" d=\"M177.48,1756.39L174.12,1748.39L180.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.4,1665.05C250.4,1684.47 453.09,1684.47 453.09,1703.89L453.09,1749.39\"/><path class=\"pele-marker\" d=\"M453.09,1756.39L449.73,1748.39L456.45,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.15,1490.91L479.15,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.15,1756.39L475.79,1748.39L482.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.18\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.18\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.28\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.04\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.92\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.15\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.4\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.48\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"437.03\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"453.09\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.18\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.15\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-115.37\" y=\"-54\" width=\"230.74\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">VolumeClaimTemplates</tspan><tspan x=\"0\" y=\"16.1\">Encryption with Secure CSI</tspan><tspan x=\"0\" y=\"37.1\">StorageClasses</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0142</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.04,1434.91)\"><rect x=\"-117.59\" y=\"-43.5\" width=\"235.18\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify key identity and</tspan><tspan x=\"0\" y=\"5.6\">permitted encrypt or decrypt</tspan><tspan x=\"0\" y=\"26.6\">operations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.15,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.04,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.48,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.12,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0143",
    "title": "Enforce Headless Service Binding and OrderedReady Pod Management Policy (Tier-5 • Profile N)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Cost Optimization",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Headless Service Binding and OrderedReady Pod Management Policy.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Headless Service Binding and OrderedReady Pod Management Policy\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 485\" width=\"667\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.56 337.23,366.82 337.23,370.88L337.23,376\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.23,286L337.23,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.53,295L559.53,355.5C559.53,359.75 337.23,366.62 337.23,370.88L337.23,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.23,95L337.23,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,192L333.87,184L340.59,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.16\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.23\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.23\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.93\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.53\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"559.53\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.09\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.23\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.23,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.23,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.53,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.23,51.5)\"><rect x=\"-114.94\" y=\"-43.5\" width=\"229.87\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Headless Service</tspan><tspan x=\"0\" y=\"5.6\">Binding and OrderedReady</tspan><tspan x=\"0\" y=\"26.6\">Pod Management Policy</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_ordered_ready_t5\n\ndefault allow = false\n\n# Rule: Enforce Headless Service Binding and OrderedReady Pod Management Policy (Tier-5 • Profile N)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.podManagementPolicy according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"cost-optimization\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Enforce Headless Service Binding and OrderedReady Pod Management Policy\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0143\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-114.94\" y=\"-43.5\" width=\"229.87\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Headless Service</tspan><tspan x=\"0\" y=\"5.6\">Binding and OrderedReady</tspan><tspan x=\"0\" y=\"26.6\">Pod Management Policy</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0143</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0144",
    "title": "Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext (Tier-5 • Profile O)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Performance Efficiency",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 658 506\" width=\"658\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.71 328.77,387.66 328.77,391.88L328.77,397\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M328.77,307L328.77,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M551.06,316L551.06,376.5C551.06,380.75 328.77,387.62 328.77,391.88L328.77,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M328.77,116L328.77,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,213L325.41,205L332.13,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"263.69\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"328.77\" y=\"352.4\">Workload or routing</tspan><tspan x=\"328.77\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"454.47\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"551.06\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"551.06\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"237.62\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"328.77\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(328.77,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(328.77,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(551.06,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(328.77,62)\"><rect x=\"-106.47\" y=\"-54\" width=\"212.94\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow HostPath and</tspan><tspan x=\"0\" y=\"-4.9\">Enforce Non-Root UID in</tspan><tspan x=\"0\" y=\"16.1\">StatefulSet Pod</tspan><tspan x=\"0\" y=\"37.1\">SecurityContext</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_run_as_non_root_t5\n\ndefault allow = false\n\n# Rule: Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext (Tier-5 • Profile O)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.securityContext.runAsNonRoot according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-5\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-5\"\n    security.kspm.io/pillar: \"performance-efficiency\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-5)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0144\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1318.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.49,1256.16 222.49,1266.41L222.49,1384.41\"/><path class=\"pele-marker\" d=\"M222.49,1391.41L219.13,1383.41L225.85,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.71,1256.16 477.71,1266.41L477.71,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1378.91L474.35,1370.91L481.07,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1478.41L222.49,1531.91\"/><path class=\"pele-marker\" d=\"M222.49,1538.91L219.13,1530.91L225.85,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1656.16L178.92,1749.39\"/><path class=\"pele-marker\" d=\"M178.92,1756.39L175.56,1748.39L182.28,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1665.05C251.84,1684.47 451.64,1684.47 451.64,1703.89L451.64,1749.39\"/><path class=\"pele-marker\" d=\"M451.64,1756.39L448.28,1748.39L455,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1490.91L477.71,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1756.39L474.35,1748.39L481.07,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-106.47\" y=\"-54\" width=\"212.94\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow HostPath and</tspan><tspan x=\"0\" y=\"-4.9\">Enforce Non-Root UID in</tspan><tspan x=\"0\" y=\"16.1\">StatefulSet Pod</tspan><tspan x=\"0\" y=\"37.1\">SecurityContext</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0144</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1434.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0145",
    "title": "Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses (Tier-6 • Profile P)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Security",
    "severity": "Critical",
    "compliance": [
      "CIS K8s 1.2.1",
      "SOC 2 Type II CC6.8",
      "MITRE ATT&CK Containers T1611",
      "HITRUST CSF v9.4"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.55 337.66,387.82 337.66,391.88L337.66,397\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.66,307L337.66,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.96,316L559.96,376.5C559.96,380.75 337.66,387.62 337.66,391.88L337.66,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.66,116L337.66,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,213L334.3,205L341.02,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.59\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.66\" y=\"352.4\">Workload or routing</tspan><tspan x=\"337.66\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.36\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.96\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.96\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.52\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.66\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.66,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.66,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.96,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.66,62)\"><rect x=\"-115.37\" y=\"-54\" width=\"230.74\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">VolumeClaimTemplates</tspan><tspan x=\"0\" y=\"16.1\">Encryption with Secure CSI</tspan><tspan x=\"0\" y=\"37.1\">StorageClasses</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_encrypted_storage_t6\n\ndefault allow = false\n\n# Rule: Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses (Tier-6 • Profile P)\n# Compliance: CIS K8s 1.2.1, SOC 2 Type II CC6.8, MITRE ATT&CK Containers T1611, HITRUST CSF v9.4\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.volumeClaimTemplates[_].spec.storageClassName according to CIS K8s 1.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify key identity and permitted encrypt or decrypt operations",
        "Check service support, key location, key policy, and the service identity. Encryption at rest does not prevent an authorized data read.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0145\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Verify key identity and permitted encrypt or decrypt operations\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 594 1851\" width=\"594\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"46.56\" y=\"1318.91\" width=\"539.3\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 221.04,1256.16 221.04,1266.41L221.04,1384.41\"/><path class=\"pele-marker\" d=\"M221.04,1391.41L217.68,1383.41L224.4,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 479.15,1256.16 479.15,1266.41L479.15,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.15,1378.91L475.79,1370.91L482.51,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M221.04,1478.41L221.04,1531.91\"/><path class=\"pele-marker\" d=\"M221.04,1538.91L217.68,1530.91L224.4,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M177.48,1656.16L177.48,1749.39\"/><path class=\"pele-marker\" d=\"M177.48,1756.39L174.12,1748.39L180.84,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M250.4,1665.05C250.4,1684.47 453.09,1684.47 453.09,1703.89L453.09,1749.39\"/><path class=\"pele-marker\" d=\"M453.09,1756.39L449.73,1748.39L456.45,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M479.15,1490.91L479.15,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M479.15,1756.39L475.79,1748.39L482.51,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"188.18\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"188.18\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"130.28\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"221.04\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"375.92\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.15\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"126.4\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"177.48\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"437.03\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"453.09\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"396.18\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"479.15\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-115.37\" y=\"-54\" width=\"230.74\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">VolumeClaimTemplates</tspan><tspan x=\"0\" y=\"16.1\">Encryption with Secure CSI</tspan><tspan x=\"0\" y=\"37.1\">StorageClasses</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0145</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(221.04,1434.91)\"><rect x=\"-117.59\" y=\"-43.5\" width=\"235.18\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Verify key identity and</tspan><tspan x=\"0\" y=\"5.6\">permitted encrypt or decrypt</tspan><tspan x=\"0\" y=\"26.6\">operations</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(479.15,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(221.04,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(177.48,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(462.12,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0146",
    "title": "Enforce Headless Service Binding and OrderedReady Pod Management Policy (Tier-6 • Profile Q)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Reliability",
    "severity": "High",
    "compliance": [
      "CIS Kubernetes Benchmark v1.8",
      "NSA/CISA Kubernetes Hardening Guide",
      "PCI-DSS v4.0 Req 6.4",
      "SOC 2 CC6.6"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce Headless Service Binding and OrderedReady Pod Management Policy.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce Headless Service Binding and OrderedReady Pod Management Policy\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 485\" width=\"667\" height=\"485\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,95L104.27,176\"/><path class=\"pele-marker\" d=\"M104.27,183L100.91,175L107.63,175Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,295L104.27,355.5C104.27,359.56 337.23,366.82 337.23,370.88L337.23,376\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.23,286L337.23,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.53,295L559.53,355.5C559.53,359.75 337.23,366.62 337.23,370.88L337.23,376\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,383L333.87,375L340.59,375Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.23,95L337.23,185\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.23,192L333.87,184L340.59,184Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"117.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"131.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"149.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"325\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"340.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.16\" y=\"317.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.23\" y=\"331.4\">Workload or routing</tspan><tspan x=\"337.23\" y=\"349.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"462.93\" y=\"317.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.53\" y=\"331.4\">Image pull by node or runtime</tspan><tspan x=\"559.53\" y=\"349.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.09\" y=\"125\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.23\" y=\"140.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,71)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.23,430)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.23,239)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.53,239)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.23,51.5)\"><rect x=\"-114.94\" y=\"-43.5\" width=\"229.87\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Headless Service</tspan><tspan x=\"0\" y=\"5.6\">Binding and OrderedReady</tspan><tspan x=\"0\" y=\"26.6\">Pod Management Policy</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_ordered_ready_t6\n\ndefault allow = false\n\n# Rule: Enforce Headless Service Binding and OrderedReady Pod Management Policy (Tier-6 • Profile Q)\n# Compliance: CIS Kubernetes Benchmark v1.8, NSA/CISA Kubernetes Hardening Guide, PCI-DSS v4.0 Req 6.4, SOC 2 CC6.6\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.podManagementPolicy according to CIS Kubernetes Benchmark v1.8\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"reliability\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Read back the effective setting and exercise its rejection path",
        "Verify resource scope, service support, and the actual policy effect before deployment.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Enforce Headless Service Binding and OrderedReady Pod Management Policy\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0146\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Read back the effective setting and exercise its rejection path\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 590 1830\" width=\"590\" height=\"1830\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"50.5\" y=\"1297.91\" width=\"531.43\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1030.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"522\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"466\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,434L240.96,575\"/><path class=\"pele-marker\" d=\"M240.96,582L237.6,574L244.32,574Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,721.74C202.28,744.07 131.82,744.07 131.82,766.41L131.82,811.91\"/><path class=\"pele-marker\" d=\"M131.82,818.91L128.46,810.91L135.18,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,721.74C279.63,744.07 350.1,744.07 350.1,766.41L350.1,811.91\"/><path class=\"pele-marker\" d=\"M350.1,818.91L346.74,810.91L353.46,810.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,884.91L350.1,1083.91\"/><path class=\"pele-marker\" d=\"M350.1,1090.91L346.74,1082.91L353.46,1082.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1184.91C350.1,1194.91 342.1,1194.91 342.1,1204.91L342.1,1224.91C342.1,1235.16 224.98,1235.16 224.98,1245.41L224.98,1363.41\"/><path class=\"pele-marker\" d=\"M224.98,1370.41L221.62,1362.41L228.34,1362.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1184.91C350.1,1194.91 358.1,1194.91 358.1,1204.91L358.1,1224.91C358.1,1235.16 475.21,1235.16 475.21,1245.41L475.21,1350.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1357.91L471.85,1349.91L478.57,1349.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M224.98,1457.41L224.98,1510.91\"/><path class=\"pele-marker\" d=\"M224.98,1517.91L221.62,1509.91L228.34,1509.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M181.42,1635.16L181.42,1728.39\"/><path class=\"pele-marker\" d=\"M181.42,1735.39L178.06,1727.39L184.78,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M254.33,1644.05C254.33,1663.47 449.15,1663.47 449.15,1682.89L449.15,1728.39\"/><path class=\"pele-marker\" d=\"M449.15,1735.39L445.79,1727.39L452.51,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M475.21,1469.91L475.21,1728.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M475.21,1735.39L471.85,1727.39L478.57,1727.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"192.12\" y=\"1323.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1056.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"547.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"768.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"783.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"768.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"783.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"947.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"961.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"979.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"997.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"134.22\" y=\"1247.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"224.98\" y=\"1262.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"371.98\" y=\"1247.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1262.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"130.34\" y=\"1684.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"181.42\" y=\"1700.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"433.09\" y=\"1684.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"449.15\" y=\"1700.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"392.24\" y=\"1579.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"475.21\" y=\"1595.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,390.5)\"><rect x=\"-114.94\" y=\"-43.5\" width=\"229.87\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Enforce Headless Service</tspan><tspan x=\"0\" y=\"5.6\">Binding and OrderedReady</tspan><tspan x=\"0\" y=\"26.6\">Pod Management Policy</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,663.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,851.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,851.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0146</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1137.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(224.98,1413.91)\"><rect x=\"-101.6\" y=\"-43.5\" width=\"203.2\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Read back the effective</tspan><tspan x=\"0\" y=\"5.6\">setting and exercise its</tspan><tspan x=\"0\" y=\"26.6\">rejection path</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(475.21,1413.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(224.98,1590.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(181.42,1768.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(458.18,1768.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0147",
    "title": "Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext (Tier-6 • Profile R)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Operational Excellence",
    "severity": "High",
    "compliance": [
      "CIS K8s 5.2.1",
      "NIST SP 800-190",
      "HIPAA 164.312(a)(2)(iv)",
      "FedRAMP High"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 658 506\" width=\"658\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.71 328.77,387.66 328.77,391.88L328.77,397\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M328.77,307L328.77,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M551.06,316L551.06,376.5C551.06,380.75 328.77,387.62 328.77,391.88L328.77,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,404L325.41,396L332.13,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M328.77,116L328.77,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M328.77,213L325.41,205L332.13,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"263.69\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"328.77\" y=\"352.4\">Workload or routing</tspan><tspan x=\"328.77\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"454.47\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"551.06\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"551.06\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"237.62\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"328.77\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(328.77,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(328.77,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(551.06,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(328.77,62)\"><rect x=\"-106.47\" y=\"-54\" width=\"212.94\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow HostPath and</tspan><tspan x=\"0\" y=\"-4.9\">Enforce Non-Root UID in</tspan><tspan x=\"0\" y=\"16.1\">StatefulSet Pod</tspan><tspan x=\"0\" y=\"37.1\">SecurityContext</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_run_as_non_root_t6\n\ndefault allow = false\n\n# Rule: Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext (Tier-6 • Profile R)\n# Compliance: CIS K8s 5.2.1, NIST SP 800-190, HIPAA 164.312(a)(2)(iv), FedRAMP High\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.template.spec.securityContext.runAsNonRoot according to CIS K8s 5.2.1\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-6\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-6\"\n    security.kspm.io/pillar: \"operational-excellence\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-6)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Test the intended principal and a principal outside the allowed scope",
        "Evaluate effective permissions, inherited grants, explicit denies, and credential lifetime. A policy attachment alone does not establish least privilege.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Disallow HostPath and Enforce Non-Root UID in StatefulSet Pod SecurityContext\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"Revise configuration; no change applied\"]\n      review[\"Owner review: KSPM-BP-0147\"]\n      requirement --> check\n      check -->|No or unknown| reject\n      check -->|Yes| review\n    end\n    subgraph target[\"Kubernetes: resource administration\"]\n      resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n      review -->|API authentication, authorization, then applicable admission| resource\n    end\n    subgraph verification[\"Readback and operational evidence\"]\n      verify[\"Test the intended principal and a principal outside the allowed scope\"]\n      evidence@{ icon: \"logos:k8s-apiserver\", label: \"API readback and configured audit events\", h: 64, pos: \"b\" }\n      outcome{\"Observed behavior matches control?\"}\n      followup[\"Investigate drift or missing enforcement\"]\n      accepted[\"Record resource scope, result, and evidence\"]\n      resource -->|Read effective configuration| verify\n      resource -.->|Separate audit or evidence path| evidence\n      verify --> outcome\n      outcome -->|No or unknown| followup\n      outcome -->|Yes| accepted\n      evidence -.->|Correlate with test results| accepted\n    end",
    "deployment_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 593 1851\" width=\"593\" height=\"1851\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-clusters\"><g class=\"pele-cluster\" data-id=\"verification\"><rect x=\"48\" y=\"1318.91\" width=\"536.42\" height=\"523.48\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"target\"><rect x=\"207.6\" y=\"1051.91\" width=\"284.99\" height=\"194\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"validation\"><rect x=\"8\" y=\"543\" width=\"436.56\" height=\"402.91\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/></g><g class=\"pele-cluster\" data-id=\"proposal\"><rect x=\"93.55\" y=\"8\" width=\"294.82\" height=\"487\" fill=\"var(--_a)\" fill-opacity=\"0.5\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"240.96\" y=\"33.6\" text-anchor=\"middle\">Kubernetes: proposed control change</text></g></g><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_change_requirement_0\"><path d=\"M240.96,299L240.96,340\"/><path class=\"pele-marker\" d=\"M240.96,347L237.6,339L244.32,339Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_identity_change_0\"><path d=\"M240.96,160L240.96,226\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M240.96,233L237.6,225L244.32,225Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_requirement_check_0\"><path d=\"M240.96,455L240.96,596\"/><path class=\"pele-marker\" d=\"M240.96,603L237.6,595L244.32,595Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_reject_0\"><path d=\"M202.28,742.74C202.28,765.07 131.82,765.07 131.82,787.41L131.82,832.91\"/><path class=\"pele-marker\" d=\"M131.82,839.91L128.46,831.91L135.18,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_check_review_0\"><path d=\"M279.63,742.74C279.63,765.07 350.1,765.07 350.1,787.41L350.1,832.91\"/><path class=\"pele-marker\" d=\"M350.1,839.91L346.74,831.91L353.46,831.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_review_resource_0\"><path d=\"M350.1,905.91L350.1,1104.91\"/><path class=\"pele-marker\" d=\"M350.1,1111.91L346.74,1103.91L353.46,1103.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_verify_0\"><path d=\"M350.1,1205.91C350.1,1215.91 342.1,1215.91 342.1,1225.91L342.1,1245.91C342.1,1256.16 222.49,1256.16 222.49,1266.41L222.49,1384.41\"/><path class=\"pele-marker\" d=\"M222.49,1391.41L219.13,1383.41L225.85,1383.41Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_evidence_0\"><path d=\"M350.1,1205.91C350.1,1215.91 358.1,1215.91 358.1,1225.91L358.1,1245.91C358.1,1256.16 477.71,1256.16 477.71,1266.41L477.71,1371.91\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1378.91L474.35,1370.91L481.07,1370.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_verify_outcome_0\"><path d=\"M222.49,1478.41L222.49,1531.91\"/><path class=\"pele-marker\" d=\"M222.49,1538.91L219.13,1530.91L225.85,1530.91Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_followup_0\"><path d=\"M178.92,1656.16L178.92,1749.39\"/><path class=\"pele-marker\" d=\"M178.92,1756.39L175.56,1748.39L182.28,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_outcome_accepted_0\"><path d=\"M251.84,1665.05C251.84,1684.47 451.64,1684.47 451.64,1703.89L451.64,1749.39\"/><path class=\"pele-marker\" d=\"M451.64,1756.39L448.28,1748.39L455,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_evidence_accepted_0\"><path d=\"M477.71,1490.91L477.71,1749.39\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M477.71,1756.39L474.35,1748.39L481.07,1748.39Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-cluster-titles\"><g class=\"pele-cluster-title\" data-id=\"verification\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"189.62\" y=\"1344.51\" text-anchor=\"middle\">Readback and operational evidence</text></g><g class=\"pele-cluster-title\" data-id=\"target\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"350.1\" y=\"1077.51\" text-anchor=\"middle\">Kubernetes: resource administration</text></g><g class=\"pele-cluster-title\" data-id=\"validation\"><text fill=\"none\" stroke=\"color-mix(in srgb,var(--_a) 50%,var(--_bg))\" stroke-width=\"5\" stroke-linejoin=\"round\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text><text class=\"pele-cluster-label\" fill=\"var(--_m)\" x=\"157.61\" y=\"568.6\" text-anchor=\"middle\">Review and pre-deployment validation</text></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_identity_change_0\"><rect x=\"169.27\" y=\"182.5\" width=\"143.37\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"240.96\" y=\"197.9\" text-anchor=\"middle\">Required permissions</text></g><g class=\"pele-edge-label\" data-id=\"L_check_reject_0\"><rect x=\"80.74\" y=\"789.41\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"131.82\" y=\"804.81\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_check_review_0\"><rect x=\"334.04\" y=\"789.41\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"350.1\" y=\"804.81\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_review_resource_0\"><rect x=\"255.05\" y=\"968.41\" width=\"190.1\" height=\"54\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"350.1\" y=\"982.31\">API authentication,</tspan><tspan x=\"350.1\" y=\"1000.31\">authorization, then applicable</tspan><tspan x=\"350.1\" y=\"1018.31\">admission</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_resource_verify_0\"><rect x=\"131.72\" y=\"1268.41\" width=\"181.53\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"222.49\" y=\"1283.81\" text-anchor=\"middle\">Read effective configuration</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_evidence_0\"><rect x=\"374.48\" y=\"1268.41\" width=\"206.45\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1283.81\" text-anchor=\"middle\">Separate audit or evidence path</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_followup_0\"><rect x=\"127.84\" y=\"1705.89\" width=\"102.15\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"178.92\" y=\"1721.29\" text-anchor=\"middle\">No or unknown</text></g><g class=\"pele-edge-label\" data-id=\"L_outcome_accepted_0\"><rect x=\"435.58\" y=\"1705.89\" width=\"32.12\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"451.64\" y=\"1721.29\" text-anchor=\"middle\">Yes</text></g><g class=\"pele-edge-label\" data-id=\"L_evidence_accepted_0\"><rect x=\"394.74\" y=\"1600.65\" width=\"165.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"477.71\" y=\"1616.05\" text-anchor=\"middle\">Correlate with test results</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"change\" transform=\"translate(240.96,266)\"><rect x=\"-111.82\" y=\"-33\" width=\"223.65\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Proposed configuration for</tspan><tspan x=\"0\" y=\"16.1\">Kubernetes StatefulSet</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"requirement\" transform=\"translate(240.96,401)\"><rect x=\"-106.47\" y=\"-54\" width=\"212.94\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Disallow HostPath and</tspan><tspan x=\"0\" y=\"-4.9\">Enforce Non-Root UID in</tspan><tspan x=\"0\" y=\"16.1\">StatefulSet Pod</tspan><tspan x=\"0\" y=\"37.1\">SecurityContext</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"identity\" transform=\"translate(240.96,104)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-role\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-role\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Role & RBAC</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-role-0-k8s-k8s-role-grad\">\n      <stop stop-color=\"#8B5CF6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#6D28D9\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-role-0-k8s-k8s-role-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">RBAC for the requested</tspan><tspan x=\"0\" y=\"48.1\">resource and verb</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"check\" transform=\"translate(240.96,684.96)\"><polygon points=\"0,-81.95 131.13,0 0,81.96 -131.13,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Service-specific checks</tspan><tspan x=\"0\" y=\"16.1\">pass?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"reject\" transform=\"translate(131.82,872.91)\"><rect x=\"-103.82\" y=\"-33\" width=\"207.63\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Revise configuration; no</tspan><tspan x=\"0\" y=\"16.1\">change applied</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"review\" transform=\"translate(350.1,872.91)\"><rect x=\"-74.46\" y=\"-33\" width=\"148.93\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Owner review:</tspan><tspan x=\"0\" y=\"16.1\">KSPM-BP-0147</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(350.1,1158.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-1-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-rect\" data-id=\"verify\" transform=\"translate(222.49,1434.91)\"><rect x=\"-111.82\" y=\"-43.5\" width=\"223.65\" height=\"87\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-15.4\">Test the intended principal</tspan><tspan x=\"0\" y=\"5.6\">and a principal outside the</tspan><tspan x=\"0\" y=\"26.6\">allowed scope</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"evidence\" transform=\"translate(477.71,1434.91)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-apiserver\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-apiserver\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kube-APIServer Control Plane</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad\">\n      <stop stop-color=\"#2563EB\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-apiserver-2-k8s-k8s-apiserver-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">API readback and</tspan><tspan x=\"0\" y=\"48.1\">configured audit events</tspan></text></g><g class=\"pele-node pele-shape-diam\" data-id=\"outcome\" transform=\"translate(222.49,1611.15)\"><polygon points=\"0,-72.24 115.58,0 0,72.24 -115.58,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Observed behavior</tspan><tspan x=\"0\" y=\"16.1\">matches control?</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"followup\" transform=\"translate(178.92,1789.39)\"><rect x=\"-110.92\" y=\"-33\" width=\"221.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Investigate drift or missing</tspan><tspan x=\"0\" y=\"16.1\">enforcement</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"accepted\" transform=\"translate(460.67,1789.39)\"><rect x=\"-102.92\" y=\"-33\" width=\"205.84\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-4.9\">Record resource scope,</tspan><tspan x=\"0\" y=\"16.1\">result, and evidence</tspan></text></g></g></svg>",
    "developer_guide": {
      "family": "workload",
      "name": "Kubernetes application request path",
      "contract": "Service selector, targetPort, readiness endpoint and workload identity",
      "dependencies": [
        "A namespace, image pull access and workload manifests",
        "A Service and any required ingress or gateway implementation"
      ],
      "steps": [
        "Apply workload and Service with matching labels and ports.",
        "Configure readiness and explicit ingress and egress permissions.",
        "Verify EndpointSlices, rollout and the actual client request path."
      ],
      "tests": [
        "Confirm ready endpoints and a successful request through the Service.",
        "Replace a Pod and verify readiness prevents routing to an unready container."
      ],
      "failures": [
        "Empty endpoints: compare selectors, Pod labels and readiness results.",
        "Timeout: inspect Service port, targetPort, listener and network policy."
      ],
      "diagnostics": "kubectl config current-context\n: \"${NAMESPACE:?Set NAMESPACE to your test namespace}\"\nkubectl -n \"$NAMESPACE\" get pods,services,endpointslices\nkubectl -n \"$NAMESPACE\" get events --sort-by=.metadata.creationTimestamp",
      "scope": "Reference integration pattern. Provision and configure the named dependencies separately; the companion catalog snippets are not a complete application deployment."
    }
  },
  {
    "id": "KSPM-BP-0148",
    "title": "Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses (Tier-7 • Profile S)",
    "category": "k8s-statefulset",
    "category_name": "StatefulSets & Persistent Enclaves",
    "service": "Kubernetes StatefulSet",
    "icon_url": "/images/k8s-icons/k8s-statefulset.svg",
    "pillar": "Security",
    "severity": "High",
    "compliance": [
      "CIS K8s 4.2.4",
      "ISO/IEC 27001:2022 A.8.20",
      "PCI-DSS v4.0 Req 10.2.1",
      "NIST 800-53 AC-6"
    ],
    "description": "Kubernetes application request path for Kubernetes StatefulSet. Integration contract: Service selector, targetPort, readiness endpoint and workload identity. Control: Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses.",
    "mermaid": "flowchart TB\n  client[\"Application client\"]\n  service@{ icon: \"logos:k8s-service\", label: \"Service: selector and targetPort\", h: 64, pos: \"b\" }\n  pods@{ icon: \"logos:k8s-pod\", label: \"Ready application Pods\", h: 64, pos: \"b\" }\n  resource@{ icon: \"logos:k8s-statefulset\", label: \"Kubernetes StatefulSet\", h: 64, pos: \"b\" }\n  registry@{ icon: \"logos:container-registry\", label: \"Image registry: immutable digest\", h: 64, pos: \"b\" }\n  control[\"Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\"]\n  client -->|Configured ingress or cluster-local request| service\n  service -->|targetPort to ready endpoints| pods\n  resource -.->|Workload or routing configuration| pods\n  registry -.->|Image pull by node or runtime identity| pods\n  control -.->|Implementation requirement| resource",
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"pele pele-flowchart\" viewBox=\"0 0 667 506\" width=\"667\" height=\"506\" style=\"max-width:100%;height:auto;--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\"><g class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\"><g class=\"pele-edge\" data-id=\"L_client_service_0\"><path d=\"M104.27,116L104.27,197\"/><path class=\"pele-marker\" d=\"M104.27,204L100.91,196L107.63,196Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_service_pods_0\"><path d=\"M104.27,316L104.27,376.5C104.27,380.55 337.66,387.82 337.66,391.88L337.66,397\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_resource_pods_0\"><path d=\"M337.66,307L337.66,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_registry_pods_0\"><path d=\"M559.96,316L559.96,376.5C559.96,380.75 337.66,387.62 337.66,391.88L337.66,397\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,404L334.3,396L341.02,396Z\" fill=\"var(--_l)\" stroke=\"none\"/></g><g class=\"pele-edge\" data-id=\"L_control_resource_0\"><path d=\"M337.66,116L337.66,206\" stroke-dasharray=\"3 4\"/><path class=\"pele-marker\" d=\"M337.66,213L334.3,205L341.02,205Z\" fill=\"var(--_l)\" stroke=\"none\"/></g></g><g class=\"pele-edge-labels\" font-size=\"14\"><g class=\"pele-edge-label\" data-id=\"L_client_service_0\"><rect x=\"33.36\" y=\"138.5\" width=\"141.83\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"104.27\" y=\"152.4\">Configured ingress or</tspan><tspan x=\"104.27\" y=\"170.4\">cluster-local request</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_service_pods_0\"><rect x=\"10\" y=\"346\" width=\"188.54\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"104.27\" y=\"361.4\" text-anchor=\"middle\">targetPort to ready endpoints</text></g><g class=\"pele-edge-label\" data-id=\"L_resource_pods_0\"><rect x=\"272.59\" y=\"338.5\" width=\"130.15\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"337.66\" y=\"352.4\">Workload or routing</tspan><tspan x=\"337.66\" y=\"370.4\">configuration</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_registry_pods_0\"><rect x=\"463.36\" y=\"338.5\" width=\"193.19\" height=\"36\" rx=\"3\" fill=\"var(--_bg)\"/><text text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"559.96\" y=\"352.4\">Image pull by node or runtime</tspan><tspan x=\"559.96\" y=\"370.4\">identity</tspan></text></g><g class=\"pele-edge-label\" data-id=\"L_control_resource_0\"><rect x=\"246.52\" y=\"146\" width=\"182.29\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"/><text x=\"337.66\" y=\"161.4\" text-anchor=\"middle\">Implementation requirement</text></g></g><g class=\"pele-nodes\"><g class=\"pele-node pele-shape-rect\" data-id=\"client\" transform=\"translate(104.27,92)\"><rect x=\"-78.02\" y=\"-24\" width=\"156.05\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Application client</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"service\" transform=\"translate(104.27,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-service\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-service\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Service</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-service-0-k8s-k8s-service-grad\">\n      <stop stop-color=\"#3B82F6\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-service-0-k8s-k8s-service-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2a4 4 0 00-4 4c0 1.3.62 2.45 1.58 3.18L7.1 13.6A3.99 3.99 0 004 13a4 4 0 104 4c0-.75-.22-1.46-.58-2.06l2.48-4.42c.63.31 1.34.48 2.1.48s1.47-.17 2.1-.48l2.48 4.42c-.36.6-.58 1.31-.58 2.06a4 4 0 104-4c-.75 0-1.46.22-2.06.58l-2.48-4.42A3.98 3.98 0 0016 6a4 4 0 00-4-4z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Service: selector and</tspan><tspan x=\"0\" y=\"48.1\">targetPort</tspan></text></g><g class=\"pele-node pele-shape-icon\" data-id=\"pods\" transform=\"translate(337.66,451)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-pod\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-pod\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes Pod</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-pod-1-k8s-k8s-pod-grad\">\n      <stop stop-color=\"#326CE5\" offset=\"0%\"></stop>\n      <stop stop-color=\"#1D4ED8\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-pod-1-k8s-k8s-pod-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.24L18.66 8 12 11.76 5.34 8 12 4.24zM4.8 9.38l6.4 3.66v6.92L4.8 16.3V9.38zm8 10.58v-6.92l6.4-3.66v6.92l-6.4 3.66z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Ready application Pods</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"resource\" transform=\"translate(337.66,260)\"><svg class=\"pele-icon\" data-icon=\"logos:k8s-statefulset\" x=\"-19.2\" y=\"-34.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"k8s-statefulset\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg width=\"40px\" height=\"40px\" viewBox=\"0 0 40 40\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Kubernetes StatefulSet</title>\n  <defs>\n    <linearGradient x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\" id=\"kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad\">\n      <stop stop-color=\"#0284C7\" offset=\"0%\"></stop>\n      <stop stop-color=\"#0369A1\" offset=\"100%\"></stop>\n    </linearGradient>\n  </defs>\n  <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n    <rect fill=\"url(#kspm-k8s-statefulset-2-k8s-k8s-statefulset-grad)\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" rx=\"8\"></rect>\n    <g transform=\"translate(8, 8)\" fill=\"#FFFFFF\">\n      <path d=\"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3v14c0 1.66-3.58 3-8 3s-8-1.34-8-3V5zm2 0c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5c0-.72-2.39-1.5-6-1.5S6 4.28 6 5zm12 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 9.1 6 9.6 6 10v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2zm0 5c0-.4-.5-.9-1.5-1.3-1.1-.4-2.7-.7-4.5-.7s-3.4.3-4.5.7C6.5 14.1 6 14.6 6 15v2c0 .72 2.39 1.5 6 1.5s6-.78 6-1.5v-2z\"/>\n    </g>\n  </g>\n</svg>\n</g></svg><text class=\"pele-label\" x=\"0\" y=\"37.6\" text-anchor=\"middle\">Kubernetes StatefulSet</text></g><g class=\"pele-node pele-shape-icon\" data-id=\"registry\" transform=\"translate(559.96,260)\"><svg class=\"pele-icon\" data-icon=\"logos:container-registry\" x=\"-19.2\" y=\"-43.2\" width=\"38.4\" height=\"38.4\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><g data-service-logo=\"container-registry\" transform=\"scale(0.6)\" fill=\"currentColor\" stroke=\"none\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\">\n  <defs>\n    <linearGradient id=\"kspm-container-registry-3-cnt-reg-g\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n      <stop offset=\"0%\" stop-color=\"#00BCD4\"/><stop offset=\"100%\" stop-color=\"#3F51B5\"/>\n    </linearGradient></defs>\n  \n    <rect width=\"40\" height=\"40\" rx=\"8\" fill=\"#0C1322\"/>\n    <rect x=\"8\" y=\"9\" width=\"24\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"url(#kspm-container-registry-3-cnt-reg-g)\" stroke-width=\"2.5\"/>\n    <rect x=\"13\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/><rect x=\"21\" y=\"14\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/>\n    <rect x=\"13\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#3F51B5\"/><rect x=\"21\" y=\"21\" width=\"6\" height=\"5\" rx=\"1\" fill=\"#00BCD4\"/>\n  \n</svg></g></svg><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"27.1\">Image registry: immutable</tspan><tspan x=\"0\" y=\"48.1\">digest</tspan></text></g><g class=\"pele-node pele-shape-rect\" data-id=\"control\" transform=\"translate(337.66,62)\"><rect x=\"-115.37\" y=\"-54\" width=\"230.74\" height=\"108\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"/><text class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\"><tspan x=\"0\" y=\"-25.9\">Enforce</tspan><tspan x=\"0\" y=\"-4.9\">VolumeClaimTemplates</tspan><tspan x=\"0\" y=\"16.1\">Encryption with Secure CSI</tspan><tspan x=\"0\" y=\"37.1\">StorageClasses</tspan></text></g></g></svg>",
    "opa_policy": "package kubernetes.admission.k8s_statefulset.k8s_statefulset_statefulset_encrypted_storage_t7\n\ndefault allow = false\n\n# Rule: Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses (Tier-7 • Profile S)\n# Compliance: CIS K8s 4.2.4, ISO/IEC 27001:2022 A.8.20, PCI-DSS v4.0 Req 10.2.1, NIST 800-53 AC-6\ndeny[msg] {\n  input.request.kind.kind == \"StatefulSet\"\n  obj := input.request.object\n  not obj.spec\n  msg := sprintf(\"Workload %v fails KSPM guardrail: must define spec.volumeClaimTemplates[_].spec.storageClassName according to CIS K8s 4.2.4\", [obj.metadata.name])\n}",
    "terraform": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "manifest": "apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n  name: \"k8s-statefulset-hardened-7\"\n  namespace: production\n  labels:\n    app.kubernetes.io/name: \"k8s-statefulset\"\n    security.kspm.io/tier: \"tier-7\"\n    security.kspm.io/pillar: \"security\"\n    compliance.kspm.io/benchmark: \"cis-k8s-v1.8\"\nspec:\n  # Pod-level security hardening & admission guardrails (Tier-7)\n  template:\n    spec:\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 10001\n        runAsGroup: 10001\n        seccompProfile:\n          type: RuntimeDefault\n      containers:\n        - name: app\n          image: \"cgr.dev/chainguard/static:latest@sha256:verified\"\n          securityContext:\n            readOnlyRootFilesystem: true\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop: [\"ALL\"]\n          resources:\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n            requests:\n              cpu: \"100m\"\n              memory: \"128Mi\"",
    "remediation": "Inspect manifest or apply Gatekeeper/Kyverno policy: kubectl apply -f k8s-statefulset-hardened.yaml --dry-run=server",
    "diagram_revision": "2026-11-06-developer",
    "diagram_details": {
      "scope": "Control deployment and verification workflow. Companion policy and configuration snippets are illustrative; validate their schema, inputs, and resource coverage before applying them.",
      "checks": [
        "Verify key identity and permitted encrypt or decrypt operations",
        "Check service support, key location, key policy, and the service identity. Encryption at rest does not prevent an authorized data read.",
        "Confirm effective permissions and record both successful and rejected test cases."
      ],
      "sources": [
        "https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/",
        "https://kubernetes.io/docs/concepts/security/security-checklist/"
      ]
    },
    "deployment_mermaid": "flowchart TB\n    subgraph proposal[\"Kubernetes: proposed control change\"]\n      change[\"Proposed configuration for Kubernetes StatefulSet\"]\n      requirement[\"Enforce VolumeClaimTemplates Encryption with Secure CSI StorageClasses\"]\n      identity@{ icon: \"logos:k8s-role\", label: \"RBAC for the requested resource and verb\", h: 64, pos: \"b\" }\n      change --> requirement\n      identity -.->|Required permissions| change\n    end\n    subgraph validation[\"Review and pre-deployment validation\"]\n      check{\"Service-specific checks pass?\"}\n      reject[\"R