Skip to content

spots: the Spotnet blacklist - #289

Merged
xbmc4lyfe merged 3 commits into
mainfrom
spot-blacklist
Nov 7, 2026
Merged

xbmc4lyfe merged 3 commits into
mainfrom
spot-blacklist

Conversation

@xbmc4lyfe

Copy link
Copy Markdown
Collaborator

What

Atlas now applies the Spotnet blacklist, the same external list Spotweb uses (Services_BWList_Retriever, blacklist_url). The list is XML (<Keys><Key Name="...">MODULUS</Key>...</Keys>) of spotters' public keys, and each key gives a spotter id (header::spotter_id). Spotweb keeps only ids of 3 to 6 characters, and so does Atlas.

  • spotnet::blacklist:
    • fetch reads the list with ureq (60 s timeout, 4 MB cap).
    • parse turns it into spotter ids.
    • replace swaps the main-DB table spot_blacklist (spotter) in one transaction.
    • due and tried handle the once-a-day refresh, stored in meta as spot_blacklist_at.
  • Failures: a failed read, or one that names no spotters (an error page, say), keeps the current list and is tried again a day later.
  • Config: a new [spots] blacklist_url key. It defaults to https://spotlist.store/spotnet/blacklist.xml, and an empty value turns the blacklist off. It is added to config.example.toml.
  • Enforcement: the blacklist goes through the same helper as removals (store::disposed_sql, spots: apply moderators' and spotters' removals #271), so it applies everywhere removals do:
    • a blacklisted spotter's waiting spots aren't fetched;
    • their releases lose the SPOT tag in listings and the Newznab API;
    • their comments are hidden.
  • Release page: it shows SPOT REMOVED, and the caution box says the spotter is on the blacklist. Removed now has by: RemovedBy { Moderator, Spotter, Blacklist } in place of by_moderator. The release stays.

Measured

  • The list: fetch and parse against the live URL read 86,527 bytes and returned 857 spotter ids. Spotweb's own table holds 855 external blacklist entries.
  • Prod (read-only): 6 of the 224 spotters in prod's spots_seen are on the list. They have 15 waiting spots and 6 saved ones.

Tests

  • blacklist tests:
    • parsing two real entries, a duplicate, a blank entry and a non-key element;
    • replacing the list, and keeping it when a read comes back empty;
    • the refresh timing.
  • The removal store test now also covers a blacklisted spotter: no tag, the page reason, and not fetched.
  • The web test covers the blacklist note, with no date.
  • cargo test --lib passes.

Screenshots

These come from a local test home with a made-up spot whose spotter is listed:

🤖 Generated with Claude Code

Reads Spotweb's blacklist (spotlist.store, a list of spotters' public
keys) once a day into spot_blacklist by spotter id. A blacklisted
spotter's spots aren't fetched, their releases lose the spot tag, their
comments are hidden, and the release page says why. [spots]
blacklist_url sets the list; empty turns it off. A failed or empty read
keeps the list kept and tries again a day later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xbmc4lyfe

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T23:55:49.213130Z 53c6f78 Manual request
🔒 Security Review ❌ Failed 2026-11-07T23:54:31.776218Z
We couldn’t complete this review. Comment @codex security review to try again.
53c6f78 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b997db4c7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/spotnet/ingest.rs Resolved
xbmc4lyfe and others added 2 commits November 7, 2026 17:53
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xbmc4lyfe

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 53c6f78d41

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@xbmc4lyfe

Copy link
Copy Markdown
Collaborator Author

Codex re-review is clean on 53c6f78 (the security review couldn't run: usage limit). Its one thread is fixed and resolved, and the branch is current with main. Merging.

@xbmc4lyfe
xbmc4lyfe marked this pull request as ready for review November 7, 2026 23:56
@xbmc4lyfe
xbmc4lyfe merged commit 812a65b into main Nov 7, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@xbmc4lyfe
xbmc4lyfe deleted the spot-blacklist branch November 7, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant