Add SOC 2 secrets template - #396
Merged
Merged
Conversation
Ships `PolicyTemplate::Soc2Secrets` — a bulk-erase policy scoped to elide's credential-family labels: - `api_key` — service/provider API keys (AWS, Stripe, GitHub, generic) - `auth_token` — bearer, session, refresh tokens - `private_key` — PEM and OpenSSH private material - `crypto_address` — wallet receive/send addresses; included as credential-adjacent since a leak points at production assets under the org's control Framework fit is broad: covers SOC 2 Trust Services Criteria CC6.1 (logical access) and CC6.7 (transmission/disposal), and satisfies ISO 27001 A.9.2.4 (secret authentication information management) — same label set. Unlike HIPAA §164.514, SOC 2's CC do not enumerate a fixed identifier list; the scope reflects industry-standard secrets-scanning practice rather than framework text. Callers whose evidence workflow needs richer coverage (JWTs embedded in log lines, session IDs) extend the returned `PolicyDefinition`'s labels and group before submission. Wired into `TemplateCatalog::builtin()`. Four new tests pin the label scope, the personal-data exclusion, the rule shape, and id stability. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.
Summary
Ships `PolicyTemplate::Soc2Secrets` — a bulk-erase policy scoped to elide's credential-family labels:
Framework fit is broad: covers SOC 2 Trust Services Criteria CC6.1 (logical access) and CC6.7 (transmission/disposal), and satisfies ISO 27001 A.9.2.4 (secret authentication information management) — same label set.
Unlike HIPAA `§164.514`, SOC 2's Common Criteria do not enumerate a fixed identifier list; the scope reflects industry-standard secrets-scanning practice rather than framework text. Callers whose evidence workflow needs richer coverage (JWTs embedded in log lines, session IDs) extend the returned `PolicyDefinition`'s labels and group before submission.
Behavior
Test plan
🤖 Generated with Claude Code