From 7c29d2360b5172cac13b0c994781af7a3d66fe2c Mon Sep 17 00:00:00 2001 From: Paulo Gomes Date: Tue, 1 Aug 2023 15:08:40 +0100 Subject: [PATCH] doc: Add example of sign-blob with key in env var Signed-off-by: Paulo Gomes --- cmd/cosign/cli/signblob.go | 3 +++ doc/cosign_sign-blob.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cmd/cosign/cli/signblob.go b/cmd/cosign/cli/signblob.go index b09d6ee3b31..50a89f6b076 100644 --- a/cmd/cosign/cli/signblob.go +++ b/cmd/cosign/cli/signblob.go @@ -41,6 +41,9 @@ func SignBlob() *cobra.Command { # sign a blob with a local key pair file cosign sign-blob --key cosign.key + # sign a blob with a key stored in an environment variable + cosign sign-blob --key env://[ENV_VAR] + # sign a blob with a key pair stored in Azure Key Vault cosign sign-blob --key azurekms://[VAULT_NAME][VAULT_URI]/[KEY] diff --git a/doc/cosign_sign-blob.md b/doc/cosign_sign-blob.md index d512d6b6276..d58f0367985 100644 --- a/doc/cosign_sign-blob.md +++ b/doc/cosign_sign-blob.md @@ -17,6 +17,9 @@ cosign sign-blob [flags] # sign a blob with a local key pair file cosign sign-blob --key cosign.key + # sign a blob with a key stored in an environment variable + cosign sign-blob --key env://[ENV_VAR] + # sign a blob with a key pair stored in Azure Key Vault cosign sign-blob --key azurekms://[VAULT_NAME][VAULT_URI]/[KEY]