SecretKey

This section covers the data structures and types used by the persisted database entity.

SecretKeyEntity (Database Record)

secret_key Database Table

FieldTypeDescription
idStringThe primary key of the database table.
key_valueStringThe 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_versionLongDefines 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_typeStringThe only allowed value is ENCRYPTION.
createdDateTimeUTC timestamp indicating when the secret key was created.
updatedDateTimeUTC timestamp indicating the last time the secret key was updated.

Encryption Key Hierarchy


Did this page help you?