You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,12 @@ By default, this template uses the base image `quay.io/almalinuxorg/atomic-deskt
22
22
23
23
To switch images, change the `FROM` line in the [Dockerfile](Dockerfile). If your image use a different signing key, download the new Cosign public key and specify its name in the `upstream-public-key` parameter in `.github/workflows/build.yml`, or remove the parameter to disable key verification.
24
24
25
-
### Setting up Cosign (Optional)
25
+
### Setting up Cosign (Optional, highly recommended)
26
+
27
+
Container signing is important for end-user security and is fully supported by
28
+
the CI. By default, the CI will check the signature of your base image to make
29
+
sure it hasn't been tampered with. You can also sign your own image to give
30
+
your users the same security guarantees.
26
31
27
32
If you'd like to sign your images using Cosign:
28
33
@@ -31,8 +36,11 @@ If you'd like to sign your images using Cosign:
31
36
podman run --rm -it -v /tmp:/cosign-keys bitnami/cosign generate-key-pair
32
37
```
33
38
Leave the password blank. The keys will be in `/tmp/cosign.{key,pub}`.
34
-
2. Add `cosign.pub` to the repository as `/cosign.pub`, commit, and push. This file is public and needed for signature verification.
35
-
3. In GitHub repo settings, go to "Secrets and variables" > "Actions". Create a secret called `SIGNING_SECRET` and paste the contents of `cosign.key`. Store `cosign.key` securely and delete it from `/tmp`.
39
+
2. Add `cosign.pub` to the repository as `/cosign.pub`, commit, and push. This file is public and needed for signature verification. **NEVER** commit your `cosign.key` to the repo!!
40
+
3. In GitHub repo settings, go to "Secrets and variables" > "Actions". Create a secret called `SIGNING_SECRET` and paste the contents of `cosign.key`. Store `cosign.key` securely and delete it from `/tmp`. You can also do this via the GitHub CLI:
0 commit comments