docs(ci): record P05 OIDC run 90 forwarder blocker and verified cleanup
This commit is contained in:
1 parent
cbcd60e76e
commit
b78270e9d4
17 files changed
+84
-8
No files matched your search
@@ -15,7 +15,7 @@ This is the **developer-focused implementation history**. `notes/CHANGELOG.md` i
|
||||
| 2026-11-22 | P05-SEC-01 | Next.js/OTel minimal security manifests, reproducible locks, dedicated CI and strict Moderate+ gates | Run #87: Account/Login build PASS, Login Vitest 1219/1219, Account audit 0, Login 2 Moderate open; `notes/P05-SEC-01.md` |
|
||||
| 2026-11-22 | P05-SEC-02 | Seven parent-targeted glob/minimatch patched resolutions, PNPM lockfile metadata-only, manual Login-only CI and post-run validator fix | Run #88: strict Login audit 0 findings PASS, Login build job blocked before install by parser false-positive; post-run fix untested. `notes/P05-SEC-02.md` |
|
||||
| 2026-11-22 | P05-SEC-02-A01 | Verify existing corrected helper, exact seven PNPM scoped overrides, frozen Login Nx build and upstream Vitest; no source/lock changes | **Gitea Run #89 SUCCESS** on `ff4c58e`, 84/84 files, 1219/1219 tests, Login audit 0 Moderate/High/Critical; `notes/P05-SEC-02-A01.md` |
|
||||
| 2026-11-22 | P05-OIDC-01 | CI-only real OIDC IAM_OWNER bootstrap, project/client/user creation, Playwright password/callback/identity/negative tests and always cleanup | Source prepared; real CI outcome pending; `notes/P05-OIDC-01.md` |
|
||||
| 2026-11-22 | P05-OIDC-01 | Added manual disposable IAM_OWNER/client/human/browser OIDC acceptance harness, secret isolation and cleanup | Run #90 FAIL before provisioning: private loopback forwarder unready; 4 backend services healthy, owned cleanup PASS. `notes/P05-OIDC-01.md` |
|
||||
|
||||
## Required entry for each future change
|
||||
|
||||
|
||||
@@ -131,3 +131,6 @@ No new CI/auth/application/manifest/lock changes in A01; all checks were against
|
||||
New manual workflow `.gitea/workflows/p05-oidc-acceptance.yml` executes **one** isolated Docker runner job. `tests/ci/oidc_e2e/run.sh` creates the unchanged P02 stack under exact numeric run ownership and no host ports; a CI-only FirstInstance IAM_OWNER machine PAT and official API provision a disposable OIDC client/user. A pinned Chromium image runs the **unmodified** Account Portal in isolated CI development mode, driving official prebuilt Login V2 and real Auth.js PKCE/state/nonce, callback, authenticated Account API/page, negatives and local logout. An `always()` step calls `tests/ci/oidc_e2e/cleanup.sh` to remove only owned browser/forwarder/secrets and invokes audited backend owned-data cleanup. The run must fail if cleanup is incomplete; no browser secrets are logged/uploaded.
|
||||
|
||||
**Important:** The original backend external issuer is HTTP localhost, while Account Portal production mode correctly requires HTTPS. This **CI development-origin** browser acceptance does not certify production TLS, full self-hosted login source wiring, MFA or Admin Console human login. See `project/OIDC-E2E-ARCHITECTURE.md` for individual modules and `notes/P05-OIDC-01.md` for the actual run status.
|
||||
|
||||
|
||||
**P05-OIDC-01 real CI evidence:** Manual Gitea Run #90 (tested `cbcd60e`) had healthy 4-service portless backend PASS, **CI-only localhost:8080 namespace forwarder readiness FAIL**, no disposable OIDC project/client/user or Chromium browser launched; `always()` cleanup job step PASS, no leftover CI resources. Overall job FAILED; **not** an authenticated login test PASS. Next narrowly scoped P05-OIDC-02 must instrument/repair private forwarder lifecycle and reverify the full browser acceptance, without changing original application or backend code.
|
||||
@@ -127,3 +127,6 @@ Existing `tests/ci/security_advisory_gate.py` remains the independent **live reg
|
||||
- `tests/ci/oidc_e2e/browser.cjs::fixture()` checks fixture integrity; `waitForPortal()` checks the CI-only Account dev server; `assertAuthorization()` validates genuine browser authorization params (S256 PKCE, state, nonce, client and exact redirect); `verifyAnonymous()` asserts unauthenticated API 401/no-store and protected-page redirect; `verifyInvalidCallback()` asserts tampered state/code cannot establish a session; `main()` uses original Login V2 username/password, waits for a *real* Auth.js callback, verifies created user ID, cookie, protected page and local logout.
|
||||
- `run.sh` owns startup and preflight; `cleanup.sh` owns exact run-labeled teardown and failure if anything remains. These are not user-facing endpoints and must never run against shared/production Docker.
|
||||
- `users/ui/src/auth.ts`, Account/API source and all upstream Login V2 runtime functions remain unchanged.
|
||||
|
||||
|
||||
**P05-OIDC-01 runtime evidence:** `run.sh` reached four-service readiness in Run #90, then `provision.py::wait_until_ready()` timed out on private `localhost:8080` before `request()` could provision any client, project or user. Thus `browser.cjs::main()` and its positive/negative real login/session checks **were not executed**. The only other completed operation was `cleanup.sh`, which verified removal of owned state. The sidecar's precise root cause is unknown; avoid runtime/PASS claims for unexecuted browser functions.
|
||||
@@ -41,3 +41,12 @@ A first-instance IAM_OWNER service user is created only inside disposable ZITADE
|
||||
## References
|
||||
|
||||
ZITADEL official endpoints and bootstrap specification: `https://github.com/zitadel/zitadel/blob/main/cmd/setup/steps.yaml`, `https://zitadel.com/docs/reference/api/management/zitadel.management.v1.ManagementService.AddOIDCApp` and `https://zitadel.com/docs/guides/integrate/login-ui/username-password`. Actual Gitea result: `notes/P05-OIDC-01.md`.
|
||||
|
||||
|
||||
## Run #90 terminal evidence and network integration blocker
|
||||
|
||||
Gitea manual [Run #90](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/90), tested `cbcd60e76ec909df4f9c5826adf7a3e2a899c73e`, **FAILED**, job #197. `run.sh` correctly validated runner Docker/ownership, portless Compose with disposable first-instance IAM_OWNER configuration and brought all four P02 services up healthy. It created a private `alpine:3.21` namespace-sharing TCP forwarder; that helper attempted to install `socat` with its installation output silenced. The following `provision.py::wait_until_ready()` could not reach the expected private `localhost:8080` after 70 seconds and raised `ZITPLANE_OIDC_PROVISION_BLOCKED`. **The reason the forwarder was not ready remains unproven** (container exit, package install, socket bind or reverse-proxy routing cannot be distinguished from the available log). Do not misattribute failure to ZITADEL client provisioning or browser authentication: both were **NOT EXECUTED**.
|
||||
|
||||
The mandatory `cleanup.sh` step #3 succeeded and printed `ZITPLANE_BACKEND_CLEANUP_VERIFIED_PASS` + `ZITPLANE_OIDC_ALL_RESOURCES_CLEANED_PASS`. It removed only run #90-owned proxy namespace forwarder, separate ephemeral secrets volume, Compose containers, Postgres/bootstrap volumes and fixed CI network. **Backend bootstrap/cleanup PASS; full end-to-end OIDC acceptance BLOCKED.**
|
||||
|
||||
Next P05-OIDC-02 should narrowly instrument/check forwarder startup before provisioning, use an approved pinned prebuilt image to avoid silent runtime package installation, verify exact **private** loopback listener/Host routing without any host port exposure, preserve original Go backend/Compose/Login/Auth.js and credentials isolation, then run **one separately authorized** Gitea acceptance cycle. No CI-only patch in P05-OIDC-01 was executed after Run #90.
|
||||
@@ -1,6 +1,6 @@
|
||||
# ZitPlane ? exact tracked source inventory
|
||||
|
||||
**Snapshot:** 2026-11-22, P05-OIDC-01 source candidate on approved baseline `f423c69`. New browser OIDC integration is **NOT runtime-verified until actual Gitea CI**.
|
||||
**Snapshot:** 2026-11-22, P05-OIDC-01 source tested on Gitea Run #90 at `cbcd60e76ec909df4f9c5826adf7a3e2a899c73e`: backend/portless PASS, private localhost forwarder BLOCKED; no client/user/browser E2E executed, cleanup PASS. Final results-only documentation commit is NOT a new runtime test.
|
||||
|
||||
**Git-tracked file paths: 746.** Untracked `AI_INSTRUCTIONS.md` and ignored local secrets excluded.
|
||||
|
||||
|
||||
Reference in new issue
Block a user