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

--timeout flag is not useful in verify* commands. #3390

Closed
zhaoyonghe opened this issue Nov 27, 2023 · 0 comments · Fixed by #3391
Closed

--timeout flag is not useful in verify* commands. #3390

zhaoyonghe opened this issue Nov 27, 2023 · 0 comments · Fixed by #3391
Labels
bug Something isn't working

Comments

@zhaoyonghe
Copy link
Contributor

Description

--timeout flag is not useful in verify* commands.

For example, when there is a network issue (not connecting to the company VPN but still try to access the internal service), even if I set --timeout 5s, the cosign verify will still hang for a long time (about one minute in my case) until erroring out.

$ ./cosign verify --timeout 5s internal.registry.com/image-name:tag
Error: Get "https://internal.registry.com/v2/": dial tcp <ip address>: i/o timeout
main.go:69: error during command execution: Get "https://internal.registry.com/v2/": dial tcp <ip address>: i/o timeout

Version

GitVersion:    v2.2.1-24-gda53b08c
GitCommit:     da53b08cb543117f817950fb915a57e3c421d3af
GitTreeState:  clean
BuildDate:     2023-11-27T17:23:19Z
GoVersion:     go1.21.1
Compiler:      gc
Platform:      darwin/arm64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant