Skip to content

RuntimeSecretManager

Configures and inspects secret-injection stubs for a runtime.

Sync · Async counterpart: AsyncRuntimeSecretManager

class RuntimeSecretManager(_SdkOwnedHandle):

This type is created by the SDK; do not construct it directly.

manager = runtime.secrets

Create or replace a secret-injection stub for this runtime.

def set_secret_stub(url: str, path: str | None = None, config: SecretStubConfig | Mapping[str, str] | None = None) -> SecretStubInfo
NameTypeDefaultDescription
urlstrURL whose credentials should be injected.
pathstr | NoneNonePath inside the runtime.
configSecretStubConfig | Mapping[str, str] | NoneNoneSecret-injection configuration.
  • SecretStubInfo

List secret-injection stubs for this runtime.

def list_secret_stubs() -> list[SecretStubInfo]
  • list[SecretStubInfo]

Resolve a runtime secret-injection stub by UUID.

def get_secret_stub(id: str) -> SecretStubInfo
NameTypeDefaultDescription
idstrResource UUID or display name.
  • SecretStubInfo

Delete a runtime secret-injection stub by UUID.

def delete_secret_stub(id: str) -> None
NameTypeDefaultDescription
idstrResource UUID or display name.