You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in many CI/CD environments, it would make it much easier on developers and devops folks if we could leverage a typical docker config json file to authenticate to private registry with the cosign cli. This would also streamline any requirement to authenticate to more than one private registry in the same pipeline by defining the credentials in a single file and prevent having to automate the following scenario with some nasty vars:
however the solution would need to be available for all cosign processes that require authentication to a target private registry so cosign attest, cosign sign, cosign clean, etc etc
The text was updated successfully, but these errors were encountered:
as a caveat I do realize that cosign can leverage a file at $HOME/.docker/config.json for an initial login
however that doesn't cover the enhancement request, as even if the $HOME/.docker/config.json exists, an explicit login command is still necessary, in which the end user still needs to specify the target registry and username despite that data already existing in the config.json file
the enhancement would allow for running cosign processes against a private registry by leveraging an authfile (thus preventing the need for an additional preceding login command or copying down contents to a file)
Description
in many CI/CD environments, it would make it much easier on developers and devops folks if we could leverage a typical docker config json file to authenticate to private registry with the cosign cli. This would also streamline any requirement to authenticate to more than one private registry in the same pipeline by defining the credentials in a single file and prevent having to automate the following scenario with some nasty vars:
I am proposing something like this as an example:
cosign clean --authfile $HOME/.docker/config.json -f registry1.com/busybox@sha256oiewjoqiewjgeqoigjeqoigjeroqipgjeroigjqeiopgjqepoiqj
however the solution would need to be available for all cosign processes that require authentication to a target private registry so
cosign attest
,cosign sign
,cosign clean
, etc etcThe text was updated successfully, but these errors were encountered: