Skip to content

Support PostgreSQL connection secrets - #32

Open
iplay88keys wants to merge 2 commits into
mainfrom
iplay88keys/postgres-connection-secret
Open

Support PostgreSQL connection secrets#32
iplay88keys wants to merge 2 commits into
mainfrom
iplay88keys/postgres-connection-secret

Conversation

@iplay88keys

@iplay88keys iplay88keys commented Sep 4, 2026

Copy link
Copy Markdown

Summary

  • Add a generic postgres.connectionStringSecretRef option to the Substrate chart.
  • Read ATE_API_POSTGRES_CONNECTION_STRING from the configured Secret while keeping postgres.schema in the existing ConfigMap.
  • Default an enabled Secret reference to the release-scoped <release>-postgres-connection name when no name is supplied.
  • Reject missing or conflicting external PostgreSQL configuration at render time.
  • Add Helm unit tests and run them in the existing Helm CI workflow.

This gives parent charts a Kubernetes-native way to provide database credentials without coupling Substrate to a particular parent chart.

Allow ate-api-server to read an external PostgreSQL connection string from a Secret while keeping schema configuration in the existing ConfigMap. Add Helm unit coverage for bundled, literal, Secret-backed, and invalid setups.
@iplay88keys
iplay88keys marked this pull request as draft September 4, 2026 19:48
@iplay88keys
iplay88keys marked this pull request as ready for review September 4, 2026 20:24
@iplay88keys
iplay88keys requested a review from EItanya September 4, 2026 21:52
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.

1 participant