Skip to content

ci: allowlist telemetry redaction fixtures in gitleaks - #861

Open
BryanFRD wants to merge 1 commit into
mainfrom
ci/gitleaks-allowlist-fixtures
Open

BryanFRD wants to merge 1 commit into
mainfrom
ci/gitleaks-allowlist-fixtures

Conversation

@BryanFRD

Copy link
Copy Markdown
Contributor

The redaction fixture holds fake credentials by design, like the spec files already allowlisted. Clears the generic-api-key alert on redaction-cases.fixture.ts left after the SonarQube violations fix. Part of #731.

@ferrfleet-interne ferrfleet-interne Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approve. The change widens one gitleaks allowlist regex and nothing blocks it.

The path pattern in .gitleaks.toml now matches *.fixture.ts as well as *.spec.ts under packages/telemetry/src. In practice that adds only the existing redaction-cases.fixture.ts and scaling.fixture.ts.

Suggestions

  • .gitleaks.toml:8 (suggestion): the regex is unanchored, and .* also crosses directories. Any *.spec.ts or *.fixture.ts at any depth under packages/telemetry/src (for example src/angular/) is exempt from secret scanning. This predates the PR and may be intended, but anchoring keeps the exemption to what the description says: paths = ['''^packages/telemetry/src/[^/]+\.(spec|fixture)\.ts$''']

Formal verification: nothing to prove. The diff only touches .gitleaks.toml, with no Rust source or Cargo files, so no verifier was built or run.

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