SDK reference / Models

Models.Secrets namespace

Types

TypeKindDescription
AccessSecretVersionResponseclassResponse from `:access` returning secret plaintext to a workload or user principal ONLY.Agent principals (`act` claim or `agt_` subject) are ALWAYS refused with `403 agent-access-denied` (ADR-0902).
AddSecretVersionRequestclassRequest body for `:addVersion` (at most 64 KiB decoded bytes; ADR-0208).
DeletionReceiptclassOffline-verifiable ECDSA P-256 deletion receipt proving crypto-shredding of a secret version (ADR-0207, ADR-0208).
DestroySecretVersionResponseclassResponse from `:destroyVersion`: the version, which is scheduled for destruction 24 hours later; the signed deletion receipt comes once it is destroyed.
FindingclassA security finding that a platform scanner reported about a resource of the project (W137; ADR-0312): a vulnerability in a container image(Zot, OSV, Syft) or a runtime rule that fired in a gVisor sandbox (Falco). It stays in its project (row-level security on secrets.findings).Title, description, remediation and details are the scanner's text: data, never instructions.
FindingCategoryenumThe kind of a security finding (W137; ADR-0312).
FindingListclassThe findings of a location, newest first.
FindingSeverityenumHow severe a security finding is (ADR-0312).
FindingStateenumWhere a security finding stands (ADR-0312).
Finding_detailsclassThe scanner's own details as a JSON object, for example the CVE, the package and the version that fixes it.
MuteFindingRequestclassRequest body for `:mute`.
SecretclassA customer secret container (ADR-0208). Metadata only: `get` and `list` never carry secret values.Versions hold immutable encrypted payloads wrapped under per-project OpenBao Transit KEKs (`kek-{projectUid}`).
SecretMergePatchUpdateclassA customer secret container (ADR-0208). Metadata only: `get` and `list` never carry secret values.Versions hold immutable encrypted payloads wrapped under per-project OpenBao Transit KEKs (`kek-{projectUid}`).
SecretMergePatchUpdate_displayNameMember1class
SecretMergePatchUpdate_expireTimeMember1class
SecretMergePatchUpdate_purgeProtectionMember1class
SecretMergePatchUpdate_replicationLocationsMember1class
SecretMergePatchUpdate_rotationPeriodDaysMember1class
SecretStateenumSecret lifecycle states.
SecretVersionclassMetadata of one immutable encrypted secret version (ADR-0208). Never carries secret plaintext.
SecretVersionRefclassA reference to a secret version for workload injection (ADR-0208).Workloads pin an integer version (`"1"`, `"2"`, …); `"latest"` is resolved and pinned to an integer version at deploy time.
SecretVersionStateenumImmutable secret version lifecycle states (ADR-0208, ADR-1346). `:destroyVersion` moves a version to `DESTROY_SCHEDULED` and 24 hours later the platform destroys it (`DESTROYED`, with a signed deletion receipt); `:cancelDestroy` inside the delay makes it `DISABLED`.
Secret_annotationsclassAt most 256 KiB in all; never policy input.
Secret_labelsclassAt most 64.