docs(k8s): mirror the deployed pod hardening in the reference manifest - #32
Open
blarghmatey wants to merge 1 commit into
Open
docs(k8s): mirror the deployed pod hardening in the reference manifest#32blarghmatey wants to merge 1 commit into
blarghmatey wants to merge 1 commit into
Conversation
k8s/README.md says these manifests are the dry-run/reference copy of what Pulumi actually deploys, so they only earn their keep while they match. ol-infrastructure now sets a pod securityContext (runAsNonRoot, uid/gid 1000, fsGroup, seccomp RuntimeDefault), a container securityContext (no privilege escalation, read-only root, all capabilities dropped) and the /tmp emptyDir that the read-only root requires; this brings the reference copy in line. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QC8Vb9vZiGMPeHd97Fy4Gj
blarghmatey
force-pushed
the
fix/k8s-reference-manifest-hardening
branch
from
August 14, 2026 19:28
463a3a6 to
38419ba
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds the pod/container
securityContextand the/tmpemptyDir tok8s/deployment.yaml.Why
k8s/README.mdis explicit that these manifests are the local dry-run / reference copy of what Pulumi actually deploys — which only earns its keep while it matches. mitodl/ol-infrastructure#5410 adds:securityContext(runAsNonRoot, uid/gid 1000,fsGroup: 1000, seccompRuntimeDefault),securityContext(allowPrivilegeEscalation: false,readOnlyRootFilesystem: true,capabilities.drop: [ALL]),/tmpemptyDir, the one writable path the read-only root still needs.This brings the reference copy in line. No behavior change in this repo — nothing here is deployed from these manifests.
How tested
kubectl apply --dry-run=client -f k8s/deployment.yaml— accepted.prek run --files k8s/deployment.yaml— all hooks pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01QC8Vb9vZiGMPeHd97Fy4Gj