feat/pms-271-e2e-staging-prod-secrets #205
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/pms-271-e2e-staging-prod-secrets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rename the workflow's secret references for the three E2E vars that have a real deployment equivalent, verified against the mokosh infra repo (server/{c-01 staging, nc-01 production}), so the secret names match what the values are actually called in the environment: - E2E_OIDC_CLIENT_ID -> a single shared `MOKOSH_OIDC_CLIENT_ID`. The mokosh-apps public PKCE client is seeded by bunyip-api with the same id (b0000000-0000-4000-8000-000000000002) in both environments and read by the SPA as MOKOSH_OIDC_CLIENT_ID, so it needs no staging/production split. - E2E_OIDC_REDIRECT_URI -> `MOKOSH_APPS_REDIRECT_URIS_STAGING` / `_PRODUCTION` (bunyip-api MOKOSH_APPS_REDIRECT_URIS; msp.a8n.systems vs msp.psa.systems). - E2E_OP_BASE_URL -> `OIDC_ISSUER_STAGING` / `OIDC_ISSUER_PRODUCTION` (mokosh-server OIDC_ISSUER; the bunyip OP apex api.a8n.systems vs api.psa.systems). The remaining vars are test-only with no deployment variable to match (the SPA host is a Traefik Host() rule, and the E2E account / tenant / TOTP / foreign-company values exist only for the suite), so they keep the E2E_STAGING_* / E2E_PRODUCTION_* names. Forgejo must hold both environments at once, so per-env secrets keep a _STAGING/_PRODUCTION suffix on the deployment base name; the shared client id has no suffix. The left side of each env: line stays E2E_*, so env.ts and the gate scripts are unchanged. Docs (README required-config table, provisioning step 5, CI section; .env.example header) updated to spell out the mapping. #PMS-271 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>