Hi @ThitLonGiaCay ,
Thanks for the inquiry.
First and foremost, please note that research-backed best practices are to use containment instead of download blocking. Download blocking actually lowers the organizational security posture and has several other negative side-effects.
"Download Blocking" of Container Images
Blocking pulls of container images is not supported. Unlike blocking package downloads, blocking manifest requests have proven to cause serious negative side-effects; we had experimented with it in earlier versions of ProGet and it was a feature we decided not to implement given today's ecosystem.
In addition to being extremely difficult to troubleshoot due to increasingly complex Docker configuration (chained/fat manifests), images are often pulled/re-pulled in production environments. That means some AI-discovered nonexploitable vulnerability that entered the ecosystem can crash a production environment shortly after some random job downloads the latest updates.
As I'm sure you can understand, that's not a support scenario we have any interest in enabling :)
The Better Approach: Container Auditing
You can definitely implement a "blocking workflow" by using pgutil before pulling; our solution for this is documented here: https://docs.inedo.com/docs/proget/api/containers/audit-image
We also intend to make some additional improvements in ProGet 2027 for container compliance monitoring.
Programmatically/API Settings
Because these settings are rarely configured programmatically (and doing so requires a complex UI), we have not invested in a first-class API to configure policies.
Global property Feeds.AllowNoncompliantDownloads can be set with pgutil settings
Feed-level property can be set via Native API Feeds_SetFeedProperty
Package status (including "bypassing compliance") can only be set in the UI
Download blocking is not a recommend setting (especially in today's ecosystem), so it's not a priority for us to turn into an API. Package status, likewise, should be overridden only in extreme circumstances and is not something that we want to encourage (or enable) to be part of a ordinary workflow.
Return code on Blocked Packages
400 is the intended behavior and I couldn't locate 404 in the docs. However, when I Google'd it, it looks like AI believes a 404 is the result, perhaps due to an Atlassian forums post?
[image: 1795660174706-02e34762-f6d1-4625-a324-bf1d47ae5b9c-image.jpeg]
If a 404 is indeed mentioned somewhere in our docs, please let us know where and I'll fix it. That information is incorrect. It's always been a 400 error.
Thanks,
Alana