Skip to content

feat: manage plugin blacklist via dedicated endpoints - #79

Merged
traefiker merged 2 commits into
traefik:masterfrom
mmatur:feat/blacklist-endpoints
Sep 14, 2026
Merged

traefiker merged 2 commits into
traefik:masterfrom
mmatur:feat/blacklist-endpoints

Conversation

@mmatur

@mmatur mmatur commented Jul 22, 2026

Copy link
Copy Markdown
Member

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/repo unique key, plus reason, author, createdAt), a MongoDB store with ListBlacklist, an idempotent UpsertBlacklist (createdAt set only on insert) and DeleteBlacklist, and a unique index on repository. Exposes GET /internal/blacklist, POST /internal/blacklist (upsert, with owner/repo validation) and DELETE /internal/blacklist/{owner}/{repo} (idempotent, always 204), registered as method-aware routes on the stdlib ServeMux because the static blacklist segment conflicts with the /:uuid wildcard of the internal httprouter.

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

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Consumed by Piceus (GET /internal/blacklist) and by the hub-admin management UI, in separate PRs. Deploy this one first.

@mmatur mmatur added kind/enhancement a new or improved feature. status/2-needs-review labels Jul 22, 2026
Comment thread cmd/serve/serve.go Outdated
Comment thread pkg/db/mongodb/blacklistdb.go Outdated
Comment thread pkg/db/mongodb/blacklistdb.go Outdated
Comment thread pkg/db/mongodb/blacklistdb.go Outdated
Comment thread pkg/db/mongodb/blacklistdb.go Outdated
Comment thread pkg/handlers/blacklist.go Outdated
Comment thread pkg/handlers/blacklist.go Outdated
Comment thread pkg/handlers/blacklist.go Outdated
Comment thread pkg/handlers/blacklist.go Outdated
Comment thread pkg/handlers/blacklist.go Outdated
@mmatur
mmatur force-pushed the feat/blacklist-endpoints branch from f525b73 to 9e75a80 Compare July 24, 2026 15:49
@mloiseleur
mloiseleur requested a review from jspdown August 27, 2026 15:09
@mmatur
mmatur force-pushed the feat/blacklist-endpoints branch 2 times, most recently from e95da00 to f383b00 Compare September 14, 2026 10:00
@mmatur
mmatur force-pushed the feat/blacklist-endpoints branch from f383b00 to 6e02ec3 Compare September 14, 2026 13:24
@traefiker
traefiker merged commit 62d86d8 into traefik:master Sep 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement a new or improved feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants