Configuring SPIKE
You can use environment variables to configure the SPIKE components.
The following table lists the environment variables that you can use to configure the SPIKE components:
Component | Environment Variable | Description | Default Value |
---|---|---|---|
SPIKE Keeper | SPIKE_KEEPER_TLS_PORT | The TLS port the current SPIKE Keeper instance listens on. | ":8443" |
SPIKE Nexus | SPIKE_NEXUS_KEEPER_PEERS | A mapping that contains [{id:keeperurl}] collection for all SPIKE Keepers that SPIKE Nexus knows about. | “” (check ./hack/start.sh for usage examples. |
SPIKE Nexus | SPIKE_NEXUS_TLS_PORT | The TLS port SPIKE Nexus listens on. | ":8553" |
SPIKE Nexus | SPIKE_NEXUS_MAX_SECRET_VERSIONS | The maximum number of versions of a secret that SPIKE Nexus stores. | 10 |
SPIKE Nexus | SPIKE_NEXUS_BACKEND_STORE | The backend store SPIKE Nexus uses to store secrets (memory, s3, sqlite). | "sqlite" |
SPIKE Nexus | SPIKE_NEXUS_DB_OPERATION_TIMEOUT | The timeout for database operations. | "15s" |
SPIKE Nexus | SPIKE_NEXUS_DB_JOURNAL_MODE | The journal mode for the SQLite database. | "WAL" |
SPIKE Nexus | SPIKE_NEXUS_DB_BUSY_TIMEOUT_MS | The timeout for the database to wait for a lock. | 1000 |
SPIKE Nexus | SPIKE_NEXUS_DB_MAX_OPEN_CONNS | The maximum number of open connections to the database. | 10 |
SPIKE Nexus | SPIKE_NEXUS_DB_MAX_IDLE_CONNS | The maximum number of idle connections to the database. | 5 |
SPIKE Nexus | SPIKE_NEXUS_DB_CONN_MAX_LIFETIME | The maximum lifetime of a database connection. | "1h" |
SPIKE Nexus | SPIKE_NEXUS_PBKDF2_ITERATION_COUNT | The number of iterations for the PBKDF2 key derivation function. | 600000 |
SPIKE Nexus | SPIKE_NEXUS_RECOVERY_TIMEOUT | The timeout for attempting recovery from SPIKE Keepers. 0 = unlimited | 0 |
SPIKE Nexus | SPIKE_NEXUS_SHAMIR_SHARES | The toal number of shares used for secret sharding, this should be equal to the number of SPIKE Keepers too. | 3 |
SPIKE Nexus | SPIKE_NEXUS_SHAMIR_THRESHOLD | The minimum number of shares to be able to reconstruct the root key. | 2 |
All | SPIKE_SYSTEM_LOG_LEVEL | The log level for all SPIKE components ("DEBUG" , "INFO" , "WARN" , "ERROR" ). | "DEBUG" |
We’ll add more configuration options in the future. Stay tuned.