Waiting for input...
Star SPIKE on GitHub

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:

ComponentEnvironment VariableDescriptionDefault Value
SPIKE KeeperSPIKE_KEEPER_TLS_PORTThe TLS port the current SPIKE Keeper instance listens on.":8443"
SPIKE NexusSPIKE_NEXUS_KEEPER_PEERSA mapping that contains [{id:keeperurl}] collection for all SPIKE Keepers that SPIKE Nexus knows about.“” (check ./hack/start.sh for usage examples.
SPIKE NexusSPIKE_NEXUS_TLS_PORTThe TLS port SPIKE Nexus listens on.":8553"
SPIKE NexusSPIKE_NEXUS_MAX_SECRET_VERSIONSThe maximum number of versions of a secret that SPIKE Nexus stores.10
SPIKE NexusSPIKE_NEXUS_BACKEND_STOREThe backend store SPIKE Nexus uses to store secrets (memory, s3, sqlite)."sqlite"
SPIKE NexusSPIKE_NEXUS_DB_OPERATION_TIMEOUTThe timeout for database operations."15s"
SPIKE NexusSPIKE_NEXUS_DB_JOURNAL_MODEThe journal mode for the SQLite database."WAL"
SPIKE NexusSPIKE_NEXUS_DB_BUSY_TIMEOUT_MSThe timeout for the database to wait for a lock.1000
SPIKE NexusSPIKE_NEXUS_DB_MAX_OPEN_CONNSThe maximum number of open connections to the database.10
SPIKE NexusSPIKE_NEXUS_DB_MAX_IDLE_CONNSThe maximum number of idle connections to the database.5
SPIKE NexusSPIKE_NEXUS_DB_CONN_MAX_LIFETIMEThe maximum lifetime of a database connection."1h"
SPIKE NexusSPIKE_NEXUS_PBKDF2_ITERATION_COUNTThe number of iterations for the PBKDF2 key derivation function.600000
SPIKE NexusSPIKE_NEXUS_RECOVERY_TIMEOUTThe timeout for attempting recovery from SPIKE Keepers. 0 = unlimited0
SPIKE NexusSPIKE_NEXUS_SHAMIR_SHARESThe toal number of shares used for secret sharding, this should be equal to the number of SPIKE Keepers too.3
SPIKE NexusSPIKE_NEXUS_SHAMIR_THRESHOLDThe minimum number of shares to be able to reconstruct the root key.2
AllSPIKE_SYSTEM_LOG_LEVELThe log level for all SPIKE components ("DEBUG", "INFO", "WARN", "ERROR")."DEBUG"

We’ll add more configuration options in the future. Stay tuned.