sigstore / cosign

Code signing and transparency for containers and binaries
Apache License 2.0
4.4k stars 541 forks source link

Add debug providers command. #3728

Closed wlynch closed 3 months ago

wlynch commented 3 months ago

Summary

When trying to run cosign on a remote workstation it would be nice to have a command to confirm the OIDC provider behavior of what is/isn't enabled and in what order.

This PR adds a new hidden debug subcommand, with a debug providers subcommand that prints out the list of orderd providers and whether or not they are enabled.

Fixes #3727

Release Note

Added cosign debug providers subcommand for showing which OIDC providers are enabled in the environment.

Documentation

n/a (intentionally hiding debug commands)

cpanato commented 3 months ago

Plase check the boilerplate and sign the dco 😄

wlynch commented 3 months ago

Done!

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 66.66667% with 6 lines in your changes missing coverage. Please review.

Project coverage is 40.24%. Comparing base (2ef6022) to head (b96f2a9). Report is 122 commits behind head on main.

Files Patch % Lines
cmd/cosign/cli/debug.go 64.70% 4 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #3728 +/- ## ========================================== + Coverage 40.10% 40.24% +0.14% ========================================== Files 155 158 +3 Lines 10044 10175 +131 ========================================== + Hits 4028 4095 +67 - Misses 5530 5597 +67 + Partials 486 483 -3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.