Introduce registration gatekeeper - #1257
Merged
Merged
Conversation
peterthomassen
force-pushed
the
20260903_blocklist
branch
from
September 4, 2026 12:59
0de14d8 to
67317ad
Compare
nils-wisiol
approved these changes
Sep 4, 2026
The api hands the facts of a registration attempt (email address, client IP address, user agent, requested domain, captcha state) to the gatekeeper service and acts on its verdict: allow, drop (discard the request, but give the client the regular response), or reject (400 Bad Request). The arbiter runs in its own container, reachable from api only and without access to the rest of the stack; its reasoning is logged, but never disclosed to the client, and failure to obtain a verdict allows the request. The arbiter shipped here allows everything; gatekeeper/README.md documents the interface.
The arbiter matches the address of a registration attempt against the patterns in email-blocklist.txt and answers with a drop verdict naming the matching line, so that no account is created and no activation email is sent while the client receives the usual response. Patterns are shell-style globs matched case-insensitively; a line starting with ! is an exception, and the first matching line decides. The file is read on every request, and the directory holding it is mounted read-only into the gatekeeper container as configured by DESECSTACK_GATEKEEPER_CONF; if it cannot be read, no address is blocked.
peterthomassen
force-pushed
the
20260903_blocklist
branch
from
September 4, 2026 13:50
67317ad to
e78524e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.