Improve/team security flagging safety - #1882
Open
oraimoitel wants to merge 3 commits into
Open
Conversation
Expand unit tests for filterAuditEvents, hasActiveAuditFilter, formatEventAsText, and CATEGORY_FOR_KIND from 7 to 21 tests. Add Playwright E2E spec covering event rendering, category filtering, search, empty states, copy/export buttons, and count.
Add regression coverage for audit log feature Closes Stellar-Mail#964
- docs/THREAT_MODEL.md — document threat assumptions, unsafe input catalog, and mitigation strategies for all field types - docs/PERFORMANCE.md — document O(n) characteristics of classifyEmail, per-field validation costs, large-dataset guidance, batch guidance - guards/security-guards.mjs — pre-validation size guard (rejects payloads >64 KB before any work), dedup batch-size guard, composite guardAndValidate - tests/security-guards.test.mjs — 14 tests covering guard success paths, edge cases (null, arrays, size boundaries), and stable LIMITS contract - index.ts — export guard functions and types - README.md — update folder structure, test count, acceptance checklist
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.
closes #702