SecretKey
This section covers the data structures and types used by the persisted database entity.
SecretKeyEntity (Database Record)
secret_key Database Table
| Field | Type | Description |
|---|---|---|
| id | String | The primary key of the database table. |
| key_value | String | The value is automatically generated when the Gateway starts up for the first time. It is the key used to encrypt the encrypt_key value of each Tenant. The encrypt_key is then used to encrypt the data belonging to that Tenant.The key_value itself is encrypted using the ENCRYPTION_KEY environment variable, which is the only encryption key manually configured by you. |
| key_version | Long | Defines the version number of the ENCRYPTION_KEY environment variable, which is the only encryption key manually configured by you.Each time the Gateway rotates this key, the version number is incremented by 1. |
| secret_type | String | The only allowed value is ENCRYPTION. |
| created | DateTime | UTC timestamp indicating when the secret key was created. |
| updated | DateTime | UTC timestamp indicating the last time the secret key was updated. |
Encryption Key Hierarchy

Updated about 1 month ago
Did this page help you?