docs(audit): align source maps, security boundaries and CI coverage for P05-OIDC-07
This commit is contained in:
1 parent
c476f0cd75
commit
fd24d92df0
8 files changed
+43
No files matched your search
@@ -157,3 +157,11 @@ Existing `tests/ci/security_advisory_gate.py` remains the independent **live reg
|
||||
`tests/ci/login_image/build.sh` now validates `$context/.next/standalone/entrypoint.sh` is a regular file and not a symlink, checks first bytes `#!` without printing content, records sanitized numeric `mode UID:GID`, accepts either already-executable `755` or the established source-copy `644` and applies `chmod 0755` **only to the latter temporary copy**. Rejects all unexpected file types/modes and then requires `-x` + exactly `755`. After unchanged Dockerfile build, a no-network/no-secrets `docker run --entrypoint /bin/sh` with default image `nextjs` user validates `/app/entrypoint.sh` is regular, non-symlink, `755`, executable and has a shebang, printing only a fixed PASS marker. Original Git source and Dockerfile untouched.
|
||||
|
||||
Run #99 confirmed input `644 UID:GID 0:0`, copied output/image executable and actual custom runtime/Chromium OIDC acceptance, negative and local logout success. Existing run-owned cleanup checks PASS. No provision/browser/Auth.js method changed.
|
||||
|
||||
## P05-OIDC-07 — inspected function contract, unchanged source
|
||||
|
||||
- `users/ui/src/lib/env.ts::validatedUrl` forbids HTTP for `NODE_ENV=production` and credentials/query/hash in origin URLs. `oidcSettings` requires `AUTH_SECRET` min 32 and `ZITADEL_CLIENT_ID/SECRET` and passes `AUTH_TRUST_HOST`; **does not** provision TLS, register redirects or sanitize ingress headers.
|
||||
- `users/ui/src/auth.ts` provider/NextAuth callbacks require PKCE/state/nonce and valid provider subject+expiry, JWT maxAge 3600; access-token refresh/global provider logout are **not** implemented.
|
||||
- `users/ui/src/lib/identity.ts::requireIdentity,zitadelSelfServiceUrl` enforces nonempty subject, produces policy-dependent Console self-service link; `users/ui/src/components/account-shell.tsx::portalLogout` calls local `signOut` only.
|
||||
- `auth/ui/v2/apps/login/src/lib/server/service-url.ts::getServiceConfig,constructUrl` relies on publicHost/forwarded headers, and `src/proxy.ts::proxy` performs upstream rewrites/CSP/CORS; security at public proxy/Host trust must be verified separately. `src/lib/server/custom-headers.ts::applyCustomHeaders` uses configured headers. No upstream change.
|
||||
- `core/backend/zitadel/dev.py::create_dev_env,validate_env` generates **development** secrets only (master key 32 chars, login cookie >=32), not production KMS/escrow or rotation. No new functions or behavior in P05-OIDC-07; see `notes/P05-OIDC-07.md`.
|
||||
Reference in new issue
Block a user