From c41cc56dccf4482ccf264d70a7d921501fd7a858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Sat, 11 Mar 2023 00:27:10 +0100 Subject: [PATCH] Include the required --payload option to (cosign attach signature) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miloslav Trmač --- content/en/cosign/sign.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/cosign/sign.md b/content/en/cosign/sign.md index c93ab892..56acf3a1 100644 --- a/content/en/cosign/sign.md +++ b/content/en/cosign/sign.md @@ -182,21 +182,21 @@ The signature is passed via the `--signature` flag. It can be a file: ```shell -$ cosign attach signature --signature file.sig user/demo +$ cosign attach signature --signature file.sig --payload payload.json user/demo Pushing signature to: user/demo:sha256-87ef60f558bad79beea6425a3b28989f01dd417164150ab3baab98dcbf04def8.sig ``` The base64-encoded signature: ```shell -$ cosign attach signature --signature Qr883oPOj0dj82PZ0d9mQ2lrdM0lbyLSXUkjt6ejrxtHxwe7bU6Gr27Sysgk1jagf1htO/gvkkg71oJiwWryCQ== user/demo +$ cosign attach signature --signature Qr883oPOj0dj82PZ0d9mQ2lrdM0lbyLSXUkjt6ejrxtHxwe7bU6Gr27Sysgk1jagf1htO/gvkkg71oJiwWryCQ== --payload payload.json user/demo Pushing signature to: user/demo:sha256-87ef60f558bad79beea6425a3b28989f01dd417164150ab3baab98dcbf04def.sig ``` Or, `-` for `stdin` for chaining from other commands: ```shell -$ cosign generate user/demo | openssl... | cosign attach signature --signature -- user/demo +$ … | openssl... | cosign attach signature --signature - --payload … user/demo Pushing signature to: user/demo:sha256-87ef60f558bad79beea6425a3b28989f01dd417164150ab3baab98dcbf04def.sig ```