Security/Container/Cosign: Difference between revisions
Jump to navigation
Jump to search
| Line 34: | Line 34: | ||
cosign sign -y --key cosign.key harbor.chorke.org/academia/nginx:alpine | cosign sign -y --key cosign.key harbor.chorke.org/academia/nginx:alpine | ||
cosign sign -y --key cosign.key harbor.chorke.org/academia/nginx:1.27 | cosign sign -y --key cosign.key harbor.chorke.org/academia/nginx:1.27 | ||
</syntaxhighlight> | |||
|- | |||
|colspan='3'| | |||
---- | |||
|- | |||
|valign='top' colspan='3'| | |||
<syntaxhighlight lang="bash"> | |||
docker inspect harbor.chorke.org/academia/nginx:1.27-alpine-slim|jq -r '.[0].RepoDigests[0]' | |||
docker inspect harbor.chorke.org/academia/nginx:1.27-alpine-slim|jq -r '.[0].RepoDigests[ ]' | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 41: | Line 51: | ||
|- | |- | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="yaml"> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 23:56, 25 June 2025
cat <<'EXE'| sudo bash
wget -cq https://github.com/sigstore/cosign/releases/download/v2.5.0/cosign-linux-amd64 -P ${HOME}/Downloads
mv ${HOME}/Downloads/cosign-linux-amd64 /usr/local/bin/cosign
chmod +x /usr/local/bin/cosign
cosign version
cosign --help
EXE
Playground
cosign generate-key-pair
cosign version
cosign --help
|
cosign sign -y harbor.chorke.org/academia/nginx:1.27-alpine-slim
cosign sign -y harbor.chorke.org/academia/nginx:alpine
cosign sign -y harbor.chorke.org/academia/nginx:1.27
| |
|
| ||
cosign sign -y --key cosign.key harbor.chorke.org/academia/nginx:1.27-alpine-slim
cosign sign -y --key cosign.key harbor.chorke.org/academia/nginx:alpine
cosign sign -y --key cosign.key harbor.chorke.org/academia/nginx:1.27
| ||
|
| ||
docker inspect harbor.chorke.org/academia/nginx:1.27-alpine-slim|jq -r '.[0].RepoDigests[0]'
docker inspect harbor.chorke.org/academia/nginx:1.27-alpine-slim|jq -r '.[0].RepoDigests[ ]'
| ||
|
| ||
References
|
|
||
|
| ||
|
| ||