Databases
By default, the server runs using a SQLite database, but it can be configured to use a choice of databases: SQLite encrypted, PostgreSQL, MariaDB, MySQL, and Percona XtraDB Cluster, as well as Redis, using the Redis-with-Findex configuration.
Selecting the database
All databases, except SQLite, can be used in a high-availability setup.
The SQLite database can serve high loads and millions of objects, and is very suitable for scenarios that do not demand high availability.
Connection Workflow
The following sequence diagram illustrates how the Eviden KMS connects to its backing database backend, initializes pools and schema verification, and processes client requests end-to-end:
Configuring the database
The database parameters may be configured either:
- the TOML configuration file
- or the arguments passed to the server on the command line.
Database pages
| Page | Content |
|---|---|
| SQLite | Default backend configuration |
| PostgreSQL | Connection settings and database setup |
| PostgreSQL high availability | Multi-host URLs, standby behaviour, HA managers, failover retry |
| Multi-region active-active PostgreSQL | region_role, leader-only operations, conflict resolution, extension requirements |
| CRL and Crypto Officer ceremony across regions | CRL endpoints and ceremonies in a multi-region deployment |
| Multi-region active-active deployment | Architecture, replication set, convergence, Galera variant |
| MySQL, MariaDB, or Percona XtraDB Cluster | MySQL-compatible backends |
| Redis with Findex | Encrypted Redis backend (non-FIPS only) |
| TLS / mTLS | Securing PostgreSQL and MySQL connections |
| Database maintenance | Clearing the database, schema migration |
| The Unwrapped Objects Cache | In-memory cache of unwrapped objects |
| Database tables | Schema reference |