Secrets Config (TOML)
This document describes the TOML format for secrets.
Each secret has an alternative corresponding environment variable.
Also see the Node Config page.
Example
[Database]
URL = 'postgresql://user:pass@localhost:5432/dbname?sslmode=disable' # Required
[Password]
Keystore = 'keystore_pass' # RequiredDatabase
[Database]
URL = "postgresql://user:pass@localhost:5432/dbname?sslmode=disable" # Example
BackupURL = "postgresql://user:pass@read-replica.example.com:5432/dbname?sslmode=disable" # Example
AllowSimplePasswords = false # DefaultURL
URL = "postgresql://user:pass@localhost:5432/dbname?sslmode=disable" # ExampleURL is the PostgreSQL URI to connect to your database. Chainlink nodes require Postgres versions >= 11. See Running a Chainlink Node for an example.
Environment variable: CL_DATABASE_URL
BackupURL
BackupURL = "postgresql://user:pass@read-replica.example.com:5432/dbname?sslmode=disable" # ExampleBackupURL is where the automatic database backup will pull from, rather than the main DATABASE_URL. It is recommended to set this value to a read replica if you have one to avoid excessive load on the main database.
Environment variable: CL_DATABASE_BACKUP_URL
AllowSimplePasswords
AllowSimplePasswords = false # DefaultAllowSimplePasswords skips the password complexity check normally enforced on URL & BackupURL.
Environment variable: CL_DATABASE_ALLOW_SIMPLE_PASSWORDS
Explorer
[Explorer]
AccessKey = "access_key" # Example
Secret = "secret" # ExampleAccessKey
AccessKey = "access_key" # ExampleAccessKey is the access key for authenticating with the Explorer.
Environment variable: CL_EXPLORER_ACCESS_KEY
Secret
Secret = "secret" # ExampleSecret is the secret for authenticating with the Explorer.
Environment variable: CL_EXPLORER_SECRET
Password
[Password]
Keystore = "keystore_pass" # Example
VRF = "VRF_pass" # ExampleKeystore
Keystore = "keystore_pass" # ExampleKeystore is the password for the node’s account.
Environment variable: CL_PASSWORD_KEYSTORE
VRF
VRF = "VRF_pass" # ExampleVRF is the password for the vrf keys.
Environment variable: CL_PASSWORD_VRF
Pyroscope
[Pyroscope]
AuthToken = "pyroscope-token" # ExampleAuthToken
AuthToken = "pyroscope-token" # ExampleAuthToken is the API key for the Pyroscope server.
Environment variable: CL_PYROSCOPE_AUTH_TOKEN
Prometheus
[Prometheus]
AuthToken = "prometheus-token" # ExampleAuthToken
AuthToken = "prometheus-token" # ExampleAuthToken is the authorization key for the Prometheus metrics endpoint.
Environment variable: CL_PROMETHEUS_AUTH_TOKEN
Mercury
[Mercury]Mercury credentials are needed if running OCR2 jobs in mercury mode. 0 or more Mercury credentials may be specified. URLs must be unique.
Mercury.Credentials
[[Mercury.Credentials]]
URL = "http://example.com/reports" # Example
Username = "exampleusername" # Example
Password = "examplepassword" # ExampleURL
URL = "http://example.com/reports" # ExampleURL is the URL of the mercury endpoint
Username
Username = "exampleusername" # ExampleUsername is used for basic auth with the mercury endpoint
Password
Password = "examplepassword" # ExamplePassword is used for basic auth with the mercury endpoint