Request collections hold test data only
Shipped 2026-11-05
What was wrong
Pasted requests and responses had put real data in api/bruno: about 1,450 member emails in the archived Postman export, and one member’s full signup details, security answers included, in Auth/Signup.bru. The docs build copied some of it into the pages under docs/app/api, which sit behind Cloudflare Access. admin/src/app/_data/currency/instructor.json, which nothing imports, listed 399 members.
secret-scan didn’t catch any of it, because gitleaks looks for secret formats, not personal data.
What changed
- Real values replaced. Every endpoint stays, including the 183 found only in the archive. Requests use the fake members in
api/bruno/fixtures/test-members.json, and credentials are{{variables}}. instructor.jsondeleted.- New check:
test-data-scan. It fails a PR when these folders hold a non-@exampleemail, a JWT, a literal credential, or a personal field that isn’t a fixture value. It prints file, line and field, never the value. Run it withnode api/scripts/check-test-data.js.
Still to do
-
Rotate any live credentials that were in these files.
-
Rewrite git history: this PR only cleans the current files.
-
Make
test-data-scana required check once it has passed on real PRs. -
Jira: TUN-945
Last updated on