Skip to content

Commit ea45d3e

Browse files
committed
_cli: add warnings when --rekor-bundle is used
Signed-off-by: William Woodruff <william@trailofbits.com>
1 parent 592ec32 commit ea45d3e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

sigstore/_cli.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,14 @@ def main() -> None:
337337

338338

339339
def _sign(args: argparse.Namespace) -> None:
340+
# `--rekor-bundle` is a temporary option, pending stabilization of the
341+
# Sigstore bundle format.
342+
if args.rekor_bundle:
343+
logger.warning(
344+
"--rekor-bundle is a temporary format, and will be removed in an "
345+
"upcoming release of sigstore-python in favor of Sigstore-style bundles"
346+
)
347+
340348
# `--no-default-files` has no effect on `--{signature,certificate,rekor-bundle}`, but we
341349
# forbid it because it indicates user confusion.
342350
if args.no_default_files and (
@@ -448,6 +456,14 @@ def _sign(args: argparse.Namespace) -> None:
448456

449457

450458
def _verify(args: argparse.Namespace) -> None:
459+
# `--rekor-bundle` is a temporary option, pending stabilization of the
460+
# Sigstore bundle format.
461+
if args.rekor_bundle:
462+
logger.warning(
463+
"--rekor-bundle is a temporary format, and will be removed in an "
464+
"upcoming release of sigstore-python in favor of Sigstore-style bundles"
465+
)
466+
451467
# The presence of --rekor-bundle implies --require-rekor-offline.
452468
args.require_rekor_offline = args.require_rekor_offline or args.rekor_bundle
453469

0 commit comments

Comments
 (0)