docs(oidc): align developer architecture and tracked inventory to Run 98
This commit is contained in:
1 parent
ee67bbbfc2
commit
d5a3f093ab
6 files changed
+44
-11
No files matched your search
@@ -172,3 +172,7 @@ Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) on source
|
|||||||
## P05-OIDC-05 CI coverage audit — no new test
|
## P05-OIDC-05 CI coverage audit — no new test
|
||||||
|
|
||||||
Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) is terminal SUCCESS for disposable original-prebuilt Login V2 / ZITADEL / Account real Chromium authentication, negative tests, portal-local logout and cleanup. Run #89 separately tested upstream imported Login V2 frozen build/1219 units/registry security; Run #87 Account build/security jobs passed. No accepted workflow builds a **custom-source Login V2 image** and substitutes it into full real OIDC E2E. No production TLS/domain/MFA/Admin Console/two-app SSO pipeline is demonstrated. This docs-only audit did not dispatch or rerun anything. See `notes/P05-OIDC-05.md`.
|
Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) is terminal SUCCESS for disposable original-prebuilt Login V2 / ZITADEL / Account real Chromium authentication, negative tests, portal-local logout and cleanup. Run #89 separately tested upstream imported Login V2 frozen build/1219 units/registry security; Run #87 Account build/security jobs passed. No accepted workflow builds a **custom-source Login V2 image** and substitutes it into full real OIDC E2E. No production TLS/domain/MFA/Admin Console/two-app SSO pipeline is demonstrated. This docs-only audit did not dispatch or rerun anything. See `notes/P05-OIDC-05.md`.
|
||||||
|
|
||||||
|
## P05-OIDC-06 — manual workflow and cleanup
|
||||||
|
|
||||||
|
New `.gitea/workflows/p05-custom-login-acceptance.yml` on a Docker-capable runner builds unchanged imported Login source in an isolated Node22/bookworm run-labeled builder, packages standalone output with existing upstream Dockerfile into `zitplane-login-ci:$GITHUB_RUN_ID` and opts into a single Compose image-only overlay. `tests/ci/oidc_e2e/run.sh` is unchanged in default mode; its opt-in would check the running image ID after four-service readiness. Run #98 built the local image, then failed before that identity assertion at OCI entrypoint permission denied. Both cleanup scripts under `always()` PASS. No reruns and no registry publish.
|
||||||
@@ -185,3 +185,10 @@ Official Login V2 user/auth source, user Account Portal, backend Compose and pro
|
|||||||
- `users/ui/src/{auth.ts,lib/env.ts,lib/identity.ts}`: Auth.js PKCE/session, HTTPS origin validation, protected session and Console link
|
- `users/ui/src/{auth.ts,lib/env.ts,lib/identity.ts}`: Auth.js PKCE/session, HTTPS origin validation, protected session and Console link
|
||||||
- `users/ui/src/{app/api/account/me/route.ts,components/account-shell.tsx}`: protected identity-only API and **local** logout
|
- `users/ui/src/{app/api/account/me/route.ts,components/account-shell.tsx}`: protected identity-only API and **local** logout
|
||||||
- `.gitea/workflows/p05-oidc-acceptance.yml`, `tests/ci/oidc_e2e/browser.cjs`: disposable **prebuilt** Login V2 E2E. Entire original source/CI left unchanged. `notes/P05-OIDC-05.md` lists blockers.
|
- `.gitea/workflows/p05-oidc-acceptance.yml`, `tests/ci/oidc_e2e/browser.cjs`: disposable **prebuilt** Login V2 E2E. Entire original source/CI left unchanged. `notes/P05-OIDC-05.md` lists blockers.
|
||||||
|
|
||||||
|
## P05-OIDC-06 source/file map
|
||||||
|
|
||||||
|
- `.gitea/workflows/p05-custom-login-acceptance.yml`: manual imported Login image+browser acceptance and dual owned cleanup
|
||||||
|
- `deployment/docker/compose.login-ci.override.yaml`: CI-only `zitadel-login.image` replacement, never publish a host port
|
||||||
|
- `tests/ci/login_image/{build.sh,cleanup.sh,README.md,MINIFEST.md}`: private run-labeled builder and local image packaging, owner-verified teardown and mandatory folder manifest
|
||||||
|
- `tests/ci/oidc_e2e/run.sh`: exact numeric-run-tagged opt-in Compose overlay and actual running image-ID check; no change to non-opt-in path. Run #98 halted before that check. Original Login/Auth.js/provision/browser/cleanup code unchanged.
|
||||||
@@ -145,3 +145,9 @@ Existing `tests/ci/security_advisory_gate.py` remains the independent **live reg
|
|||||||
## P05-OIDC-05 reviewed function boundaries (unchanged)
|
## P05-OIDC-05 reviewed function boundaries (unchanged)
|
||||||
|
|
||||||
`users/ui/src/lib/env.ts::required,validatedUrl,oidcSettings` validates required Auth.js settings, production HTTPS origins and min-length secret; does not configure ingress. `users/ui/src/auth.ts` provider+`signIn,jwt,session` callbacks verify standard PKCE/state/nonce and fail-closed ID/expiry, but no refresh or IdP-wide logout. `users/ui/src/lib/identity.ts::requireIdentity,zitadelSelfServiceUrl` protects server identity and constructs a permission-dependent Console link. `users/ui/src/components/account-shell.tsx::portalLogout` invalidates only the portal session. Imported `auth/ui/v2/apps/login/src/proxy.ts::proxy` and `src/lib/server/service-url.ts::getServiceConfig` are source-level proxy handlers, not custom-image integration proof. Run #96 verified the existing prebuilt flow only.
|
`users/ui/src/lib/env.ts::required,validatedUrl,oidcSettings` validates required Auth.js settings, production HTTPS origins and min-length secret; does not configure ingress. `users/ui/src/auth.ts` provider+`signIn,jwt,session` callbacks verify standard PKCE/state/nonce and fail-closed ID/expiry, but no refresh or IdP-wide logout. `users/ui/src/lib/identity.ts::requireIdentity,zitadelSelfServiceUrl` protects server identity and constructs a permission-dependent Console link. `users/ui/src/components/account-shell.tsx::portalLogout` invalidates only the portal session. Imported `auth/ui/v2/apps/login/src/proxy.ts::proxy` and `src/lib/server/service-url.ts::getServiceConfig` are source-level proxy handlers, not custom-image integration proof. Run #96 verified the existing prebuilt flow only.
|
||||||
|
|
||||||
|
## P05-OIDC-06 tested script behavior
|
||||||
|
|
||||||
|
`tests/ci/login_image/build.sh`: rejects preexisting run-owned names, copies source to disposable builder, verifies frozen PNPM and standalone output, creates a local Docker image from an unchanged Dockerfile with run-id label and immutable local image ID. It did **not** assert executable mode of the copied `entrypoint.sh`; OCI startup subsequently failed with permission denied.
|
||||||
|
|
||||||
|
`tests/ci/login_image/cleanup.sh`: exact-run builder/image/context ownership checks and removal; Run #98 `ZITPLANE_CUSTOM_LOGIN_ALL_BUILD_RESOURCES_CLEANED_PASS`. Existing `tests/ci/oidc_e2e/cleanup.sh` and backend cleanup separately passed. `tests/ci/oidc_e2e/run.sh::dc` adds only a validated opt-in fourth CI Compose file; actual custom login identity gate was NOT EXECUTED.
|
||||||
@@ -94,3 +94,7 @@ Official ZITADEL API created disposable project/client/verified test human, isol
|
|||||||
## P05-OIDC-05 production-context audit boundary
|
## P05-OIDC-05 production-context audit boundary
|
||||||
|
|
||||||
Run #96 verified the **official prebuilt** `ghcr.io/zitadel/zitadel-login:v4.20.4` with real disposable OIDC, not the imported `auth/ui/v2/apps/login` custom image. Run #89 separately verified frozen custom source build/unit/security, not its runtime. Existing dev Compose still routes Login V2 to the original image; production HTTPS and custom image wiring are BLOCKED. Account `src/auth.ts` implements PKCE/state/nonce and expiry/subject protection, while `src/lib/env.ts` requires HTTPS origins in production; no TLS ingress, trusted-header policy, production-cookie validation, federated logout/refresh or multi-app SSO is thereby provided. Full matrix: `notes/P05-OIDC-05.md`.
|
Run #96 verified the **official prebuilt** `ghcr.io/zitadel/zitadel-login:v4.20.4` with real disposable OIDC, not the imported `auth/ui/v2/apps/login` custom image. Run #89 separately verified frozen custom source build/unit/security, not its runtime. Existing dev Compose still routes Login V2 to the original image; production HTTPS and custom image wiring are BLOCKED. Account `src/auth.ts` implements PKCE/state/nonce and expiry/subject protection, while `src/lib/env.ts` requires HTTPS origins in production; no TLS ingress, trusted-header policy, production-cookie validation, federated logout/refresh or multi-app SSO is thereby provided. Full matrix: `notes/P05-OIDC-05.md`.
|
||||||
|
|
||||||
|
## P05-OIDC-06 — custom image attempt (not authenticated)
|
||||||
|
|
||||||
|
Run #98 on source `fcfa59e826c39b445faa1b5b26c47ce715d8c3d6` built an imported Login V2 standalone artifact and temporary local Docker image successfully. The custom Login service never started: OCI `exec: "/app/entrypoint.sh": permission denied`; no custom login health, issuer, project/client/test-human, Chromium PKCE/Auth.js/negative/logout steps executed. Old Run #96 **official prebuilt** authenticated OIDC remains valid. Both original OIDC resource and new builder/image/context cleanup PASS. Exact file mode was not inspected; entrypoint execute bit is a hypothesis, not established RCA. No production deployment.
|
||||||
@@ -97,3 +97,7 @@ CI only: official ZITADEL v4.20.4, official Login V2 v4.20.4, PostgreSQL 17.10/T
|
|||||||
## P05-OIDC-05 production readiness gaps
|
## P05-OIDC-05 production readiness gaps
|
||||||
|
|
||||||
`deployment/docker/compose.backend.dev.yaml` is the **only** tracked backend Compose: localhost HTTP external issuer, insecure forwarded proto, dev-only volumes, fixed internal networking and official prebuilt Login. Auth.js origin validation in `users/ui/src/lib/env.ts` does not deploy TLS or sanitize Host/forwarded headers. No production Coolify/Compose, Account runtime container image, custom Login image acceptance, dedicated production secret rotation/master-key escrow, SMTP, backups/restore, certificate renewal, release/rollback/monitoring definitions were found in the tracked tree. No external production system was inspected. Official production guidance: https://zitadel.com/docs/self-hosting/manage/production and https://zitadel.com/docs/self-hosting/manage/reverseproxy/reverse_proxy .
|
`deployment/docker/compose.backend.dev.yaml` is the **only** tracked backend Compose: localhost HTTP external issuer, insecure forwarded proto, dev-only volumes, fixed internal networking and official prebuilt Login. Auth.js origin validation in `users/ui/src/lib/env.ts` does not deploy TLS or sanitize Host/forwarded headers. No production Coolify/Compose, Account runtime container image, custom Login image acceptance, dedicated production secret rotation/master-key escrow, SMTP, backups/restore, certificate renewal, release/rollback/monitoring definitions were found in the tracked tree. No external production system was inspected. Official production guidance: https://zitadel.com/docs/self-hosting/manage/production and https://zitadel.com/docs/self-hosting/manage/reverseproxy/reverse_proxy .
|
||||||
|
|
||||||
|
## P05-OIDC-06 temporary image build
|
||||||
|
|
||||||
|
`tests/ci/login_image/build.sh` copies `auth/ui/v2/` to a run-owned Node22/bookworm builder, executes pinned PNPM 10.30.3 frozen install and Nx/Next standalone with `NEXT_PUBLIC_BASE_PATH=/ui/v2/login`, and creates a temporary build context from **only** standalone output and unchanged upstream Dockerfile. Run #98 build passed and recorded local image ID; actual service startup failed before Login health. No current security audit, production image-signing/digest lock or registry push is claimed. The helper must investigate temporary artifact executable permission in a separately approved phase; preserve imported source.
|
||||||
+19
-11
@@ -2,23 +2,23 @@
|
|||||||
|
|
||||||
**Snapshot:** 2026-11-23, P05-OIDC-04-A01 terminal Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96), job #210, immutable tested source `670e225db477f180ff14ffa62e6654860a166f17`: **SUCCESS**, private 8080 socket owner Traefik PID1, real disposable Chromium/Login V2/Auth.js authenticated Account session/negative/logout **PASS**, exact run-owned cleanup **PASS**. Production HTTPS/MFA/custom Login integration NOT VERIFIED. Documentation-only closure SHA is not the CI-tested source.
|
**Snapshot:** 2026-11-23, P05-OIDC-04-A01 terminal Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96), job #210, immutable tested source `670e225db477f180ff14ffa62e6654860a166f17`: **SUCCESS**, private 8080 socket owner Traefik PID1, real disposable Chromium/Login V2/Auth.js authenticated Account session/negative/logout **PASS**, exact run-owned cleanup **PASS**. Production HTTPS/MFA/custom Login integration NOT VERIFIED. Documentation-only closure SHA is not the CI-tested source.
|
||||||
|
|
||||||
**Git-tracked paths: 761.** Untracked `AI_INSTRUCTIONS.md` and local secrets excluded.
|
**Git-tracked paths: 769.** Untracked `AI_INSTRUCTIONS.md` and local secrets excluded.
|
||||||
|
|
||||||
This list reflects actual tracked Git files, not proof of authenticated OIDC. See `notes/P05-OIDC-03.md` and `project/OIDC-E2E-ARCHITECTURE.md`.
|
This list reflects actual tracked Git files, not proof of authenticated OIDC. See `notes/P05-OIDC-03.md` and `project/OIDC-E2E-ARCHITECTURE.md`.
|
||||||
|
|
||||||
| Group | Paths | Responsibility |
|
| Group | Paths | Responsibility |
|
||||||
| --- | ---: | --- |
|
| --- | ---: | --- |
|
||||||
| `(repository root)` | 6 | Repository root |
|
| `(repository root)` | 6 | Repository root |
|
||||||
| `.gitea` | 8 | Manual Gitea CI verification and manifests |
|
| `.gitea` | 9 | Manual Gitea CI verification and manifests |
|
||||||
| `auth` | 639 | Pinned official Login V2 source, unmodified |
|
| `auth` | 639 | Pinned official Login V2 source, unmodified |
|
||||||
| `core` | 2 | Backend dev helper, unmodified |
|
| `core` | 2 | Backend dev helper, unmodified |
|
||||||
| `deployment` | 2 | P02 dev Compose, unmodified |
|
| `deployment` | 3 | P02 dev Compose, unmodified |
|
||||||
| `docs` | 26 | User and operator docs |
|
| `docs` | 27 | User and operator docs |
|
||||||
| `notes` | 18 | Phase plans and CI evidence |
|
| `notes` | 19 | Phase plans and CI evidence |
|
||||||
| `packages` | 1 | Repository root |
|
| `packages` | 1 | Repository root |
|
||||||
| `project` | 12 | Source, functions and architecture inventory |
|
| `project` | 12 | Source, functions and architecture inventory |
|
||||||
| `scripts` | 1 | Repository root |
|
| `scripts` | 1 | Repository root |
|
||||||
| `tests` | 22 | CI-only verification and disposable OIDC browser/forwarder |
|
| `tests` | 26 | CI-only verification and disposable OIDC browser/forwarder |
|
||||||
| `users` | 24 | Account Portal source, unmodified |
|
| `users` | 24 | Account Portal source, unmodified |
|
||||||
|
|
||||||
## Exact tracked paths
|
## Exact tracked paths
|
||||||
@@ -32,7 +32,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
|
|||||||
- `MINIFEST.md`
|
- `MINIFEST.md`
|
||||||
- `README.md`
|
- `README.md`
|
||||||
|
|
||||||
### .gitea ? 8 files
|
### .gitea ? 9 files
|
||||||
|
|
||||||
- `.gitea/MINIFEST.md`
|
- `.gitea/MINIFEST.md`
|
||||||
- `.gitea/README.md`
|
- `.gitea/README.md`
|
||||||
@@ -40,6 +40,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
|
|||||||
- `.gitea/workflows/README.md`
|
- `.gitea/workflows/README.md`
|
||||||
- `.gitea/workflows/p05-backend-acceptance.yml`
|
- `.gitea/workflows/p05-backend-acceptance.yml`
|
||||||
- `.gitea/workflows/p05-ci.yml`
|
- `.gitea/workflows/p05-ci.yml`
|
||||||
|
- `.gitea/workflows/p05-custom-login-acceptance.yml`
|
||||||
- `.gitea/workflows/p05-oidc-acceptance.yml`
|
- `.gitea/workflows/p05-oidc-acceptance.yml`
|
||||||
- `.gitea/workflows/p05-security-acceptance.yml`
|
- `.gitea/workflows/p05-security-acceptance.yml`
|
||||||
|
|
||||||
@@ -690,12 +691,13 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
|
|||||||
- `core/backend/zitadel/README.md`
|
- `core/backend/zitadel/README.md`
|
||||||
- `core/backend/zitadel/dev.py`
|
- `core/backend/zitadel/dev.py`
|
||||||
|
|
||||||
### deployment ? 2 files
|
### deployment ? 3 files
|
||||||
|
|
||||||
- `deployment/README.md`
|
- `deployment/README.md`
|
||||||
- `deployment/docker/compose.backend.dev.yaml`
|
- `deployment/docker/compose.backend.dev.yaml`
|
||||||
|
- `deployment/docker/compose.login-ci.override.yaml`
|
||||||
|
|
||||||
### docs ? 26 files
|
### docs ? 27 files
|
||||||
|
|
||||||
- `docs/ARCHITECTURE.md`
|
- `docs/ARCHITECTURE.md`
|
||||||
- `docs/DEVELOPMENT.md`
|
- `docs/DEVELOPMENT.md`
|
||||||
@@ -715,6 +717,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
|
|||||||
- `docs/P05-OIDC-04.md`
|
- `docs/P05-OIDC-04.md`
|
||||||
- `docs/P05-OIDC-04-A01.md`
|
- `docs/P05-OIDC-04-A01.md`
|
||||||
- `docs/P05-OIDC-05.md`
|
- `docs/P05-OIDC-05.md`
|
||||||
|
- `docs/P05-OIDC-06.md`
|
||||||
- `docs/P05-SEC-01.md`
|
- `docs/P05-SEC-01.md`
|
||||||
- `docs/P05-SEC-02-A01.md`
|
- `docs/P05-SEC-02-A01.md`
|
||||||
- `docs/P05-SEC-02.md`
|
- `docs/P05-SEC-02.md`
|
||||||
@@ -724,7 +727,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
|
|||||||
- `docs/TROUBLESHOOTING.md`
|
- `docs/TROUBLESHOOTING.md`
|
||||||
- `docs/USER-GUIDE.md`
|
- `docs/USER-GUIDE.md`
|
||||||
|
|
||||||
### notes ? 18 files
|
### notes ? 19 files
|
||||||
|
|
||||||
- `notes/CHANGELOG.md`
|
- `notes/CHANGELOG.md`
|
||||||
- `notes/DOCS-01.md`
|
- `notes/DOCS-01.md`
|
||||||
@@ -740,6 +743,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
|
|||||||
- `notes/P05-OIDC-04.md`
|
- `notes/P05-OIDC-04.md`
|
||||||
- `notes/P05-OIDC-04-A01.md`
|
- `notes/P05-OIDC-04-A01.md`
|
||||||
- `notes/P05-OIDC-05.md`
|
- `notes/P05-OIDC-05.md`
|
||||||
|
- `notes/P05-OIDC-06.md`
|
||||||
- `notes/P05-SEC-01.md`
|
- `notes/P05-SEC-01.md`
|
||||||
- `notes/P05-SEC-02-A01.md`
|
- `notes/P05-SEC-02-A01.md`
|
||||||
- `notes/P05-SEC-02.md`
|
- `notes/P05-SEC-02.md`
|
||||||
@@ -768,7 +772,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
|
|||||||
|
|
||||||
- `scripts/README.md`
|
- `scripts/README.md`
|
||||||
|
|
||||||
### tests ? 22 files
|
### tests ? 26 files
|
||||||
|
|
||||||
- `tests/README.md`
|
- `tests/README.md`
|
||||||
- `tests/ci/MINIFEST.md`
|
- `tests/ci/MINIFEST.md`
|
||||||
@@ -779,6 +783,10 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
|
|||||||
- `tests/ci/backend_cleanup.sh`
|
- `tests/ci/backend_cleanup.sh`
|
||||||
- `tests/ci/compose.portless.override.yaml`
|
- `tests/ci/compose.portless.override.yaml`
|
||||||
- `tests/ci/oidc_discovery.py`
|
- `tests/ci/oidc_discovery.py`
|
||||||
|
- `tests/ci/login_image/MINIFEST.md`
|
||||||
|
- `tests/ci/login_image/README.md`
|
||||||
|
- `tests/ci/login_image/build.sh`
|
||||||
|
- `tests/ci/login_image/cleanup.sh`
|
||||||
- `tests/ci/oidc_e2e/MINIFEST.md`
|
- `tests/ci/oidc_e2e/MINIFEST.md`
|
||||||
- `tests/ci/oidc_e2e/README.md`
|
- `tests/ci/oidc_e2e/README.md`
|
||||||
- `tests/ci/oidc_e2e/browser.cjs`
|
- `tests/ci/oidc_e2e/browser.cjs`
|
||||||
|
|||||||
Reference in new issue
Block a user