summaryrefslogtreecommitdiff
path: root/pkg/trust/trust.go
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2022-08-25 01:02:13 +0200
committerMiloslav Trmač <mitr@redhat.com>2022-08-25 01:52:59 +0200
commita7e88c8dacd56d266173d3fa04c66eb1a964b332 (patch)
treec75ced2907e425fe1b7b80ead9eb5004099b9580 /pkg/trust/trust.go
parent752eceaecc979627e998bee2dba8ee9ce47aa5cf (diff)
downloadpodman-a7e88c8dacd56d266173d3fa04c66eb1a964b332.tar.gz
podman-a7e88c8dacd56d266173d3fa04c66eb1a964b332.tar.bz2
podman-a7e88c8dacd56d266173d3fa04c66eb1a964b332.zip
Add support for showing keyPaths in (podman image trust show)
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'pkg/trust/trust.go')
-rw-r--r--pkg/trust/trust.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/trust/trust.go b/pkg/trust/trust.go
index a27ce5a85..07d144bc1 100644
--- a/pkg/trust/trust.go
+++ b/pkg/trust/trust.go
@@ -107,6 +107,9 @@ func descriptionsOfPolicyRequirements(reqs []repoContent, template Policy, regis
if len(repoele.KeyPath) > 0 {
uids = append(uids, idReader(repoele.KeyPath)...)
}
+ for _, path := range repoele.KeyPaths {
+ uids = append(uids, idReader(path)...)
+ }
if len(repoele.KeyData) > 0 {
uids = append(uids, getGPGIdFromKeyData(idReader, repoele.KeyData)...)
}