Add: periodically audit domain registrations

Reviewed main.go, internal/dlc rule types and cmd/datdump: existing commands generate lists but do not audit registrations. Reuse rule constants and add an isolated checker with ICANN public suffix boundaries, registry RDAP, DNS confirmation and rule history.

Run a weekly advisory workflow and preserve source evidence for manual review. Compile all commands in PR CI. Go package build passed; test execution is left to the contributor.
This commit is contained in:
EpLiar committed 2026-11-07 12:18:28 +08:00
1 parent 16fd8005d3
commit eb7c97de44
12 files changed
+1214

No files matched your search

+54
View File
@@ -0,0 +1,54 @@
name: Audit domain registrations
on:
schedule:
- cron: "17 3 * * 1"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
audit:
name: Audit domain registrations
if: github.event_name != 'schedule' || github.repository == 'v2fly/domain-list-community'
runs-on: ubuntu-latest
timeout-minutes: 330
steps:
- name: Checkout codebase and domain history
uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
- name: Audit domain registrations
run: go run ./cmd/domaincheck --outputdir=domain-audit --timeout=5h
- name: Publish audit summary
if: always()
run: |
if [ -f domain-audit/summary.md ]; then
cat domain-audit/summary.md >> "$GITHUB_STEP_SUMMARY"
else
echo "::warning::The domain audit did not produce a summary. Check the audit logs."
echo "The domain audit did not produce a summary. Check the audit logs." >> "$GITHUB_STEP_SUMMARY"
fi
- name: Upload audit report
if: always()
uses: actions/upload-artifact@v7
with:
name: domain-audit-${{ github.run_number }}
path: |
domain-audit/report.json
domain-audit/summary.md
if-no-files-found: error
+4
View File
@@ -27,6 +27,10 @@ jobs:
go-version-file: test/go.mod
cache-dependency-path: test/go.sum
- name: Build Go commands
working-directory: test
run: go build ./...
- name: Build .dat and .yml
run: |
[ -d ./base/data/ ] && [ -d ./test/data/ ] || exit 1