@@ -75,8 +75,6 @@ def parse_args():
75
75
"public keys to use for signature verification" ,
76
76
default = "/etc/pki/rpm-gpg" )
77
77
robosig .add_argument ("--s3-sigstore" , help = "bucket and prefix to S3 sigstore" )
78
- robosig .add_argument ("--manifest-list-digest" , metavar = "ALGO:DIGEST" ,
79
- help = "digest to manifest list to also sign" )
80
78
robosig .add_argument ("--verify-only" , action = 'store_true' ,
81
79
help = "verify only that the sigs are valid and make public" )
82
80
robosig .set_defaults (func = cmd_robosignatory )
@@ -313,6 +311,7 @@ def robosign_oci(args, s3, build, gpgkey):
313
311
# in containers-signature(5) to refer to how users will actually be pulling
314
312
# the image (which is usually by tag).
315
313
identities = {}
314
+ manifest_list_digest = None
316
315
for arch in builds .get_build_arches (args .build ):
317
316
build = builds .get_build_meta (args .build , arch )
318
317
image = build .get ('base-oscontainer' )
@@ -325,15 +324,19 @@ def robosign_oci(args, s3, build, gpgkey):
325
324
for tag in image ['tags' ]:
326
325
identity = f"{ image ['image' ]} :{ tag } "
327
326
identities .setdefault (identity , []).append (image ['digest' ])
327
+ print (f"Signing for { identity } with digest { image ['digest' ]} ({ arch } )" )
328
+ if manifest_list_digest is None :
329
+ manifest_list_digest = image .get ('manifest-list-digest' )
328
330
329
331
# For the manifest list digest, reuse the tags from the x86_64 build. As
330
332
# mentioned above, it's the same tags on all arches.
331
- if args . manifest_list_digest :
333
+ if manifest_list_digest :
332
334
build = builds .get_build_meta (args .build , 'x86_64' )
333
335
image = build .get ('base-oscontainer' )
334
336
for tag in image ['tags' ]:
335
337
identity = f"{ image ['image' ]} :{ tag } "
336
- identities [identity ].append (args .manifest_list_digest )
338
+ identities [identity ].append (manifest_list_digest )
339
+ print (f"Signing for { identity } with digest { manifest_list_digest } (manifest list)" )
337
340
338
341
# add the git commit of ourselves in the signatures for bookkeeping
339
342
creator = 'coreos-assembler'
0 commit comments