SDK reference / Models / Secrets

Secret

Kind: class

Namespace: Egulu.Sdk.Models.Secrets

A 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}).

Properties

NameTypeJSON nameDescription
AnnotationsModels.Secrets.Secret_annotations?annotationsAt most 256 KiB in all; never policy input.
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
Etagstring?etag"{generation}"; send it back in If-Match.
ExpireTimeDateTimeOffset?expireTimeOptional expiration timestamp after which `:access` refuses all versions of this secret.
ExpiryStatestring?expiryState`NONE`, `OK`, `EXPIRING` (within 30 days of `expireTime`) or `EXPIRED` (`:access` refuses). The platform warns at 30, 7 and 1 days and at expiry (`secrets.secret.expiring.v1`).
KekVersionint?kekVersionOpenBao Transit KEK version currently active for this project (`kek-{projectUid}`).
LabelsModels.Secrets.Secret_labels?labelsAt most 64.
LastRotationTimeDateTimeOffset?lastRotationTimeWhen the newest version was added (the start of the current rotation period); unset while the secret has no version.
LatestVersionstring?latestVersionHighest enabled integer version identifier (`"1"`, `"2"`, …), if any. Metadata only.
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
NextRotationTimeDateTimeOffset?nextRotationTimeWhen the secret is due for a new version: `lastRotationTime` plus the period; unset without a schedule.
PurgeProtectionbool?purgeProtectionPurge protection (key vault, ADR-0293): while on, even an owner cannot destroy the secret early. Destroying a version is scheduled forthe soft-delete retention (7 days) instead of 24 hours, and `:purge` is refused until `purgeTime`. It can be switched on, never off.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
ReplicationLocationsList<string>?replicationLocationsOptional target locations for replication within residency policy; empty means single-location in the project's home location.
RotationPeriodDaysint?rotationPeriodDaysRotation schedule: how often a new version should be added (1..3650 days). The platform cannot invent a secret's value, so it reminds:once `nextRotationTime` passes, `rotationState` becomes `DUE` and the platform writes one `secrets.secret.rotation-due.v1` event(an event subscription can route it); adding a version starts the next period. Unset means no schedule.
RotationStatestring?rotationState`NONE` (no schedule), `OK` (not yet due) or `DUE` (`nextRotationTime` has passed).
StateModels.Secrets.SecretState?stateSecret lifecycle states.
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
VersionCountint?versionCountTotal count of versions created under this secret.