Repository navigation
feat: support Notation verification plugins and pluginConfig - #3133
Open
shivanshs9 wants to merge 2 commits into
Open
shivanshs9 wants to merge 2 commits into
shivanshs9 wants to merge 2 commits into
Conversation
Add optional pluginDirectory and pluginConfig to the notation verifier so signatures that name a verification plugin (for example AWS Signer) can be verified, including cross-region aws-region settings. Signed-off-by: Shivansh Saini <shivanshs9@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
shivanshs9
requested review from
akashsinghal,
binbin-li,
fseldow,
jimmyraywv,
luisdlp,
susanshi and
toddysm
as code owners
November 19, 2026 10:57
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The tests do not verify that the configured aws-region reaches the plugin, allowing regressions in cross-region AWS Signer verification to go undetected.
1 open issue
What changed in this PR
Adds optional Notation verification-plugin support to Ratify v2, enabling verification of signatures that require external plugins, including AWS Signer. Plugin binaries must already be present in the image; chart support for signingAuthority trust stores remains separate.
Changes:
- Adds
pluginDirectoryvalidation and forwardspluginConfigto the Notation verifier. - Exposes both options through Helm values and documents plugin setup.
- Adds fake-plugin verification tests and Helm rendering coverage, using a temporary verifier dependency replacement.
| File | Description |
|---|---|
test/bats/base-test.bats |
Tests Helm rendering of plugin settings. |
internal/verifier/notation/register.go |
Initializes the plugin manager and forwards configuration. |
internal/verifier/notation/plugin_test.go |
Tests plugin verification and configuration handling. |
go.sum |
Records checksums for the temporary dependency fork. |
go.mod |
Temporarily replaces the Notation verifier dependency. |
docs/design/Notation Verification Plugins.md |
Documents plugin setup, scope, and security considerations. |
deployments/ratify-gatekeeper-provider/values.yaml |
Defines optional plugin values. |
deployments/ratify-gatekeeper-provider/templates/executor.yaml |
Renders plugin settings into the Executor. |
deployments/ratify-gatekeeper-provider/README.md |
Documents the new Helm values. |
Review effort: Balanced
Extend the verification-plugin test so success needs the configured aws-region in the plugin request, and refuse when it is missing or wrong. Signed-off-by: Shivansh Saini <shivanshs9@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This branch has not been deployed
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.

Description
Ratify v2 creates the Notation verifier without a plugin manager, so signatures that carry
io.cncf.notary.verificationPlugin(including all AWS Signer signatures) fail withplugin unsupported due to nil verifier.pluginManager.This PR adds:
pluginDirectoryon the notation verifier → NotationPluginManager(notation plugin installlayout)pluginConfigforwarded into verification (needs ratify-verifier-go change below), e.g.aws-region: us-east-1notation.pluginDirectory/notation.pluginConfigdocs/design/Notation Verification Plugins.mdThe chart still does not ship or mount plugin binaries; the image must already contain them. Trust store type
signingAuthorityremains with #3116.Which issue(s) does this PR resolve?
Resolves #3131
Depends on: notaryproject/ratify-verifier-go#91 for
PluginConfigNote for reviewers:
go.modcurrently hasreplace ... => github.com/shivanshs9/ratify-verifier-go/notation@2096e96...so CI can build before the verifier-go PR merges.I will replace that with the official module version once it is available.
AWS Signer plugin also depends on PR #3116 for trust store type
signingAuthorityin the chart.Type of change
Testing and verification
go test ./internal/verifier/notation/ -count=1go build ./cmd/ratify-gatekeeper-provider ./cmd/ratifyhelm templaterendering checks forpluginDirectory/pluginConfig(bats test added; bats not run in this environment)Checklist
Post merge requirements
Helm Chart Change