Security/Container/Cosign: Difference between revisions
Jump to navigation
Jump to search
| Line 13: | Line 13: | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
cosign | cosign generate-key-pair | ||
cosign version | cosign version | ||
cosign --help | cosign --help | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign='top'| | |valign='top' colspan='2'| | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
cosign sign harbor.chorke.org/academia/nginx:1.27-alpine-slim | cosign sign -y harbor.chorke.org/academia/nginx:1.27-alpine-slim | ||
cosign sign harbor.chorke.org/academia/nginx:alpine | cosign sign -y harbor.chorke.org/academia/nginx:alpine | ||
cosign sign harbor.chorke.org/academia/nginx:1.27 | cosign sign -y harbor.chorke.org/academia/nginx:1.27 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign='top'| | |- | ||
|colspan='3'| | |||
---- | |||
|- | |||
|valign='top' colspan='3'| | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
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 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 12:06, 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
| ||
|
| ||
References
|
|
||
|
| ||
|
| ||