Allowlist safety net + self-serve ActionKit import#2
Merged
jordankrueger merged 3 commits intomainfrom Apr 27, 2026
Merged
Conversation
sources/allowlist.txt lists ~37 major email providers (Gmail, Outlook, Yahoo, iCloud + privaterelay, AOL, Proton, GMX/Web.de, Orange/Laposte, Mail.ru/Yandex, QQ/163, Naver/Hanmail, Rediffmail). build.py filters these out of every data/*.txt output before writing, regardless of upstream contents. A self-test re-reads each output and raises if any allowlist domain leaked through, so a poisoned upstream feed cannot silently ship a major provider as a "bad" domain. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replaces "ask the Walkers" as the recommended bulk-import path. AK support confirmed /rest/v1/blackholeddomain/ as the supported endpoint; this ships the tooling so non-technical admins can use it without writing code. - scripts/import_to_actionkit.py: stdlib-only, idempotent. GETs the existing list (paginated) then POSTs only new domains. Reads creds from AK_INSTANCE / AK_USERNAME / AK_PASSWORD env vars. Polite rate. - .github/workflows/import-to-actionkit.yml: workflow_dispatch trigger, optional rebuild-first checkbox, secrets-driven, fails fast with a clear message if any required secret is missing. - integrations/actionkit-self-serve.md: 10-minute step-by-step guide for non-technical admins. Fork → set 3 secrets → click Run workflow. Includes troubleshooting + privacy note. - integrations/actionkit.md: rewritten to point at the self-serve guide as the recommended path. Local script remains for admins who'd rather not put credentials in GitHub. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Two pieces of pre-public hardening for the suppression list:
Top-providers allowlist at
sources/allowlist.txt(~37 major providers includingprivaterelay.appleid.com).build.pystrips these from everydata/*.txtoutput, with a belt-and-suspenders self-test that fails the build if any allowlist domain leaks through. Defends against upstream feed poisoning ever shipping a major provider as a "bad" domain.Self-serve ActionKit import — replaces "ask the Walkers" as the recommended bulk-import path. AK support confirmed
/rest/v1/blackholeddomain/is the supported endpoint; this PR ships the tooling so non-technical admins can use it without writing code.scripts/import_to_actionkit.py— stdlib-only, idempotent. GETs existing list, diffs, POSTs only new domains..github/workflows/import-to-actionkit.yml—workflow_dispatchtrigger, secrets-driven, optional rebuild-first.integrations/actionkit-self-serve.md— 10-min step-by-step guide for non-technical admins (fork → 3 secrets → click).integrations/actionkit.md— rewritten to point at the self-serve guide as the primary path.Test plan
python3 scripts/build.pyruns cleanly with allowlist applied; output still ~66k domains; no major providers indata/combined.txtordata/typos.txtimport_to_actionkit.pysyntax valid; reads creds from env; bails with clear message if secrets missingNotes
data/*.txtnot committed in this PR — the nightlyrebuild.ymlaction will regenerate them on the next run, picking up the allowlist filter then.CLAUDE.mdis gitignored (Claude Code working doc, not part of the public repo).🤖 Generated with Claude Code