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. The ids should start from 1 and monotonically increase.“” (check ./hack/start-nexus.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_DB_INITIALIZATION_TIMEOUTThe maximum initialization time for SPIKE Nexus DB before bailing out30s
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_RECOVER_MAX_INTERVALMaximum interval between retries the recovery operation’s backing off algorithm60s
SPIKE NexusSPIKE_NEXUS_RECOVERY_POLL_INTERVALThe duration between attemps to poll the list of SPIKE Keepers during initial bootstrapping.5s
SPIKE NexusSPIKE_NEXUS_SHAMIR_SHARESThe total 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
SPIKE NexusSPIKE_NEXUS_KEEPER_UPDATE_INTERVALThe duration between SPIKE Nexus updates SPIKE Keepers with the relevant shard information.5m
AllSPIKE_SYSTEM_LOG_LEVELThe log level for all SPIKE components ("DEBUG", "INFO", "WARN", "ERROR")."DEBUG"
AllSPIKE_NEXUS_API_URLThe URL where SPIKE Nexus can be reached"https://localhost:8553"
AllSPIKE_TRUST_ROOTThe SPIFFE trust root used within the SPIKE trust boundary."spike.ist"

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