10 KiB
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:
account: reproducible Account Portalnpm ci, TypeScript, Next.js production build and dependency advisory check.login: pinned pnpm workspace frozen install, proto/client/Login build and upstream unit checks.backend: install Git before Alpinecheckout, 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-SEC-02: Existing p05-security-acceptance.yml manual login_only=true correctly SKIPPED Account jobs in Run #88. Login production audit PASS with 0 Moderate/High/Critical, but new CI contract helper falsely matched >= ranges and blocked the separate Login frozen/build/unit job before install. After Run #88, parser narrowed to exact >glob/>minimatch selectors; not CI-verified. Default login_only=false still preserves the full Account/Login workflow. No second P05-SEC-02 run or production deployment. See docs/P05-SEC-02.md.
P05-SEC-01: .gitea/workflows/p05-security-acceptance.yml is manual-only with independent Account frozen build + negative access regressions, Login frozen Nx build + Vitest, Account production audit and Login production audit. Run #87: Account build, Login build/1219 unit tests, Account security audit PASS; Login audit FAIL on 2 Moderate transitive glob/minimatch findings (0 High/Critical) as required by strict tests/ci/security_advisory_gate.py. No source auth changes or production deployment. See docs/P05-SEC-01.md.
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. Gitea Run #86 SUCCESS on 03fb589: portless config, all four services, restart persistence, ready/discovery/JWKS, negative cases and complete cleanup passed. No Account/Login build rerun; 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.
P05-OIDC-10 new independent manual workflow: p05-login-provenance.yml uses pinned Node 24 Alpine OCI runner and immutable Node22 Bookworm builder index, leaves original source Dockerfile/entrypoint and existing Run #99/105 workflows untouched, and calls the opt-in tests/ci/login_image/build.sh/provenance.py and unchanged labeled cleanup. One Run #106 / job #222 FAILURE on 6ba004808ef47c8856c1a7906faaf7ee807d15a6: 12/12 negative security cases, pinned source, frozen PNPM/Next build, temporary 0755 entrypoint and OCI local build PASS, but IMAGE_SECRET_ENV_KEY rejected the final image; partial SPDX/unsigned attestation files NOT GENERATED. always() builder/image/context cleanup PASS, Gitea runner job cleanup observed. Source code not patched after CI, no rerun. Proposed P05-OIDC-10-A01 requires separate approval to safely classify the key and retain strict secret environment rejection. No registry push, signed release, live users or production deployment.
See notes/P05-CI-01.md and tests/ci/.
P05-SEC-02-A01 ACCEPTED: Manual Login-only Run #89, tested ff4c58ed861474061c8f045be3a9f0752caf6ca0, overall SUCCESS. Login frozen install/build/upstream 1219/1219 unit regressions job #194 PASS, Login production zero-Moderate/High/Critical audit job #196 PASS, Account jobs #193/#195 intentionally SKIPPED. Corrected transitive_override_contract.py verified exact seven parent overrides without false-positive >= parsing; no dependency lock/manifest/source change. Human OIDC/MFA remains unverified.
P05-OIDC-01: New p05-oidc-acceptance.yml is manual-only with one disposable Docker job and always() owned cleanup. New tests/ci/oidc_e2e/** uses a short-lived ZITADEL IAM_OWNER PAT for official project/real client/test human provisioning, private portless browser network, original Login V2 Chromium username/password and real Auth.js callback/positive protected identity/negative access, with strict run-labeled browser/secret/Compose teardown. No Account/Login source, package, P02 developer Compose, real user or production change. Actual Gitea runtime result pending, no false PASS. See docs/P05-OIDC-01.md and project/OIDC-E2E-ARCHITECTURE.md.
P05-OIDC-01 final result: Gitea Run #90 on cbcd60e FAILURE. Manual-only P02 backend 4/4 healthy and host-portless PASS; run-labeled private localhost:8080 TCP forwarder readiness FAILED before any official OIDC client/human provisioning and before Chromium browser/auth callback. always() cleanup PASS (ZITPLANE_BACKEND_CLEANUP_VERIFIED_PASS, ZITPLANE_OIDC_ALL_RESOURCES_CLEANED_PASS). No repeat CI cycle. Next narrowly approved P05-OIDC-02 needed to determine whether sidecar exited, failed installing socat or could not bind/forward/rout; no authenticated OIDC E2E proof.
P05-OIDC-02 final Gitea acceptance: Manual Run #91, tested 4831165548feabc2c0a0d39d25c40e0d1bc23bb2, overall FAILURE. Four backend services, no host port, private Traefik:80/Host HTTP routing and versioned prebuilt socat entrypoint/digest checks PASS; run-labeled sidecar exited with code 1, so no OIDC client/user/browser request or Auth.js callback was tested. Always-run exact resource cleanup PASS, no second CI run. Next P05-OIDC-03 must safely classify the pre-provisioning forwarder process exit, keeping actual user authentication untouched.
P05-OIDC-03: Existing manual-only p05-oidc-acceptance.yml unchanged; only run-owned tests/ci/oidc_e2e/run.sh and new forwarder.py implement allowlisted socat startup error classification and, when needed, one same-run official Python image sha256-digest private 8080→80 fallback. Always cleanup unchanged. A new Gitea run must actually verify client/user, browser Auth.js callback, protected session, negatives, and teardown before PASS.
P05-OIDC-03 Run #93 (single dispatch): workflow_dispatch on main, tested SHA 7b80f411b2981e2274d171c12596301ed757b768, job #206 QUEUED at last inspection. No CI steps, error-class evidence, OIDC positive/negative assertions or cleanup have executed yet. Neither pass nor failure is established. Do not rerun, alter login/auth or auto-trigger workflows; verify the existing Run #93 terminal status when runner scheduling permits.
P05-OIDC-06 new manual workflow: p05-custom-login-acceptance.yml uses an isolated temporary Node22/bookworm builder, pinned PNPM/Nx standalone build, original upstream Dockerfile to package a run-owned local image, opt-in CI Compose image-only overlay and the original real browser OIDC harness. The always() cleanup runs original OIDC teardown then exact-labeled builder/image/context teardown. Run #98 source fcfa59e826c39b445faa1b5b26c47ce715d8c3d6 built successfully, but custom OCI Login entrypoint permission denied before full OIDC; old/new cleanup PASS. Not a registry publish or production workflow.
P05-OIDC-06-A01 accepted: The unchanged p05-custom-login-acceptance.yml was dispatched exactly once more with source 7d6b6d0704b9e39bcb6e74257dadf0b64a19fc0f in Gitea Run #99 / Job #214, terminal SUCCESS. CI-only builder fixed only its disposable standalone entrypoint copy mode 644→755, verified built image executable by default user, original custom Login image ID/health and real Chromium PKCE/state/nonce/Auth.js session/protected Account/negative/logout PASS. Original backend/OIDC and new builder/image/context always() cleanup PASS. Historical Run #98 OCI failure remains documented, production/MFA/SSO not accepted. No workflow change was needed in A01; see notes/P05-OIDC-06-A01.md.
P05-OIDC-08 manual static workflow: New p05-production-contract-dry-run.yml uses a disposable CI runner to execute only docker compose -f deployment/production-contract/compose.ci.yaml config --quiet, Compose config --format json piped to stdlib Python static validator, and an always() checker that verifies no Docker lifecycle actions configured. It creates no application services and never queries the proposed production DNS/SSL/credentials; runner itself does use a temporary CI job container, removed at end.
Exactly one Run #101 source 2ca1b4493bd47209d0c7eabf7453feaeb1f5174a FAILURE: toolchain/checkout and Compose config PASS, normalized RUNTIME_BEHAVIOR fail-closed guard FAIL (offending field unknown), 25 negative fixtures NOT EXECUTED, static workflow-safety always step PASS, Gitea task container/volumes/network cleanup observed. No rerun/patch; separate approval needed for A01 one-file validator RCA. Do not invoke deployment commands. See notes/P05-OIDC-08.md.