Skip to content

fix(chart): read PostgreSQL credentials from a Secret for API startup and bootstrap #872

Closed

Description

@Baylem

Production readiness audit of Gameplane v0.4.0, commit 07bee47b. Tracking issue and PR merge order: #867.

Finding

The chart currently renders api.db.dsn in process arguments and a literal environment value. A password-bearing DSN can appear in pod/deployment metadata and Helm release history.

Work

Add an existing Secret name/key configuration for PostgreSQL. Use secretKeyRef for GAMEPLANE_DB_DSN on every applicable execution path and omit the literal DSN flag in that mode. Specify precedence or reject ambiguous values. Document migration, rotation and the persistence of prior Helm revisions. A Secret reference must work with the shipped default SQLite DSN still present in chart defaults.

Acceptance criteria

Use a disposable canary DSN. Confirm the API and bootstrap can connect, SQLite still works, and rendered workload specs, arguments, logs and release inputs for the new Secret mode contain no canary value. Exercise missing Secret/key and Helm upgrade.

PR ownership and prior work

Own Secret-backed chart wiring. H07 reuses it in PostgreSQL failover and recovery fixtures. Serve and bootstrap already support GAMEPLANE_DB_DSN. A second config parser would duplicate them.

Chart argument · Chart environment · API configuration

Qualification evidence

PR #887 passed on 5d202922. The chart render, PostgreSQL integration tests, and the kind upgrade with Secret-backed configuration passed. Chart render · PostgreSQL integration · Kind upgrade and Secret check

Activity

  1. added
    type: security
    area: api
    area: chart
    on Nov 11, 2026
  2. changed the title [-][High H05] Read PostgreSQL DSNs from a referenced Secret in API deployments and bootstrap[/-] [+]fix(chart): read PostgreSQL credentials from a Secret for API startup and bootstrap[/+] on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: apiarea: charttype: security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions