Skip to content

Document SecretParts contract in detector-authoring docs#4912

Open
mcastorina wants to merge 1 commit intosecret-parts-rename-draftfrom
polecat/chrome-moae3gm3
Open

Document SecretParts contract in detector-authoring docs#4912
mcastorina wants to merge 1 commit intosecret-parts-rename-draftfrom
polecat/chrome-moae3gm3

Conversation

@mcastorina
Copy link
Copy Markdown
Contributor

@mcastorina mcastorina commented Apr 22, 2026

Adds a Populating SecretParts section to hack/docs/Adding_Detectors_Internal.md and hack/docs/Adding_Detectors_external.md. Covers: what SecretParts is, the always-populate rule, single-part vs multi-part shape with Go examples, and the observed "key" naming convention for single-part detectors (~48 uses vs ~13 "token" on the rename branch).


Note

Low Risk
Documentation-only changes that clarify how detectors must populate SecretParts; no runtime or API behavior changes.

Overview
Adds a new "Populating SecretParts" section to both internal and external detector-authoring docs, defining SecretParts as the required structured source of credential components.

Updates the detector creation checklists to require always populating Result.SecretParts (verified or not), with guidance and Go examples for single-part ("key") vs multi-part credentials and key-naming conventions.

Reviewed by Cursor Bugbot for commit 83c72c4. Bugbot is set up for automated code reviews on this repo. Configure here.

Adds a "Populating SecretParts" section to both the external and internal
detector-authoring guides. Covers what SecretParts is, the rule that every
Result must populate it, and the shape for single-part vs multi-part
credentials with code examples. Establishes "key" as the convention for
single-part detectors (matches ~48 existing detectors vs ~13 using "token").
@mcastorina mcastorina requested a review from a team as a code owner April 22, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant