summaryrefslogtreecommitdiff
path: root/pkg/domain
diff options
context:
space:
mode:
authorJosé Guilherme Vanz <jvanz@jvanz.com>2021-07-06 21:00:03 -0300
committerDaniel J Walsh <dwalsh@redhat.com>2021-11-11 15:11:19 -0500
commit6762d5e2381d79c26ecabac8c83d31d1f49e1325 (patch)
treee14bef604ca3723c866b15691ba3a115ebd2997e /pkg/domain
parentd6d89fa79f1cb785e2f3f6b8d2295b97b19066e9 (diff)
downloadpodman-6762d5e2381d79c26ecabac8c83d31d1f49e1325.tar.gz
podman-6762d5e2381d79c26ecabac8c83d31d1f49e1325.tar.bz2
podman-6762d5e2381d79c26ecabac8c83d31d1f49e1325.zip
--authfile command line argument for image sign command.
Adds the --authfile command line argument to allow users to use alternative authfile paths when signing images. Replaces: https://github.com/containers/podman/pull/10975 Fixes: https://github.com/containers/podman/issues/10866 Signed-off-by: José Guilherme Vanz <jvanz@jvanz.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/domain')
-rw-r--r--pkg/domain/entities/images.go1
-rw-r--r--pkg/domain/infra/abi/images.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/pkg/domain/entities/images.go b/pkg/domain/entities/images.go
index 7583ce442..54f7b5d45 100644
--- a/pkg/domain/entities/images.go
+++ b/pkg/domain/entities/images.go
@@ -373,6 +373,7 @@ type SignOptions struct {
Directory string
SignBy string
CertDir string
+ Authfile string
All bool
}
diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go
index 5c0227986..8b44b869a 100644
--- a/pkg/domain/infra/abi/images.go
+++ b/pkg/domain/infra/abi/images.go
@@ -641,6 +641,7 @@ func (ir *ImageEngine) Sign(ctx context.Context, names []string, options entitie
}
sc := ir.Libpod.SystemContext()
sc.DockerCertPath = options.CertDir
+ sc.AuthFilePath = options.Authfile
for _, signimage := range names {
err = func() error {