Governate
Sign in Start a trial

Keys

All keys are created on your installation and stay there. The vendor never holds any of them.

The layers

KeyMadeKept
Root keyBy you, or by your key service.In a key file, or inside OpenBao. Never in the databases.
Installation keysOnce, when the server first starts.In the records database, sealed by the root key.
File keysOne per file, when it is protected.In the keys database, sealed by an installation key.

The installation keys are: a key pair for receiving file keys, a key pair for signing file headers, and a key for sealing file keys at rest.

Root key in a file

GOVERNATE_ROOTKEY=file
GOVERNATE_ROOTKEY_FILE=/etc/governate/root.key

The default, in the data folder. The server creates it on first start. Restrict it to the server's own user, and keep a copy somewhere safe and separate from the database backups.

Root key in OpenBao

The root key never leaves the key service; the server asks it to seal and unseal. This uses the transit interface, which HashiCorp Vault also offers.

GOVERNATE_ROOTKEY=openbao
GOVERNATE_BAO_ADDR=https://bao.internal:8200
GOVERNATE_BAO_TOKEN=...            # or GOVERNATE_BAO_TOKEN_FILE=/path/to/token
GOVERNATE_BAO_MOUNT=transit
GOVERNATE_BAO_KEY=governate

transit and governate are the defaults. Give the token rights to encrypt and decrypt with that one key only.

If the root key is lost

Without the root key the installation keys cannot be unsealed, and no protected file can be opened again, by anyone. There is no back door and the vendor cannot help. Back the root key up.

The installation ID

The Installation ID is derived from the installation's keys. It identifies the installation inside every protected file, and in a licence made for one installation only, and stays the same when the public address changes.