Repository navigation
feat(auth): add OIDC-backed Console sessions (AF-R09) - #127
Conversation
… session auth, and test verification
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f90a65223b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
ok |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1d917534f9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Linked Issue
Closes #119 after Human Review and Human Merge.
Objective
Add provider-neutral OIDC Authorization Code + PKCE authentication to the Next.js Console, exchange the verified identity for a revocable AegisFlow session, and keep PostgreSQL membership plus fixed RBAC authoritative for every protected operation.
Non-Goals
Design Note
Changes
.gitignoreand removed local generated caches/reports without touching business source files.Architecture Impact
The browser holds only an HttpOnly opaque AegisFlow session token. Core stores only its SHA-256 digest and re-evaluates database membership and capabilities on each sensitive request. OIDC identifies the principal; it does not authorize tenant operations. Temporal, LangGraph, PostgreSQL, and Redis ownership boundaries are unchanged.
Security Impact
Credential material is excluded from prompts, traces, browser-visible state, committed configuration, and persisted raw values. Local HTTP/bootstrap exceptions are development/test-only and fail closed in production mode.
Tests
Local evidence on
ebb5ca1:.venv\\Scripts\\python.exe -m pytest -q -p no:cacheprovider --ignore=tests/runtime/temporal/test_workflow.py— 612 passed, 37 skipped.localhost:7233; no application assertion failed outside that service-dependent file.npm.cmd --prefix web/console run test:run— 23 passed across 9 files.npm.cmd --prefix web/console run typecheck— passed.npm.cmd --prefix web/console run lint— passed.npm.cmd --prefix web/console run build— passed; 13 dynamic App Router routes compiled.git diff --check— passed.GitHub evidence:
CI / testpassed on the published head.M5 k3s demo smoke / k3s-smokeis a required live check and must be green before merge; use the PR check result as the current source of truth.Reliability
Documentation
Known Review Blockers
Four unresolved review threads remain:
These findings are intentionally not marked resolved and no merge is requested until focused fixes and negative tests are reviewed.
Rollback
Disable the OIDC Console profile, stop the local Keycloak overlay, revoke active Console sessions, and restore the previous Console image. Downgrade the additive database migration only through the documented rollback process after session rows are expired or revoked.
Checklist