fix(helm): make bundled postgres PSA restricted compliant#1604
Open
officialasishkumar wants to merge 1 commit intokagent-dev:mainfrom
Open
fix(helm): make bundled postgres PSA restricted compliant#1604officialasishkumar wants to merge 1 commit intokagent-dev:mainfrom
officialasishkumar wants to merge 1 commit intokagent-dev:mainfrom
Conversation
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the bundled PostgreSQL Helm chart resources to be Pod Security Admission (PSA) restricted compliant by default, while also making both pod-level and container-level security contexts configurable via chart values.
Changes:
- Adds restricted-compliant defaults for bundled PostgreSQL (seccomp
RuntimeDefault, drop all capabilities,allowPrivilegeEscalation: false, non-root settings). - Moves PostgreSQL pod/container securityContext configuration into
.Values.database.postgres.bundled.*for user overrides. - Extends Helm unit tests to cover the new defaults and override behavior.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
helm/kagent/values.yaml |
Introduces configurable pod/container security context defaults for bundled PostgreSQL. |
helm/kagent/templates/postgresql.yaml |
Renders pod/container security contexts from values instead of hardcoding them in the template. |
helm/kagent/tests/postgresql_test.yaml |
Adds unit assertions for new PSA-restricted defaults and override paths. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
Closes #1560
The bundled PostgreSQL deployment now ships with Pod Security Admission restricted-compliant defaults and exposes both pod-level and container-level security context values for overrides.
RuntimeDefaultseccomp profiles for the bundled PostgreSQL pod and containerallowPrivilegeEscalation: falseTesting
make helm-versionhelm unittest helm/kagenthelm lint helm/kagent