Files
ZitPlane/.gitea/workflows/README.md
T

20 lines
2.2 KiB
Markdown

# CI workflows - manual verification only
P05-CI-01 introduced `p05-ci.yml`; P05-CI-03 adds a separate backend-only `p05-backend-acceptance.yml`. Both use **manual workflow_dispatch**. Do not enable automatic push/PR builds with Docker access without a fresh security review.
Job responsibilities:
1. `account`: reproducible Account Portal `npm ci`, TypeScript, Next.js production build and dependency advisory check.
2. `login`: pinned pnpm workspace frozen install, proto/client/Login build and upstream unit checks.
3. `backend`: install Git before Alpine `checkout`, Docker daemon preflight, disposable local-only P02 ZITADEL Compose, ready/discovery/JWKS smoke and safe cleanup. **Full interactive OIDC login is NOT certified.**
**P05-CI-02 additions:** Account Portal CI negative route/API smoke, npm/pnpm structured Moderate advisory detail, and disposable Postgres restart persistence plus stronger OIDC issuer/JWKS negative checks. Run #83 passed Account, Login V2 and Security jobs but backend proxy bind to shared host port 8080 failed after Postgres/ZITADEL/Login healthy. **Post-run source fix:** all backend Compose calls include `tests/ci/compose.portless.override.yaml` (`ports: !reset []`), config rejects any published proxy port; this is not CI-verified. Full authenticated user sign-in/MFA remains deferred.
**P05-CI-03:** `p05-backend-acceptance.yml` runs **only** the isolated backend job with `tests/ci/backend_acceptance.sh` and always-run `backend_cleanup.sh`. It checks portless effective config, all four services, restart persistence, ready/discovery/JWKS and absence of CI leftovers. This avoids rerunning already accepted Account/Login suites. Manual only; no production. See `docs/P05-CI-03.md`.
**Run #81 evidence:** backend's first revision failed during checkout because Alpine had no Git. Added a pre-checkout Git installation afterward; the corrected backend job remains **UNVERIFIED** until a separately approved CI rerun. See `docs/P05-CI-01.md`.
A green job indicates only its executed steps. Full CI acceptance also needs end-to-end OIDC session/callback, real login/MFA, admin console and session controls in a disposable environment, documented separately.
See `notes/P05-CI-01.md` and `tests/ci/`.