Add APP_EMAIL_ALLOWLIST gate on account creation
Build / build-and-push (push) Successful in 14s

An optional comma-separated list of glob patterns restricting which
addresses may register, applied on top of APP_ALLOW_REGISTRATION. A
non-matching new address is silently ignored exactly like registration
being off; an address that already has an account can still sign in.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-06 21:26:33 +01:00
co-authored by Claude Sonnet 5
parent 06d5b721a3
commit 8732e0e5f5
9 changed files with 120 additions and 7 deletions
+3
View File
@@ -17,6 +17,9 @@ services:
# Set to false to stop new accounts being created (existing users can
# still sign in).
APP_ALLOW_REGISTRATION: "${APP_ALLOW_REGISTRATION:-true}"
# Optional comma-separated glob allowlist for addresses that may register,
# e.g. "*@example.com, *@*.example.org". Blank means any address.
APP_EMAIL_ALLOWLIST: "${APP_EMAIL_ALLOWLIST:-}"
# 0 here (unlike the app's own default of 60) so magic links can be
# resent immediately while developing -- override if that gets in the way.
MAGIC_LINK_RESEND_SECONDS: "${MAGIC_LINK_RESEND_SECONDS:-0}"