Skip to main content
  1. Documentation/
  2. Reference/

Configuration Reference

Table of Contents

Configuration File
#

Default: ~/.tantoc2/config.yaml

Override: TANTOC2_CONFIG=/path/to/config.yaml

Fields
#

Server
#

FieldTypeDefaultEnv VarDescription
hoststr0.0.0.0TANTOC2_HOSTBind address
portint8443TANTOC2_PORTAPI server port
data_dirstr./dataTANTOC2_DATA_DIRRoot data directory
log_levelstrINFOTANTOC2_LOG_LEVELDEBUG, INFO, WARNING, ERROR
default_engagement_dirstrengagementsTANTOC2_DEFAULT_ENGAGEMENT_DIRSubdirectory for engagement DBs

TLS
#

FieldTypeDefaultEnv VarDescription
tls_enabledboolfalseTANTOC2_TLS_ENABLEDEnable TLS
tls_cert_filestr|NoneTANTOC2_TLS_CERT_FILEPEM certificate path (optional)
tls_key_filestr|NoneTANTOC2_TLS_KEY_FILEPEM private key path (optional)

Background Services
#

FieldTypeDefaultEnv VarDescription
bg_dead_agent_intervalint60TANTOC2_BG_DEAD_AGENT_INTERVALDead agent scan interval (s)
bg_stale_task_intervalint300TANTOC2_BG_STALE_TASK_INTERVALStale task cleanup interval (s)
bg_key_rotation_intervalint300TANTOC2_BG_KEY_ROTATION_INTERVALKey rotation check interval (s)
bg_plugin_watcher_intervalint30TANTOC2_BG_PLUGIN_WATCHER_INTERVALPlugin inbox scan interval (s)

Session Key Rotation
#

FieldTypeDefaultEnv VarDescription
key_rotation_enabledboolfalseTANTOC2_KEY_ROTATION_ENABLEDEnable auto key rotation
key_rotation_session_ttlint3600TANTOC2_KEY_ROTATION_SESSION_TTLMax session key age (s)

Task Management
#

FieldTypeDefaultEnv VarDescription
task_pending_ttlint3600TANTOC2_TASK_PENDING_TTLPending task TTL (s)
task_sent_ttlint7200TANTOC2_TASK_SENT_TTLSent task TTL (s)
task_archival_ageint86400TANTOC2_TASK_ARCHIVAL_AGEAuto-archive threshold (s)

Plugins
#

FieldTypeDefaultEnv VarDescription
plugin_inbox_dirstr""TANTOC2_PLUGIN_INBOX_DIRDirectory for plugin inbox (auto-routing .py and .whl files)

Security
#

FieldTypeDefaultEnv VarDescription
log_redaction_enabledbooltrueTANTOC2_LOG_REDACTION_ENABLEDRedact sensitive log values
clock_drift_toleranceint300TANTOC2_CLOCK_DRIFT_TOLERANCEAcceptable clock drift (s)

Precedence
#

  1. CLI arguments (highest)
  2. Environment variables (TANTOC2_ prefix)
  3. Config file (~/.tantoc2/config.yaml)
  4. Built-in defaults (lowest)

Full Example
#

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# ~/.tantoc2/config.yaml
host: 0.0.0.0
port: 8443
data_dir: /opt/tantoc2/data
log_level: INFO

tls_enabled: true
tls_cert_file: /opt/tantoc2/certs/server.crt
tls_key_file: /opt/tantoc2/certs/server.key

bg_dead_agent_interval: 60
bg_stale_task_interval: 300
bg_key_rotation_interval: 300

key_rotation_enabled: true
key_rotation_session_ttl: 3600

task_pending_ttl: 3600
task_sent_ttl: 7200

log_redaction_enabled: true
task_archival_age: 86400
clock_drift_tolerance: 300

bg_plugin_watcher_interval: 30
plugin_inbox_dir: /opt/tantoc2/plugin_inbox