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)
Name Type or value Description
credential str Stored secret name to inject.
header str | None HTTP header that receives the credential.
value str | None Template used for the injected header value.
param str | None Query parameter that receives the credential.

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

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