Skip to content

Redaction test: the fake MongoDB URL uses a .test host - #249

Merged
deepfates merged 1 commit into
mainfrom
claude/fake-db-hosts
Sep 28, 2026
Merged

deepfates merged 1 commit into
mainfrom
claude/fake-db-hosts

Conversation

@deepfates

Copy link
Copy Markdown
Owner

GitHub secret scanning flagged test/redaction_differential_test.exs (commit 3fe0551) as a "MongoDB Atlas Database URI with credentials". The value is a fixture: mongodb+srv://u:FAKEmongo@c.mongodb.net/…, with user u and password FAKEmongo, and the host doesn't exist. No credential is exposed, so none needs rotating. The test only needs a URL whose user info holds a password, so the host now has a .test domain (db.example.test), which cannot be real and does not match the Atlas pattern.

Scanning the tests, lib, docs, livebooks and examples for other provider-shaped secrets found only AWS's documented example key id (AKIAIOSFODNN7EXAMPLE) and ids spelled out with FAKE.

test/redaction_differential_test.exs: 10 tests, 0 failures.

@deepfates
deepfates merged commit 4d20f35 into main Sep 28, 2026
10 checks passed
@deepfates
deepfates deleted the claude/fake-db-hosts branch September 28, 2026 16:40
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