Skip to content

test(support): stop the curl auth-header fixture tripping secret scanners - #365

Merged
eddietejeda merged 2 commits into
mainfrom
fix/support-test-secret-scanner
Oct 28, 2026
Merged

eddietejeda merged 2 commits into
mainfrom
fix/support-test-secret-scanner

Conversation

@eddietejeda

Copy link
Copy Markdown
Contributor

Aikido reports a HIGH leaked_secret in src/commands/support.rs. It is the redaction test fixture curl -H "Authorization: Bearer hd_notarealtoken_0001" https://api.hotdata.dev/...: a literal curl auth header matches the scanner's curl-auth-header rule regardless of how fake the token is. The fixture is now assembled at runtime and points at example.com, so no auth-header literal is in the source. Test behaviour is unchanged.

@eddietejeda
eddietejeda requested a review from a team as a code owner October 28, 2026 04:34
@eddietejeda
eddietejeda requested review from rohan-hotdata and removed request for a team October 28, 2026 04:34
@eddietejeda
eddietejeda merged commit 8a214b8 into main Oct 28, 2026
14 checks passed
@eddietejeda
eddietejeda deleted the fix/support-test-secret-scanner branch October 28, 2026 04:37
@codecov

codecov Bot commented Oct 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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