spiegel_podman/pkg
Miloslav Trmač 5c95c0920f 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-08-02 16:52:56 +02:00
..
annotations fix a number of godot issues 2022-03-22 13:04:35 +01:00
api Set TLSVerify=true by default for API endpoints 2022-07-26 14:44:05 -04:00
auth pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
autoupdate pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
bindings Semiperiodoc cleanup of obsolete FIXMEs 2022-07-26 14:43:23 -04:00
channel pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
checkpoint pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
copy pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
criu Fix spelling of GetCriuVersion 2022-06-27 12:57:44 +01:00
ctime golangci-lint: enable nolintlint 2022-06-14 16:29:42 +02:00
domain Add support for creating sigstore signatures, and providing passphrases 2022-08-02 16:52:56 +02:00
env pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
errorhandling libpod/runtime: switch to golang native error wrapping 2022-07-04 15:39:00 +02:00
inspect pkg/inspect: remove unused ImageResult type 2022-05-24 16:07:39 +02:00
k8s.io Fix spelling "read only" -> "read-only" 2022-07-02 08:37:43 +02:00
lookup enable gocritic linter 2022-04-26 18:12:22 +02:00
machine machine: Fix check which is always true 2022-07-26 14:45:12 -04:00
namespaces Fix spelling "setup" -> "set up" and similar 2022-06-22 18:39:21 +02:00
parallel pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
ps libpod: switch to golang native error wrapping 2022-07-05 16:06:32 +02:00
rootless pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
rootlessport go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
seccomp pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
servicereaper go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
signal Implement CatchAll and StopCatch in signal_common.go 2022-06-27 13:27:12 +01:00
specgen Update c/common to an unreleased version 2022-08-02 16:52:56 +02:00
specgenutil pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
systemd pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
terminal move golang.org/x/crypto/ssh/terminal to golang.org/x/term 2022-04-22 12:40:52 +02:00
timetype enable gocritic linter 2022-04-26 18:12:22 +02:00
trust pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
util pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00