Skip to content

Commit aaf54db

Browse files
committed
cosign: switch to the new bundle signature format [ci skip]
The signature suffix (`.sigstore`) is subject to change. This is so new, there is no documentation yet. Existing documentation and its pending update do not mention or specify a suffix (or I couldn't find it.) An internet or GitHub search also didn't help. I've seen so far: .sigstore.json, .bundle, .sig TODO: also update this in curl/curl-www once decided or before the next release latest. It's also an option to stay with the `.cosign` suffix and format, though not recommended. Ref: sigstore/cosign#4440 Ref: sigstore/sigstore-blog#89 Ref: sigstore/docs#385
1 parent 1c18c0d commit aaf54db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0
2020
```
2121
Verify using:
2222
```
23-
cosign verify-blob --key cosign.pub.asc --signature curl-8.14.0-win64-mingw.tar.xz.cosign curl-8.14.0-win64-mingw.tar.xz
23+
cosign verify-blob --key cosign.pub.asc --bundle curl-8.14.0-win64-mingw.tar.xz.sigstore curl-8.14.0-win64-mingw.tar.xz
2424
```
2525
- Standalone `curl` tool and `libcurl` DLL. Static libraries included.
2626
- Required: Windows Vista with

_sign-pkg-cosign.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ if [ -n "${COSIGN_PKG_KEY:-}" ] && \
1515
file="$1"
1616
echo "Package signing with cosign: '${file}'"
1717
tr -d '\n' <<EOF | \
18-
cosign sign-blob -y --key="${COSIGN_PKG_KEY}" --output-signature="${file}.cosign" "${file}"
18+
cosign sign-blob -y --key="${COSIGN_PKG_KEY}" --new-bundle-format=true --bundle="${file}".sigstore "${file}"
1919
${COSIGN_PKG_KEY_PASS}
2020
EOF
21-
chmod 0644 "${file}.cosign" # cosign creates it with 0600
21+
chmod 0644 "${file}".sigstore # cosign creates it with 0600
2222
fi

0 commit comments

Comments
 (0)