Repository navigation
[M2.2e3d] Render token management and private credentials - #71
Merged
Merged
Conversation
3 of 4 tasks
samuelmbabhazi
force-pushed
the
feat/m2.2e3c-token-form-state
branch
from
November 5, 2026 12:40
5543daa to
cde5910
Compare
samuelmbabhazi
changed the base branch from
feat/m2.2e3c-token-form-state
to
main
November 5, 2026 12:40
samuelmbabhazi
force-pushed
the
feat/m2.2e3d-token-screens
branch
from
November 5, 2026 12:41
ee2d72f to
f60fd32
Compare
samuelmbabhazi
marked this pull request as ready for review
November 5, 2026 12:41
samuelmbabhazi
added a commit
that referenced
this pull request
Nov 5, 2026
…ty (#72) Production now serves the Angular build from the API process, matching ADR 0009 and keeping cookie/CSRF requests on one origin. The default directory is dist/apps/web/browser; WEB_DIST_DIR supports packaged layouts. Missing/invalid builds fail startup with opaque diagnostics and close the application. The OpenAPI-only generator still needs no web build. Serving uses a bounded startup snapshot of public asset types, with no request-time filesystem path resolution. API paths, dotfiles, maps, metadata and traversal targets never become SPA responses. Hashed bundles are immutable; index HTML is no-store with a fresh CSP nonce. Inline build scripts/styles are disabled, and the web CSP allows same-origin assets, nonce-bound component styles and Angular's reviewed Trusted Types policies. Validation: API/web lint, typecheck, tests and builds pass (102 API unit tests, 50 Angular tests). Five new real-HTTP tests cover nonces/cache headers, GET/HEAD navigation, API boundaries, forbidden files/traversal, snapshots, symlinks and size limits. The actual production index contains no inline script/style and retains its nonce placeholder. Real-browser CSP/identity acceptance follows in M2.2e4b. No new dependency. The development example/docs now use the actual browser origin on port 4200; existing .env files must update that setting as documented. Stacked on #71. This PR stays draft until browser acceptance; no merge requested. - [x] M2.2e4a service/configuration criteria - [x] HTTP security regressions and production builds - [x] Plan/spec/development instructions updated - [ ] Real-browser CSP and identity acceptance (M2.2e4b)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Account security now includes token creation/revocation forms, bounded lifetime choices, a one-time credential display and paginated metadata. The table exposes permissions, creation/use dates, expiry and status; its horizontal region is keyboard accessible on narrow screens. Copying remains explicit, and acknowledgement removes the credential.
MFA/session rotation clears any displayed credential and refreshes the token list. Expiry labels update without additional API traffic, and inactive rows cannot offer active-token revocation. Shared mutation gating remains in force while each form/sign-out control reports only its own operation's progress. Background loads now use Angular PendingTasks so application/test stability reflects actual requests.
Validation: all 50 Angular tests pass; web lint, typecheck and production build pass. The new rendered-flow test covers explicit copy and immediate credential removal on MFA rotation, with a separate expiry-clock regression. Initial production payload is 353 kB raw / 93 kB estimated transfer. No new dependency or backend contract. Plan/spec updated.
Stacked on #70. This PR stays draft until real-browser/backend acceptance and the final desktop/mobile design/accessibility review in M2.2e4. No merge requested.