Draft: v2/postgres: select databases and roles from the infrastructure contract

⚠️ Experiment, not to be merged. Part of the Relay-on-Theseus PoC (Refs gitlab-org/cluster-integration/gitlab-agent#1082). The findings are summarized in Relay on Theseus: what's missing.

Lets a LabKit v2 service open any database listed in the infrastructure contract's postgresql_databases with postgres.WithDatabase and postgres.WithRole: per-identifier and per-role Secret trees, atomic credential pairing, direct endpoints for roles, sslmode and TLS file parameters in the DSN, and a secret.Has presence check so a pooled endpoint is never silently bypassed. The singular contract form behaves exactly as before.

MRs of this work:

Edited by Timo Furrer

Merge request reports

Loading
Loading