Repository navigation
fix(cli): register cloud KMS providers - #1892
Merged
Merged
Conversation
Register the Sigstore AWS, Azure, GCP, and HashiCorp Vault providers in the dirctl sign command package so shared client consumers do not inherit their dependency graph. Signed-off-by: Konstantin Baltsat <[email protected]>
Baltsat
force-pushed
the
fix/1882-cloud-kms-providers
branch
from
July 28, 2026 11:09
4d9c074 to
dfa54ee
Compare
Record the indirect cloud KMS dependencies required by the local CLI replacement so repository-wide lint and license dependency discovery can load the tests module. Signed-off-by: Konstantin Baltsat <[email protected]>
Signed-off-by: Konstantin Baltsat <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
csirmazbendeguz
approved these changes
Jul 28, 2026
tkircsi
approved these changes
Jul 28, 2026
Contributor
|
@Baltsat Thanks for your contributing! Could you also update the related documentation in the docs/content/dir? Thanks a lot! |
Signed-off-by: Konstantin Baltsat <[email protected]>
Contributor
Author
|
Thanks — I added the related KMS signing documentation in
Local documentation validation passed: MkDocs build, codespell, pymarkdown, and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dirctl signRoot cause
SignerVerifierFromKeyRefaccepts KMS references, but Sigstore providers register through packageinitfunctions. Thedirctl signprocess did not import those provider packages, so the provider registry was empty and KMS URIs failed as unrecognized schemes.Validation
Using Go 1.26.5 on Linux ARM64:
mainwith all four providers absentgo -C cli test ./cmd/sign -run "^TestKMSProvidersRegistered$" -count=1go -C cli test ./... -count=1go -C cli vet ./...go -C cli build ./...0 issuesgo -C cli mod tidy -diffgo -C tests mod tidy -diffgo -C tests list -deps ./...0 issuesgit diff --checkThe test verifies registration without cloud credentials or network calls. Live signing still depends on each provider’s credentials and service availability.
Implementation and validation used Codex assistance. I reviewed the final diff, dependency placement, and test results.
Fixes #1882