refactor(deploy): externalize compose credentials and subsystem test secrets (FLPATH-4806) - #60
Conversation
ca0c17e to
e08fd2f
Compare
PR Summary by QodoExternalize Compose and subsystem test credentials
AI Description
Diagram
High-Level Assessment
Files changed (12)
|
Code Review by Qodo
1.
|
|
@chadcrum fyi — once this merges, |
@vkolodny I'll update those today. |
…secrets (FLPATH-4806) Move deploy and subsystem test credentials into gitignored .env files. Enable optional Keycloak via AUTH=true compose profile, update realm import to use env placeholders, and use a shared test/subsystem/.env.example seeded by a Makefile prerequisite before subsystem test stacks start. https: //redhat.atlassian.net/browse/FLPATH-4806 Signed-off-by: Chad Crum <ccrum@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Compose file expressions like AUTH_DISABLED were defaulting because make targets never loaded deploy/.env for interpolation. Signed-off-by: Chad Crum <ccrum@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
8cba8ca to
6beae86
Compare
auth-subsystem-test now sources test/subsystem/.env so host-side Ginkgo uses the same credentials as the compose stack. Signed-off-by: Chad Crum <ccrum@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Chad Crum <ccrum@redhat.com>
Signed-off-by: Chad Crum <ccrum@redhat.com>
Signed-off-by: Chad Crum <ccrum@redhat.com>
Signed-off-by: Chad Crum <ccrum@redhat.com>
| ### All providers | ||
|
|
||
| To start all providers at once, set the required environment variables and run: | ||
| To start all providers at once, set `ACM_CLUSTER_SP_PULL_SECRET` in `deploy/.env` and run: |
There was a problem hiding this comment.
why give explicit instruction for ACM_CLUSTER_SP_PULL_SECRET?
| For Helm chart installs, see [helm/dcm/README.md](helm/dcm/README.md#authentication) | ||
| (`auth.enabled=true`). | ||
| Auth credentials live only in `deploy/.env` (see `deploy/.env.example`). Keycloak does | ||
| not start with `make compose-up`; pass `AUTH=true` when auth is enabled in `.env`. |
There was a problem hiding this comment.
so keycloak starts only when AUTH=true is set, correct?
Summary
Harden credential handling by removing secrets and passwords from committed compose files. Deploy and subsystem test stacks now load credentials from gitignored
.envfiles (documented viadeploy/.env.exampleandtest/subsystem/.env.example), so defaults are not checked intodocker-compose.yaml.deploy/.envviaenv_fileindeploy/compose.yaml.test/subsystem/.env, seeded from.env.exampleby a Makefile prerequisite before*-subsystem-test-up.authcompose profile;make compose-up AUTH=truestarts it when auth is enabled in.env.${...}placeholders and updatedeploy/RUN.md/ README for the new workflow.Expected CI failure
The Helm chart job is expected to fail on this PR until the companion helm PR lands. This PR updates
deploy/keycloak/realm-export.json(compose path) but intentionally leavesdeploy/helm/dcm/files/realm-export.jsonunchanged;helm-chart-verify-syncwill report stale/mismatch until that follow-up syncs the helm copy.https://redhat.atlassian.net/browse/FLPATH-4806