Skip to content

CliIntegrationSpec

Functions

  • new - Validated constructor.
  • resolve_args - Classifies an invocation as sensitive, safe to pass through, or

firma_secret_provider::spec::cli::CliIntegrationSpec::new

Section titled “firma_secret_provider::spec::cli::CliIntegrationSpec::new”

Function

Validated constructor.

Enforces the same cross-field checks as TryFrom<CliSecretProviderConfig>: empty option names, allow_attached_value without takes_value, and conflicting [FlagSpec] definitions.

Returns [CliIntegrationConfigError] when cross-field validation fails.

fn new(binary_name: String, provider_id: String, credential_env_vars: Vec<String>, stripped_options: Vec<FlagSpec>, forbidden_options: Vec<FlagSpec>, matchers: Vec<CliMatcherRule<Matcher>>) -> Result<Self, CliIntegrationConfigError>

firma_secret_provider::spec::cli::CliIntegrationSpec::resolve_args

Section titled “firma_secret_provider::spec::cli::CliIntegrationSpec::resolve_args”

Function

Classifies an invocation as sensitive, safe to pass through, or blocked. Malformed recognized options fail closed.

fn resolve_args(self: &Self, args: &[String]) -> MatchingResolution<Matcher>