How do I use notation key add
?
#460
-
I want to use notation to sign artifacts (an image & an SPDX SBOM) with a key that I've created via openssl. Effectively I want the same behavior as Previously in notation key add ~/.config/notation/localkeys/$REGISTRY.key ~/.config/notation/localkeys/$REGISTRY.crt --name $REGISTRY That command has changed, and I'm not sure how to add and use my key in the latest revision. Ex: @noelbundick-msft ➜ /workspaces/pipeline $ notation key add noelwcus.azurecr.io
Error: required flag(s) "plugin" not set I'm not sure what a plugin is or why I need one @noelbundick-msft ➜ /workspaces/pipeline $ notation key add noelwcus.azurecr.io --plugin=''
Error: plugin name cannot be empty
# just guessing at commands before diving into source/commit history
@noelbundick-msft ➜ /workspaces/pipeline $ notation key add noelwcus.azurecr.io --plugin='default' --id=noelwcus.azurecr.io
Error: plugin not found I browsed for docs and came up short, and thought I'd ask here before delving deeply into the codebase. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
Beta Was this translation helpful? Give feedback.
notation
doesn't support sign using local key for now. To use a plugin, you can follow this document https://hackmd.io/EMkTlPleSQqL-Ej03esL8w?view for Azure key vault plugin. There will be Azure official document later.