Closed nunix closed 1 year ago
Makes sense to me
@flavio I took a stab at this. Please let me know if this is what you were thinking or if we want to support a --sha
flag instead.
In this implementation we can either pass the URI or the SHA (truncated to 12 characters) and it uses regex to figure out which is which.
[Actual behaviour] For commands like://
inspect
ormanifest
,kwctl
needs the policy "name", which currently is theThis can bring some confusion, specially when working with the
registry
scheme, as it can lead someone to think that it can be used "online" (read: without pulling the image).[Desired behaviour] Like container images, the policies also have a "hash", so it could be used for working with it locally. Example:
Hope it makes sense and any other way is welcome 😄