@@ -285,9 +285,9 @@ def _parser() -> argparse.ArgumentParser:
285
285
help = "The OIDC issuer URL to check for in the certificate's OIDC issuer extension" ,
286
286
)
287
287
verification_options .add_argument (
288
- "--rekor-offline" ,
288
+ "--require- rekor-offline" ,
289
289
action = "store_true" ,
290
- default = _boolify_env ("SIGSTORE_REKOR_OFFLINE " ),
290
+ default = _boolify_env ("SIGSTORE_REQUIRE_REKOR_OFFLINE " ),
291
291
help = "Require offline Rekor verification with a bundle; implied by --rekor-bundle" ,
292
292
)
293
293
@@ -445,8 +445,8 @@ def _sign(args: argparse.Namespace) -> None:
445
445
446
446
447
447
def _verify (args : argparse .Namespace ) -> None :
448
- # The presence of --rekor-bundle implies --rekor-offline.
449
- args .rekor_offline = args .rekor_offline or args .rekor_bundle
448
+ # The presence of --rekor-bundle implies --require- rekor-offline.
449
+ args .require_rekor_offline = args .require_rekor_offline or args .rekor_bundle
450
450
451
451
# Fail if --certificate, --signature, or --rekor-bundle is specified and we
452
452
# have more than one input.
@@ -478,7 +478,7 @@ def _verify(args: argparse.Namespace) -> None:
478
478
missing .append (str (sig ))
479
479
if not cert .is_file ():
480
480
missing .append (str (cert ))
481
- if not bundle .is_file () and args .rekor_offline :
481
+ if not bundle .is_file () and args .require_rekor_offline :
482
482
# NOTE: We only produce errors on missing bundle files
483
483
# if the user has explicitly requested offline-only verification.
484
484
# Otherwise, we fall back on online verification.
0 commit comments