spiegel_podman/cmd/podman/images
Miloslav Trmač d462da676c Add support for creating sigstore signatures, and providing passphrases
- Allow creating sigstore signatures via --sign-by-sigstore-private-key .
  Like existing --sign-by, it does not work remote (in this case
  because we would have to copy the private key to the server).
- Allow passing a passphrase (which is mandatory for sigstore private keys)
  via --sign-passphrase-file; if it is not provided, prompt interactively.
- Also, use that passphrase for --sign-by as well, allowing non-interactive
  GPG use. (But --sign-passphrase-file can only be used with _one of_
  --sign-by and --sign-by-sigstore-private-key.)

Note that unlike the existing code, (podman build) does not yet
implement sigstore (I'm not sure why it needs to, it seems not to
push images?) because Buildah does not expose the feature yet.

Also, (podman image sign) was not extended to support sigstore.

The test for this follows existing (podman image sign) tests
and doesn't work rootless; that could be improved by exposing
a registries.d override option.

The test for push is getting large; I didn't want to
start yet another registry container, but that would be an
alternative.  In the future, Ginkgo's Ordered/BeforeAll
would allow starting a registry once and using it for two
tests.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2022-07-30 17:26:08 +02:00
..
build.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
buildx.go bump go module to version 4 2022-01-18 12:47:07 +01:00
diff.go Remove unused archive flag from diff commands 2022-05-25 08:50:12 -07:00
exists.go bump go module to version 4 2022-01-18 12:47:07 +01:00
history.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
image.go bump go module to version 4 2022-01-18 12:47:07 +01:00
import.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
inspect.go shell completion: update podman inspect --type options 2022-05-19 14:04:22 +02:00
list.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
load.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
mount.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
prune.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pull.go Podman pull --all-tags shorthand option 2022-07-14 10:54:24 -04:00
push.go Add support for creating sigstore signatures, and providing passphrases 2022-07-30 17:26:08 +02:00
rm.go When removing objects specifying --force,podman should exit with 0 2022-07-26 16:00:42 -04:00
save.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
scp.go podman image scp remote support & podman image scp tagging 2022-06-28 08:54:19 -04:00
search.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
sign.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
tag.go bump go module to version 4 2022-01-18 12:47:07 +01:00
tree.go bump go module to version 4 2022-01-18 12:47:07 +01:00
trust.go bump go module to version 4 2022-01-18 12:47:07 +01:00
trust_set.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
trust_show.go Cleanup display of trust with transports 2022-02-22 15:08:58 -05:00
unmount.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
untag.go bump go module to version 4 2022-01-18 12:47:07 +01:00
utils_linux.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
utils_unsupported.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00