Skip to content

Add 'blocklisted' attribute to package version response - #4300

Open
fantastisch wants to merge 7 commits into
dbt-labs:masterfrom
fantastisch:feat/add-blocklist-api
Open

Add 'blocklisted' attribute to package version response#4300
fantastisch wants to merge 7 commits into
dbt-labs:masterfrom
fantastisch:feat/add-blocklist-api

Conversation

@fantastisch

@fantastisch fantastisch commented Feb 2, 2026

Copy link
Copy Markdown

This PR adds a the boolean attribute blocklisted to a package version.

The reason for this contribution is that I am setting up a local dbt package index / registry within my organization private cloud. I am aware of the ability to host the Middleman app ourselves. However, the technology used does not really match my organization's preferred technology stack. Our current approach is to download all "jsons" from https://hub.getdbt.com/api/v1/ and hosts these as static files, and just rewrite the source tarball URLs. This works wonderful, except when implementing this solution we found that blocklisted packages are still downloadable from the dbt Package Hub. My organization prefers not to have the ability to work with blocklisted packages at all, hence our wish to remove the blocklisted packages. We can of course fetch the blocklist from GitHub and implement logic to remove the blocklisted packages. However, if we can just get this from the already existing REST api, by adding the blocklisted attribute for every package version, we have an even simpler solution that other organization trying to achieve the same can could benefit from. Also, if dbt Labs ever changes the blocklist logic, e.g. to block specific package versions, our implementation would not be affected.

@fantastisch
fantastisch requested a review from a team as a code owner February 2, 2026 19:32
@vercel

vercel Bot commented Feb 2, 2026

Copy link
Copy Markdown

@mlacroix-bolcom is attempting to deploy a commit to the dbt-labs Team on Vercel.

A member of the Team first needs to authorize it.

@fantastisch fantastisch changed the title Feat/add blocklist api Add 'blocklisted' attribute to package version REST endpoint Feb 2, 2026
@fantastisch fantastisch changed the title Add 'blocklisted' attribute to package version REST endpoint Add 'blocklisted' attribute to package version response Feb 2, 2026
@vercel

vercel Bot commented Feb 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hub-getdbt-com Ready Ready Preview, Comment Feb 2, 2026 10:57pm

Request Review

@joellabes joellabes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Makes sense! I have checked and adding additional keys to the version dict is OK as long as it's repeated in all entries (source), which is the case here. So happy to get this merged in 🚀

@joellabes
joellabes enabled auto-merge February 3, 2026 00:35
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.

2 participants