Skip to content

Add dual whitelist with context-aware validation - #1

Open
Naiara wants to merge 5 commits into
Tknika:mainfrom
Naiara:feature/dual-whitelist-flow
Open

Add dual whitelist with context-aware validation#1
Naiara wants to merge 5 commits into
Tknika:mainfrom
Naiara:feature/dual-whitelist-flow

Conversation

@Naiara

@Naiara Naiara commented Mar 23, 2026

Copy link
Copy Markdown

Summary

  • Add dual whitelist support: public-whitelist and private-whitelist
  • Apply context-aware validation:
    • public registration uses public-whitelist
    • invitations and other contexts use private-whitelist ∪ public-whitelist
  • Remove legacy allowed-domains fallback behavior
  • Make empty whitelist restrictive (blocks all domains for that context)
  • Add file-based defaults support via EMAIL_WHITELIST_FILE
  • Update README with new configuration, examples and troubleshooting

Breaking change

  • Empty whitelist now blocks emails for that context (previous behavior was permissive)

Validation

  • docker compose run --rm maven mvn clean test
  • docker compose run --rm maven mvn clean package

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