Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can cosign retry on transient failure? #725

Open
funkypenguin opened this issue Jul 25, 2022 · 2 comments
Open

Can cosign retry on transient failure? #725

funkypenguin opened this issue Jul 25, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@funkypenguin
Copy link
Contributor

Describe the feature

We frequently see connaisseur errors due to transient Docker Hub failures. It would be helpful if we could configure a retry limit for cosign, to minimize disruption from these failures.

Optional: Is your feature request related to a problem? Please describe.

A transient failure (for example, on Docker Hub) will cause connaisseur to deny an image.

Optional: Implementation ideas

Allow the operator to specify a retry interval for the cosign verify process.

Optional: Additional context

Here's an example of a transient failure:

*CONNAISSEUR rejected a request: Unexpected Cosign exception for image "docker.io/myorg/bank-vaults:1.15.2": 
Error: Get "https://auth.docker.io/token?scope=repository%3Amyorg%2Fbank-vaults%3Apull&service=registry.docker.io": 
EOF
@xopham xopham added the enhancement New feature or request label Jul 29, 2022
@xopham
Copy link
Collaborator

xopham commented Jul 29, 2022

@funkypenguin I think such a feature could be added. It appears a bit strange to counteract unavailability of an external resource, but still though does not strike me as unreasonable.

@funkypenguin
Copy link
Contributor Author

Thank you :) I'm only seeking a retry if the external resource fails on the first attempt, which (sadly) seems not uncommon with Docker Hub...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants