added --max-validation-response-length <BYTES>

This commit is contained in:
Mick Grove 2026-03-16 22:25:32 -07:00
commit f0a3bee587
22 changed files with 109 additions and 15 deletions

View file

@ -119,6 +119,16 @@ pub struct ScanArgs {
#[arg(global = true, long, default_value_t = false)]
pub full_validation_response: bool,
/// Maximum bytes to store from validation response bodies (0 = unlimited).
/// Overridden by --full-validation-response which forces unlimited storage.
#[arg(
global = true,
long = "max-validation-response-length",
default_value_t = 2048,
value_name = "BYTES"
)]
pub max_validation_response_length: usize,
/// Map validated cloud credentials to their effective identities; use only when
/// authorized for the target account because this triggers additional network
/// requests to determine granted access