Repository navigation
feat: add coverage report, audit trail panel and phishing-resistant-only setting - #283
Merged
Merged
Conversation
…nly setting Adds a Coverage page for the authentication coverage report with its CSV download, an Audit Trail panel on the Security page for the integrity check and NDJSON export, and a phishing-resistant-only toggle on the System page. Refs fells-code/seamless-auth-api#173, #174, #177, #178.
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.
Dashboard side of the GovRAMP P2 work in the auth API: fells-code/seamless-auth-api#173, #174, #177 and #178, all merged. It depends on fells-code/seamless-auth-server#191 (merged) for the passthroughs and the raw download mode.
Coverage page (
/coverage, new nav item)Audit Trail panel (Security page)
GET /admin/auth-events/integrityon demand. It is a mutation, not a query, because the API recomputes every hash, which is too heavy to repeat on each visit or window focus.System page
Plumbing
apiDownload(path, fallbackName)insrc/lib/api.tssharesapiFetch's request and error handling, so 401 still triggers the session-expired flow and error messages are unchanged. It takes the filename fromContent-Dispositionand keeps only the last path segment.saveBlobwas factored out ofdownloadCsv.@seamless-auth/typesis bumped to^0.27.0, andcheck:types-currentpasses.Checks
npm run typecheck,npm run lint,npm run format:check,npm run buildnpm run coverage: 87 files, 569 tests passnpm run test:e2e: 147 pass, including new specs for the coverage page (render, filters reach the API, CSV filename), the audit panel (verify pass and fail, NDJSON export with step-up and bounds), and the nav item/passkeys/i) now also matched the new checkbox, whose description mentions passkeys. They are anchored to/^passkeys/i.