Skip to content

Missing Policy configuration, no demo or introduction in the document #4322

Closed Answered by milosgajdos
zhangguanzhang asked this question in Q&A
Discussion options

You must be logged in to vote

You are right I believe there was never any documentation about policies so I'll try to give you a very short description.

Policies define registry authorization behaviour for different type of API resource classes in registry.

// Classes is a list of repository classes which the
// registry allows content for. This class is matched
// against the configuration media type inside uploaded
// manifests. When non-empty, the registry will enforce
// the class in authorized resources.

Resource class is basically a type of resource determined by mediaType of the content (we mean the config MediaType in the content manifest). There are currently only 2 classes recognised:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zhangguanzhang
Comment options

Answer selected by zhangguanzhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants