Skip to content

redact personal email from examples and tests#33

Merged
stevepridemore merged 0 commit into
mainfrom
redact-personal-email
May 10, 2026
Merged

redact personal email from examples and tests#33
stevepridemore merged 0 commit into
mainfrom
redact-personal-email

Conversation

@stevepridemore
Copy link
Copy Markdown
Owner

@stevepridemore stevepridemore commented May 10, 2026

Summary

  • Replaces the real maintainer email with the IETF-reserved user@example.com everywhere it appeared in tracked files: src/shared/oauth.ts (comments), src/shared/oauth.test.ts (~20 fixtures), docs/REMOTE.md, .env.example.
  • Wildcard examples switched to *@example.org so the mixed-list tests still exercise distinct literal vs. wildcard domains (the existing test wildcard was *@example.com, which would now overlap with the new literal user@example.com).
  • LICENSE and glama.json keep the maintainer name — those are deliberate copyright/attribution markers, not example data.
  • Scope is the present tree only. Git history still contained the old strings at the time of this PR; a follow-up filter-repo pass scrubbed history.

Test plan

  • npx vitest run src/shared/oauth.test.ts → 66 / 66 pass
  • verification grep returns nothing across tracked files (excluding LICENSE, README, glama.json)

🤖 Generated with Claude Code

@stevepridemore stevepridemore merged this pull request into main May 10, 2026
2 checks passed
@stevepridemore stevepridemore deleted the redact-personal-email branch May 10, 2026 05:49
stevepridemore added a commit that referenced this pull request May 10, 2026
Replace `user@example.com` (real maintainer email) with the IETF-reserved
`user@example.com` everywhere it appeared in tracked files:

- src/shared/oauth.ts — comment block illustrating allowlist syntax
- src/shared/oauth.test.ts — test fixtures for isEmailAllowed (~20 sites)
- docs/REMOTE.md — OAUTH_ALLOWED_EMAILS documentation example
- .env.example — commented-out config sample

Wildcard examples switched from `*@example.com` to `*@example.org` so the
mixed-list tests still exercise distinct literal vs. wildcard domains
(previously the test wildcard was `*@example.com`, which would now overlap
with the literal). Test names and subdomain-rejection cases updated to
match. All 66 tests in oauth.test.ts still pass.

LICENSE and the glama.json author/badge fields keep the maintainer name —
those are deliberate copyright/attribution markers, not example data.

History still contains the old strings; this commit only redacts the
present tree, which was the requested scope.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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