docs(audit): close P05-OIDC-05 production-context readiness review

This commit is contained in:
victorsteele428 committed 2026-11-23 10:11:00 +00:00
1 parent f91e7956f5
commit e801318f01
20 files changed
+146 -7

No files matched your search

+4
View File
@@ -141,3 +141,7 @@ Existing `tests/ci/security_advisory_gate.py` remains the independent **live reg
**P05-OIDC-03 narrow new functions:** `run.sh::forwarder_http_ready` makes an actual status-only HTTP probe through private `127.0.0.1:8080` to the original proxy with `Host: localhost:8080`. The socat fallback branch reads *only* its pre-credential startup stderr into an allowlisted Python error classifier, verifies run-owner label before replacement, then resolves official Python by digest. `forwarder.py::copy_bytes` relays opaque 64 KiB TCP chunks without logging payload; `forwarder.py::serve_client` connects only to localhost:80 and transparently relays both directions; `forwarder.py::main` binds IPv4 loopback :8080 and emits fixed safe errno classes. Original IAM/user/PKCE/Auth.js functions unchanged.
**P05-OIDC-04-A01 function audit:** The inline Python private Traefik readiness probe in `tests/ci/oidc_e2e/run.sh` now prints only enumerated socket error classes or numeric HTTP status, closes its HTTP socket and conditionally retries known transient errors (3 attempts max), before any OIDC client/user exists. On successful first attempt, control continues to the already-present safe port-8080 inode/PID inspector, private Socat, official provisioning and real browser acceptance. Run #96 verified all positive/negative browser/session/logout and cleanup gates, but **did not exercise retry or Python fallback**. No protected Account/Auth.js/Login V2 functions were changed.
## 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.