feat: manage plugin blacklist via dedicated endpoints - #79
Merged
Merged
Conversation
jspdown
requested changes
Jul 23, 2026
mmatur
force-pushed
the
feat/blacklist-endpoints
branch
from
July 24, 2026 15:49
f525b73 to
9e75a80
Compare
jspdown
approved these changes
Sep 1, 2026
mmatur
force-pushed
the
feat/blacklist-endpoints
branch
2 times, most recently
from
September 14, 2026 10:00
e95da00 to
f383b00
Compare
mmatur
force-pushed
the
feat/blacklist-endpoints
branch
from
September 14, 2026 13:24
f383b00 to
6e02ec3
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.
What does this PR do?
Adds dedicated blacklist endpoints to plugin-service, backed by a new MongoDB collection, so the list of repositories excluded from the Piceus scraping lives in the database instead of a hardcoded map in Piceus. Introduces
db.BlacklistEntry(repository=owner/repounique key, plusreason,author,createdAt), a MongoDB store withListBlacklist, an idempotentUpsertBlacklist(createdAtset only on insert) andDeleteBlacklist, and a unique index onrepository. ExposesGET /internal/blacklist,POST /internal/blacklist(upsert, withowner/repovalidation) andDELETE /internal/blacklist/{owner}/{repo}(idempotent, always 204), registered as method-aware routes on the stdlibServeMuxbecause the staticblacklistsegment conflicts with the/:uuidwildcard of the internalhttprouter.Motivation
Piceus regularly hits repositories it must skip (crashers, repos that don't allow issues, non-plugins). Today that list is hardcoded in
scrapper.go, so every change means editing code and redeploying. Moving it behind plugin-service lets it be managed at runtime — Piceus reads it, hub-admin edits it. Part of traefik/infra#11170.More
Additional Notes
Consumed by Piceus (
GET /internal/blacklist) and by the hub-admin management UI, in separate PRs. Deploy this one first.