Repository navigation
[M2.2e4b2] Verify security workflows and preserve throttled retries - #74
Merged
Merged
Conversation
6 tasks done
samuelmbabhazi
force-pushed
the
feat/m2.2e4b1-browser-fixture
branch
from
November 5, 2026 12:42
2e487b1 to
b06200d
Compare
samuelmbabhazi
changed the base branch from
feat/m2.2e4b1-browser-fixture
to
main
November 5, 2026 12:42
samuelmbabhazi
force-pushed
the
feat/m2.2e4b2-security-browser
branch
from
November 5, 2026 12:42
956a49d to
6c8bdfc
Compare
samuelmbabhazi
added a commit
that referenced
this pull request
Nov 5, 2026
## Task M2.2e4c — identity UI finish review and design-system documentation. Stacked on #74; review this branch against `feat/m2.2e4b2-security-browser`. Earlier identity PRs remain unmerged. ## What changed The skip link previously resolved against the HTML base URL: activating it from password recovery navigated to login and discarded the typed email. It now focuses and scrolls the current main content without navigating. Two browser scenarios protect this behavior, keyboard validation/MFA controls, and token-table keyboard access after resizing. Enabled inputs/selects use a separate 3.63:1 boundary against white. A visible, accessible scrolling cue appears whenever the token table exceeds its container, including the tablet layout; ResizeObserver tracks both table and container changes and disconnects on teardown. Structural dividers retain their lighter color. The implemented interface is recorded in `apps/web/DESIGN.md` and its design preview sidecar. README and PLAN close the identity UI acceptance work on this stack; local review captures are ignored. ## Why Keyboard navigation must preserve work, form controls must be visible, and narrow screens must communicate hidden token actions. These changes resolve the two material findings from the independent finish review and the independently reproduced skip-link regression. ## How it was tested - Both new Chromium scenarios failed before the fixes and pass afterward; the full suite passes all 8 scenarios against the production build, isolated PostgreSQL, HTTPS and local TLS SMTP. - 103 API and 51 web unit tests pass; workspace lint/typechecks and API/web builds pass. Go tests, buf lint and 84 PostgreSQL integration tests passed in this session with unchanged backend/Go/protobuf sources. - Seven final visual captures cover login/validation at 1440/390px and account security at 1440/768/390px. The independent reviewer's final disposition is **ship**, with both listed fixes **resolved**. This verdict is scoped to the fixes, not a whole-product accessibility certification. - GitHub CI passed on `9d4a296`: TypeScript lint/tests/build, Go lint/tests, generated-code checks, Chromium acceptance, PostgreSQL/Docker integration, and all enabled security checks. CodeQL was skipped by the existing workflow. Design documentation YAML/JSON, token references and links validate; preview snippets were not independently browser-tested. ## Security considerations No API, authorization, cookie or persistence contract changes. Browser fixtures use synthetic accounts and hide private fill arguments in diagnostics. No credentials, screenshots, traces or HAR files are committed. Capture-only recovery codes were replaced by an obvious fixed placeholder before inspection. No new dependencies or shell invocation in application code. No new domain mutations require audit events. ## Checklist - [x] Acceptance criteria from `docs/PLAN.md` are met and the task is ticked - [x] Lint, TS tests, Go tests and `buf lint` pass - [x] Tests added for keyboard navigation, validation and narrow token-table access - [x] No new shell invocation and no new secret exposure path - [x] Audit events: no new domain state changes - [x] Documentation updated; no API or architecture contract changed
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.
Task
[M2.2e4b2] Browser acceptance for account security, stacked on #73. No merge requested.
What changed and why
An uncertain token creation followed by HTTP 429 released the original idempotency key. A subsequent retry could create a second token. Preserve that key through rate limiting while enforcing Retry-After and the existing four-minute replay window. A failing unit regression reproduced the key change before the fix; a browser scenario now drops a real committed response, throttles the retry, and verifies one token and an actual server replay.
Extend the isolated Chromium suite with password reset and code reuse rejection; invalidation of other sessions and earlier API tokens; TOTP/recovery login; single-use/replaced recovery codes; token creation and revocation; private-display expiry; concurrent security-write prevention; and late-result suppression after leaving the route. Independent browser contexts verify session rotation against the real backend. Add automated accessibility checks for populated and error states, plus an injection-shaped token name.
The recovery-code grid previously used a viewport breakpoint that squeezed two columns into the narrower tablet content area. Size the columns from the available container width instead. Browser measurements now pass at 320, 390, 768, 1024 and 1440 pixels; sanitized local captures confirm the layout at mobile/tablet/desktop widths.
Validation
buf lint, formatting, diff checks and gitleaks commit hooks pass.Security considerations
No backend authorization, throttling, audit or credential policy is weakened. Fault injection operates at the browser transport around actual committed requests; backend services remain real. Browser time advances only to verify temporary-display expiry, without changing server time. Assertions compare booleans/counts or hashes rather than printing private grants, and private fill failures remain opaque. Tests create no traces, HAR files or screenshots. No new dependency.
M2.2e4b is complete. Manual visual/accessibility inspection, independent finish review and design-system documentation remain in M2.2e4c; this PR does not claim full WCAG conformance or completion of M2.2 as a whole. CodeQL remains skipped by the repository workflow; enabled CI checks are reported below.
Checklist
buf lintpass locally