SDK reference / Models / Kms

CryptoKey

Kind: class

Namespace: Egulu.Sdk.Models.Kms

A symmetric key for encryption and decryption (AES-256-GCM in OpenBao Transit).

Properties

NameTypeJSON nameDescription
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeWhen the key was deleted.
ExpireTimeDateTimeOffset?expireTimeWhen the key expires (key vault, ADR-0293). From that moment `:encrypt` and `:decrypt` refuse with `failed-precondition` naming the date;the owner extends the expiry with `updateMask=expireTime` or rotates to a new key. The platform warns at 30, 7 and 1 days and at expiry(`kms.crypto-key.expiring.v1`). Unset means the key does not expire.
ExpiryStatestring?expiryState`NONE`, `OK`, `EXPIRING` (within 30 days) or `EXPIRED`.
LastRotationTimeDateTimeOffset?lastRotationTimeWhen the newest version was created (the start of the current rotation period).
Namestring?nameprojects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}.
NextRotationTimeDateTimeOffset?nextRotationTimeWhen the key is due for a new version: `lastRotationTime` plus the period; unset without a schedule.
Primarystring?primaryThe version new ciphertexts are made with (the newest enabled one).
PurgeProtectionbool?purgeProtectionPurge protection: while on, even an owner cannot make the key's material unreadable early. Destroying a version is scheduled for theretention period (30 days) instead of 24 hours, and a deleted key cannot be purged before `purgeTime`. It can be switched on, never off.
PurgeTimeDateTimeOffset?purgeTimeWhen a deleted key's versions are scheduled for destruction (30 days after the deletion).
PurposeModels.Kms.CryptoKey_purpose?purposeENCRYPT_DECRYPT, the one purpose for now.
RotationPeriodDaysint?rotationPeriodDaysRotation schedule: how often a new version should be made (1..3650 days). The platform reminds, it does not rotate by itself: once`nextRotationTime` passes, `rotationState` becomes `DUE` and one `kms.crypto-key.rotation-due.v1` event is written; creating a versionstarts the next period. Unset means no schedule.
RotationStatestring?rotationState`NONE` (no schedule), `OK` or `DUE`.
Statestring?state`ACTIVE`, or `DELETED` (soft deleted: recoverable with `:undelete` until `purgeTime`; it encrypts and decrypts nothing meanwhile).
Uidstring?uidThe uid property
UpdateTimeDateTimeOffset?updateTimeThe updateTime property