-
Notifications
You must be signed in to change notification settings - Fork 3
refactor: move signature verification logic to its own module #2157
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
refactor: move signature verification logic to its own module #2157
Conversation
gsanchezgavier
commented
Feb 6, 2026
- moves out common signature abstractions so they can be reused by the oci signature verifier.
|
|
||
| /// Fetches all public keys from the JWKS endpoint. If any keys are invalid, they will be | ||
| /// skipped and a warning will be logged. If no valid keys are found, an error will be returned. | ||
| pub fn fetch(&self) -> Result<Vec<PublicKey>, PubKeyFetcherError> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is meant to be used by the new cosign verificator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will probably need to update the signature and receive the url as an argument as we can have different public-key urls for different artifacts. However, we can leave that refactor for a different PR.
675125c to
35c2e11
Compare
agent-control/src/opamp/remote_config/validators/signature/verifier.rs
Outdated
Show resolved
Hide resolved
danielorihuela
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!!! I like it. From my side, we can merge it already.
sigilioso
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀