From 34ce2176eec653e2d678f8ebf9bf8d5c6aa7eb30 Mon Sep 17 00:00:00 2001 From: mrlutik Date: Tue, 21 Nov 2023 20:45:33 +0100 Subject: [PATCH 1/3] Add yes flag desc Signed-off-by: mrlutik --- content/en/signing/signing_with_blobs.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/en/signing/signing_with_blobs.md b/content/en/signing/signing_with_blobs.md index 764bf94b..7a9c9a3e 100644 --- a/content/en/signing/signing_with_blobs.md +++ b/content/en/signing/signing_with_blobs.md @@ -96,3 +96,10 @@ You can sign it with the normal `cosign sign` command and flags: ```shell $ cosign sign gcr.io/user/demo/artifact ``` +## Non-Interactive Signing with the Yes Flag + +In situations where automated signing is required, such as within CI/CD pipelines, the --yes flag becomes essential. This flag, when used with signing commands, bypasses any confirmation prompts, enabling a smooth, uninterrupted signing process. This is particularly crucial in automated environments where manual input isn't feasible. The --yes flag ensures that your signing operations can proceed without manual intervention, maintaining the efficiency and speed of your automated workflows. + +``` +cosign sign --yes -key cosign.key myregistry/myimage:latest +``` \ No newline at end of file From 1bb1d3af6be680650de866cc3116184e5365aeee Mon Sep 17 00:00:00 2001 From: mrlutik Date: Tue, 21 Nov 2023 21:24:07 +0100 Subject: [PATCH 2/3] Fix typo in shell command Signed-off-by: mrlutik --- content/en/signing/signing_with_blobs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/signing/signing_with_blobs.md b/content/en/signing/signing_with_blobs.md index 7a9c9a3e..7a38184d 100644 --- a/content/en/signing/signing_with_blobs.md +++ b/content/en/signing/signing_with_blobs.md @@ -101,5 +101,5 @@ $ cosign sign gcr.io/user/demo/artifact In situations where automated signing is required, such as within CI/CD pipelines, the --yes flag becomes essential. This flag, when used with signing commands, bypasses any confirmation prompts, enabling a smooth, uninterrupted signing process. This is particularly crucial in automated environments where manual input isn't feasible. The --yes flag ensures that your signing operations can proceed without manual intervention, maintaining the efficiency and speed of your automated workflows. ``` -cosign sign --yes -key cosign.key myregistry/myimage:latest +cosign sign-blob --yes -key cosign.key myregistry/myimage:latest ``` \ No newline at end of file From 3f9b994b3c656ba43962f7c6fa1268be78c758e4 Mon Sep 17 00:00:00 2001 From: Eugene <70693118+MrLutik@users.noreply.github.com> Date: Wed, 22 Nov 2023 10:47:45 +0100 Subject: [PATCH 3/3] Add backticks to the flag representation in description Co-authored-by: ltagliaferri Signed-off-by: Eugene <70693118+MrLutik@users.noreply.github.com> --- content/en/signing/signing_with_blobs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/signing/signing_with_blobs.md b/content/en/signing/signing_with_blobs.md index 7a38184d..4a371640 100644 --- a/content/en/signing/signing_with_blobs.md +++ b/content/en/signing/signing_with_blobs.md @@ -98,7 +98,7 @@ $ cosign sign gcr.io/user/demo/artifact ``` ## Non-Interactive Signing with the Yes Flag -In situations where automated signing is required, such as within CI/CD pipelines, the --yes flag becomes essential. This flag, when used with signing commands, bypasses any confirmation prompts, enabling a smooth, uninterrupted signing process. This is particularly crucial in automated environments where manual input isn't feasible. The --yes flag ensures that your signing operations can proceed without manual intervention, maintaining the efficiency and speed of your automated workflows. +In situations where automated signing is required, such as within CI/CD pipelines, the `--yes` flag becomes essential. This flag, when used with signing commands, bypasses any confirmation prompts, enabling a smooth, uninterrupted signing process. This is particularly crucial in automated environments where manual input isn't feasible. The `--yes` flag ensures that your signing operations can proceed without manual intervention, maintaining the efficiency and speed of your automated workflows. ``` cosign sign-blob --yes -key cosign.key myregistry/myimage:latest