Skip to content

SecretStubConfig

Header or query-parameter injection configuration for a secret stub.

Shared

class SecretStubConfig:
SecretStubConfig(credential: str, header: str | None = None, value: str | None = None, param: str | None = None)
NameType or valueDescription
credentialstrStored secret name to inject.
headerstr | NoneHTTP header that receives the credential.
valuestr | NoneTemplate used for the injected header value.
paramstr | NoneQuery parameter that receives the credential.

Convert this secret-stub configuration to the API wire format.

def to_config() -> dict[str, Any]
  • dict[str, Any]