Skip to content

fix(helm): make bundled postgres PSA restricted compliant#1604

Open
officialasishkumar wants to merge 1 commit intokagent-dev:mainfrom
officialasishkumar:fix/postgresql-psa-restricted
Open

fix(helm): make bundled postgres PSA restricted compliant#1604
officialasishkumar wants to merge 1 commit intokagent-dev:mainfrom
officialasishkumar:fix/postgresql-psa-restricted

Conversation

@officialasishkumar
Copy link
Copy Markdown

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.

  • add default RuntimeDefault seccomp profiles for the bundled PostgreSQL pod and container
  • drop all container capabilities by default while keeping allowPrivilegeEscalation: false
  • move the bundled PostgreSQL pod and container security contexts into chart values so users can customize them without patching templates
  • extend Helm unit coverage for the new defaults and override paths

Testing

  • make helm-version
  • helm unittest helm/kagent
  • helm lint helm/kagent

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Copilot AI review requested due to automatic review settings March 31, 2026 11:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Postgresql deployment should be or should be made possible to comply to PSA Restricted

2 participants