Signed and Encrypted Container Images
前置作業
透過 podman 對 image 做簽名
$ wget https://github.com/sigstore/cosign/releases/download/v2.2.3/cosign-linux-amd64
$ chmod +x cosign-linux-amd64
$ sudo mv cosign-linux-amd64 /usr/local/bin/cosign$ mkdir consign
$ cd consign/
$ mkdir certs
$ cd certs/
$ cosign generate-key-pair
Enter password for private key:
Enter password for private key again:
Private key written to cosign.key
Public key written to cosign.pub
在 Kubernetes 使用 podman 簽名的 image
透過 podman 加密 image

Last updated




