Skip to content

[M2.2e3d] Render token management and private credentials - #71

Merged
samuelmbabhazi merged 1 commit into
mainfrom
feat/m2.2e3d-token-screens
Nov 5, 2026
Merged

samuelmbabhazi merged 1 commit into
mainfrom
feat/m2.2e3d-token-screens

Conversation

@samuelmbabhazi

Copy link
Copy Markdown
Collaborator

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.

  • Token forms, metadata and private-display lifecycle
  • Web checks and regression tests
  • Plan/spec updated
  • Real-browser and final design/accessibility review (M2.2e4)

@samuelmbabhazi
samuelmbabhazi force-pushed the feat/m2.2e3c-token-form-state branch from 5543daa to cde5910 Compare November 5, 2026 12:40
@samuelmbabhazi
samuelmbabhazi changed the base branch from feat/m2.2e3c-token-form-state to main November 5, 2026 12:40
@samuelmbabhazi
samuelmbabhazi force-pushed the feat/m2.2e3d-token-screens branch from ee2d72f to f60fd32 Compare November 5, 2026 12:41
@samuelmbabhazi
samuelmbabhazi marked this pull request as ready for review November 5, 2026 12:41
@samuelmbabhazi
samuelmbabhazi merged commit 61d7f39 into main Nov 5, 2026
9 checks passed
@samuelmbabhazi
samuelmbabhazi deleted the feat/m2.2e3d-token-screens branch 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant