Skip to content

fix(network): redact credentials from allowlist error messages#471

Merged
chaliy merged 2 commits intomainfrom
claude/fix-429-Y2nIj
Mar 2, 2026
Merged

fix(network): redact credentials from allowlist error messages#471
chaliy merged 2 commits intomainfrom
claude/fix-429-Y2nIj

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Mar 2, 2026

Summary

  • Full URL including user:pass@ was echoed in "not in allowlist" errors
  • Added redact_url() that strips credentials before including URL in messages

Test plan

  • Unit test: test_redact_url_strips_credentials
  • Unit test: test_redact_url_preserves_clean_url
  • Unit test: test_blocked_message_no_credentials

Closes #429

URLs with user:pass@ in the authority are now redacted before
inclusion in "not in allowlist" error messages.

Closes #429
@chaliy chaliy force-pushed the claude/fix-429-Y2nIj branch from 4dcabdc to f4f8687 Compare March 2, 2026 02:41
@chaliy chaliy merged commit 7f003ab into main Mar 2, 2026
17 checks passed
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.

[L-5] URL credentials leaked in allowlist blocked messages

2 participants