栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

云安全容器签名方案cosign使用

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

云安全容器签名方案cosign使用

创建私有仓库或使用现有仓库

1.可以使用dockerhub,然后使用docker login登录

2.

3.

保存凭据

创建仓库,制作标签

签名镜像

生成key

验证

keyless模式

 

ubuntu@ubuntu:~/Desktop$ COSIGN_EXPERIMENTAL=1 ./cosign sign -oidc-issuer "https://oauth2.sigstore.dev/auth" -fulcio-url "https://fulcio.sigstore.dev" -rekor-url "https://rekor.sigstore.dev" docker.io/martinheinz/sigstore-hello:latest
WARNING: the flag -oidc-issuer is deprecated and will be removed in a future release. Please use the flag --oidc-issuer.
WARNING: the flag -fulcio-url is deprecated and will be removed in a future release. Please use the flag --fulcio-url.
WARNING: the flag -rekor-url is deprecated and will be removed in a future release. Please use the flag --rekor-url.
Generating ephemeral keys...
Retrieving signed certificate...
Your browser will now be opened to:
https://oauth2.sigstore.dev/auth/auth?access_type=online&client_id=sigstore&code_challenge=a9N4-pcTtc1Wt1A7qkwb2hOjOMAlUr3potFrrrabfec&code_challenge_method=S256&nonce=28uTcSLco8qO8MwulA1MdCiDPmL&redirect_uri=http%3A%2F%2Flocalhost%3A33663%2Fauth%2Fcallback&response_type=code&scope=openid+email&state=28uTcUCGhUflUIxFjU5oYiWWNUa

Successfully verified SCT...
tlog entry created with index: 2280007
Pushing signature to: index.docker.io/martinheinz/sigstore-hello

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/871591.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号