Skip to content

Configuration

Agent file

KERI_CONFIG (/config/agent.json) names the configuration:

{
  "data": "/data",
  "network": "/config/network.json",
  "role": {"role": "org", "name": "default-org"},
  "governance": {"keys": 3, "threshold": 2, "recovery_keys": 1, "witnesses": "all", "toad": 3},
  "policy": {
    "version": "1",
    "trusted_roots": ["self"],
    "max_chain_depth": 4,
    "max_skew_seconds": 120,
    "rules": [{"id": "members-echo", "effect": "allow", "routes": ["/echo"], "roles": ["member", "admin"]}]
  }
}

Optional fields are wallet ({"url": ...}) and watcher_quorum. The default quorum is a majority of the watchers.

Environment

Variable Used by Meaning
KERI_PASSPHRASE Agents Vault passphrase, at least 16 characters
ADMIN_TOKEN Agents Administration token, at least 16 characters
WALLET_TOKEN Agents, wallet Wallet token
WALLET_PASSPHRASE Wallet Encrypts the stored keys
RELAY_URL Witness, watcher Transport. ws://transport:8080 by default
PEERS Watcher Identifiers of peer watchers
INTEGRITY_SECONDS Witness Interval of the integrity check, 60 by default
DEDUP_TTL_SECONDS Watcher 3600 by default
DATA_FILE Go services Database

Role, governance and policy are anchored at inception. Change the policy with update_policy, not in the file alone: a file that does not match the log prevents the start.