feat: add PSA restricted compliance — securityContext, remove SYS_PTRACE#44
Closed
will-corrigan wants to merge 1 commit into
Closed
feat: add PSA restricted compliance — securityContext, remove SYS_PTRACE#44will-corrigan wants to merge 1 commit into
will-corrigan wants to merge 1 commit into
Conversation
Open
1 task
3997e2e to
d6e5b04
Compare
d6e5b04 to
2460819
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.
Description
Adds configurable pod-level and container-level securityContext to all Hatchet deployments and jobs. Removes SYS_PTRACE capability and shareProcessNamespace from setup jobs as they are not required by the codebase.
Defaults are backward-compatible — existing deployments are unaffected. Users can opt into stricter security by overriding values.
Type of change
What's Changed
podSecurityContextandcontainerSecurityContextvalues for all charts (hatchet-api, hatchet-frontend)allowPrivilegeEscalation: false,capabilities.drop: [ALL],seccompProfile: RuntimeDefaultrunAsNonRootdefaults tofalsefor backward compatibilitySYS_PTRACEcapability from all 4 setup job containersshareProcessNamespace: truefrom both job pod specsCompanion PR
hatchet-dev/hatchet#3356 creates a non-root user (UID 1000) in the Docker images. Together, users can run Hatchet fully non-root by setting:
This enables Kubernetes Pod Security Standards restricted profile compliance.