fetchit
fetchit copied to clipboard
verify all git artifacts using sigstore/gitsign
As a security minded individual, I would like to ensure artifacts are signed before pulling them onto a fetchit system.
-
Would like to be able to provide a cosign public key to ensure that an image has been signed before running in an environment.
AC: Verify a public key can be provided to verify images Verify that if a public key is provided and the signature does not match the image will not start Verify that if a public key is not provided images launch as planned
-
Or, I'd like to verify that all git commits being pulled in are verified https://github.com/sigstore/gitsign
https://pkg.go.dev/github.com/sigstore/cosign/pkg/cosign#VerifyImageSignature
I've updated this issue to verify git commits, instead - https://github.com/sigstore/gitsign has been officially released and it will offer what we need to verify what's being pulled into the system.
Can now opt-in to sigstore/gitsign verify with https://github.com/containers/fetchit/pull/224 and https://github.com/containers/fetchit/pull/230, and with targetConfig like so:
targetConfigs:
- url: https://github.com/sallyom/fetchit
verifyCommitsInfo:
GitsignVerify: true
filetransfer:
- name: ft-ex
targetPath: examples/filetransfer
destinationDirectory: /tmp/ft
schedule: "*/1 * * * *"
branch: gitsign
leaving this open to add other options for verifying commits