diff options
| author | Dennis Fink | 2026-11-17 14:44:00 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-17 14:44:00 +0100 |
| commit | 227092b57acc886469e16bcc4c0d3256e86d3d1e (patch) | |
| tree | c1de8d5f8f3a37562e482f84e8017213c08a05d6 /contrib | |
| parent | f98b0e446b41325c494bd97900b7bbf730a7d67e (diff) | |
| download | webmentions-ssg-227092b57acc886469e16bcc4c0d3256e86d3d1e.tar.gz webmentions-ssg-227092b57acc886469e16bcc4c0d3256e86d3d1e.zip | |
feat(receiver): add source domain access rules
Add persistent source block and allow lists with authenticated
management, single-row and bulk blocking actions, and optional
fail-closed allowlist mode.
Reject disallowed sources before enqueueing and recheck policy in
verification workers, while sharing canonical hostname normalization
across receiver, sender, and configuration paths.
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/webmentions-ssg.example.cfg | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/webmentions-ssg.example.cfg b/contrib/webmentions-ssg.example.cfg index afc5621..882c86d 100644 --- a/contrib/webmentions-ssg.example.cfg +++ b/contrib/webmentions-ssg.example.cfg @@ -95,6 +95,13 @@ MAX_REDIRECTS = 20 # also used for outgoing requests # Webmention. Include each hostname you serve; wildcards are not supported. ALLOWED_TARGET_HOSTNAMES = {"example.com", "www.example.com"} +# Optional source allowlist mode. By default, every valid public source is +# accepted unless its hostname appears in the admin-managed blocklist. +# When enabled, a source must match an allowed domain; blocked entries always +# override allowed entries. Manage both lists in the authenticated "Source rules" +# page. Entries include subdomains; an empty allowlist rejects all sources. +SOURCE_ALLOWLIST_ENABLED = False + # Maximum size of an incoming HTTP request body, including form encoding. This # global Flask limit also applies to login and administration routes. MAX_CONTENT_LENGTH = 64 * 1024 |
