Current CLI contract¶
Entry points and global options¶
The built wheel installs cryptography-suite and cryptosuite-fuzz. The main
parser has global --version, repeatable --experimental {gcm-sst},
--log-level {DEBUG,INFO,WARNING,ERROR}, --show-metrics,
--output-format {text,json}, and deprecated --json.
Commands¶
Command |
Arguments and flags |
Observed/current role |
v4 disposition |
|---|---|---|---|
|
|
Primitive/PQC key files |
Move primitive forms to labs; replace with provider key lifecycle |
|
file; |
File hashing |
Labs/general tooling |
|
required |
TOTP generation |
Labs; secret currently appears in argv |
|
pipeline YAML; |
Emits formal-text stubs |
Labs |
|
required |
Generates executable source |
Labs |
|
optional action |
Lists crypto backend registry |
Rewrite as explicit providers |
|
|
Runs harness subprocess |
Test/labs tooling |
|
action `list |
test |
import |
|
required |
Dynamically loaded in-memory demo |
Remove from stable CLI; replace with real migration |
|
required |
CSF v2 password encryption |
Replace with |
|
same plus |
CSF v2 and explicit legacy decrypt |
Rewrite as |
hidden |
aliases of the file subcommands |
Backward compatibility |
Deprecate/remove through explicit migration plan |
Password source flags are --password-stdin, --password-env NAME,
--password-file PATH, and --password-fd FD; otherwise the CLI prompts
without echo. Environment/file inputs are documented as weaker. No password
value is accepted directly by the top-level file/keygen parsers.
Installed-wheel smoke evidence¶
The built-wheel environment produced:
success:
--version, global and per-command help,backends list, SHA3 file hash, OTP generation, PBKDF2 file encrypt/decrypt, and byte-for-byte file round trip;expected missing-extra errors:
exportwithout PyYAML andgenwithout its codegen dependencies;failure:
keystore listraisedAttributeErroratcryptography_suite/cli.py:1069for undefinedargs.password;failure:
migrate-keys --from file --to hsm --dry-runraisedFileNotFoundErrorbecausesrc/cryptography_suite/cli/migrate_keys.pyis absent from the wheel.
The CLI emits each structured invocation log twice in this environment, showing duplicate logger-handler/configuration behavior. This is an operational baseline observation, not a security finding.
v4 contract requirements¶
The replacement CLI should be limited to envelope operations, inspection, rewrap/rotation, provider diagnostics, controlled migration, policy validation, and machine-readable status. It should define stable exit codes and schemas, avoid secret values and sensitive names in argv/logs, default to no overwrite, use failure-atomic output, and keep all legacy behavior explicitly opt-in.