Skip to content

Document SecretParts contract in detector-authoring docs#4912

Merged
mcastorina merged 2 commits into
mainfrom
polecat/chrome-moae3gm3
Apr 23, 2026
Merged

Document SecretParts contract in detector-authoring docs#4912
mcastorina merged 2 commits into
mainfrom
polecat/chrome-moae3gm3

Conversation

@mcastorina

@mcastorina mcastorina commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

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.

Mechanical rename of the detectors.Result.AnalysisInfo field to
SecretParts to prepare for its replacement for Raw.
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

@rosecodym rosecodym left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great!

Base automatically changed from secret-parts-rename-draft to main April 23, 2026 17:52
@mcastorina mcastorina requested review from a team April 23, 2026 17:52
@mcastorina mcastorina merged commit 685270b into main Apr 23, 2026
13 checks passed
@mcastorina mcastorina deleted the polecat/chrome-moae3gm3 branch April 23, 2026 17:53
MuneebUllahKhan222 pushed a commit that referenced this pull request May 29, 2026
* Rename AnalysisInfo field to SecretParts on detectors.Result

Mechanical rename of the detectors.Result.AnalysisInfo field to
SecretParts to prepare for its replacement for Raw.

* Document SecretParts contract in detector-authoring docs

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").
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.

3 participants