Repository navigation
Expand file tree
/
Copy pathsettings.yaml.example
More file actions
300 lines (274 loc) · 13.7 KB
/
Copy pathsettings.yaml.example
File metadata and controls
300 lines (274 loc) · 13.7 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
# Scion Settings — Annotated Example
#
# Copy to ~/.scion/settings.yaml and adjust for your deployment.
# See docs-site/src/content/docs/reference/server-config.md for full details.
#
# Keys are organized by tier:
# Layer 0 (bootstrap) — file/env only; requires restart to change.
# Layer 1 (operational) — DB-managed in HA (Postgres) mode; file is
# seed source / fallback. Can be changed at runtime via the admin API.
#
# No secrets are included in this file. Secrets (OAuth client secrets,
# GitHub App private keys, webhook secrets, broker tokens) belong in a
# secret backend or environment variables.
schema_version: "1"
# ---------------------------------------------------------------------------
# Layer 1 — Agent Defaults
# In Postgres mode these are stored in the hub_settings table (section:
# agent_defaults) and shared across replicas. In SQLite/workstation mode
# they are read from this file.
# ---------------------------------------------------------------------------
# default_template: "" # Default agent template name
# default_harness_config: "" # Default harness configuration name
# default_max_turns: 0 # Max conversation turns (0 = unlimited)
# default_max_model_calls: 0 # Max model API calls (0 = unlimited)
# default_max_duration: "" # Max agent duration (e.g. "1h", "" = unlimited)
# default_resources: # Default resource spec for agents (nested;
# # cpu/memory directly at this level are ignored)
# requests:
# cpu: "500m" # Kubernetes only
# memory: "1Gi" # Docker/Podman: --memory-reservation
# limits:
# cpu: "2" # Docker/Podman: --cpus (built-in default "2")
# memory: "8Gi" # Docker/Podman: --memory (no default limit)
# disk: "40Gi" # Kubernetes only: ephemeral-storage
# Layer 1 — Image Registry
# image_registry: "" # Container image registry URL
# ---------------------------------------------------------------------------
# Layer 1 — Telemetry
# In Postgres mode: section "telemetry" in hub_settings.
# ---------------------------------------------------------------------------
# telemetry:
# enabled: true
# cloud:
# enabled: false
# endpoint: ""
# protocol: "grpc" # "grpc" or "http"
# headers: {}
# provider: ""
# tls:
# enabled: false
# insecure_skip_verify: false
# ca_file: ""
# cert_file: "" # client certificate for mTLS; set with key_file
# key_file: ""
# batch:
# max_size: 512
# timeout: "5s"
# hub:
# enabled: true
# report_interval: "60s"
# local: # accepted but ignored (no reader today)
# enabled: false
# file: ""
# console: false
# filter:
# enabled: false
# respect_debug_mode: true # accepted but ignored (no reader today)
# events:
# include: []
# exclude: []
# attributes:
# redact: []
# hash: []
# sampling:
# default: 1.0
# rates: {}
# resource: {}
server:
# -------------------------------------------------------------------------
# Layer 0 — Identity & Mode (restart required)
# -------------------------------------------------------------------------
mode: workstation # "workstation" or "hosted"
env: prod # "prod", "dev", "staging"
log_level: info # "debug", "info", "warn", "error"
# -------------------------------------------------------------------------
# Layer 0 — Hub Listeners (restart required)
# -------------------------------------------------------------------------
hub:
port: 9810
host: "0.0.0.0"
# read_timeout: "30s"
# write_timeout: "60s"
# hub_id: "" # Unique hub identifier (auto-generated)
# gcp_project_id: "" # GCP project for SA minting (auto-detected on GCE)
# agent_endpoint: "" # Layer 0 (file/env only, restart required; can also be
# # set through the admin server-config API in file mode).
# # Overrides ONLY the hub URL injected into agents
# # (SCION_HUB_ENDPOINT). When unset, agents receive the
# # hub's regular endpoint (public_url, or the endpoint
# # the hub resolves when public_url is unset). Use when
# # agents reach the hub on a different address than users
# # (e.g. an internal VPC URL) while invite links and
# # similar keep using public_url. Must be
# # scheme://host[:port] only: http or https, an IP
# # literal or a hostname of letters, digits, '_', '-',
# # and '.', no path, query, fragment, or credentials (a
# # trailing / is stripped). Applies to agents on EVERY
# # broker attached to this hub, including remote
# # brokers, so only set it if every broker's agents can
# # reach the address and it is this hub on each of those
# # networks. Security: an http:// value sends agent
# # bearer tokens and fetched secrets unencrypted; use
# # https:// unless the network is trusted and isolated.
# Layer 0 — CORS (restart required, middleware-init bound)
# cors:
# enabled: true
# allowed_origins: ["*"]
# Layer 1 — Access (section: access)
admin_emails: [] # Super-admin email addresses
# auto_suspend_stalled: true # Layer 1 (section: lifecycle)
# soft_delete_retention: "72h" # Layer 1 (section: lifecycle)
# soft_delete_retain_files: false # Layer 1 (section: lifecycle)
# public_url: "" # Layer 1 (section: endpoints)
# launch_timeout: "5m" # Layer 0 (restart required). Reserved: not
# # yet read by any create path. Once live:
# # whole-launch budget from BeginLaunch. The
# # API already advertises the remaining
# # budget; no client sizes its wait around it
# # yet (planned CLI behavior).
# launch_keepalive_seconds: 15 # Layer 0 (restart required). Broker keepalive
# # interval; the reaper's staleness window is
# # 8x this value.
# perf_trace: false # Layer 0 (restart required). Per-request
# # performance tracing for diagnosis: logs a
# # perf_trace line per request (phase times,
# # authz store calls, decision audits, DB
# # pool waits). Observe only. Off by default.
# csp_report_raw_samples: false # Layer 0 (restart required). Adds the
# # sample of each browser policy report to
# # its csp_violation log record. Samples can
# # hold page content. Off by default.
# membership_sweep_report_only: false # Layer 0 (restart required). The
# # membership-standing sweep logs and audits
# # the agents it would hold and stop, and
# # holds and stops none. Off by default
# # (enforce). For the first boot after an
# # upgrade.
# -------------------------------------------------------------------------
# Layer 0 — Broker (restart required)
# -------------------------------------------------------------------------
# broker:
# enabled: false
# port: 9800
# broker_id: ""
# broker_name: ""
# hub_endpoint: ""
# container_hub_endpoint: ""
# broker_token: "" # Use env var SCION_SERVER_RUNTIMEBROKER_BROKERTOKEN
# auto_provide: false
# -------------------------------------------------------------------------
# Layer 0 — Database (restart required)
# -------------------------------------------------------------------------
database:
driver: sqlite # "sqlite" or "postgres"
url: "hub.db" # File path (sqlite) or connection string (postgres)
# -------------------------------------------------------------------------
# Layer 0 — Authentication (restart required)
# -------------------------------------------------------------------------
auth:
# mode: "" # Auth mode override
dev_mode: false # NEVER true in production
# dev_token: "" # Use env var SCION_SERVER_AUTH_DEVTOKEN
# dev_token_file: ""
# Layer 1 — Access Control (section: access)
user_access_mode: "" # "open", "domain", "allowlist"
authorized_domains: [] # Email domains for domain mode
# Layer 0 — Proxy auth (restart required)
# proxy:
# enabled: false
# header: "X-Forwarded-Email"
# trusted_proxies: []
# Layer 0 — Transport auth (restart required)
# transport:
# iap:
# enabled: false
# audience: ""
# -------------------------------------------------------------------------
# Layer 0 — OAuth (restart required)
# -------------------------------------------------------------------------
# oauth:
# web:
# google: { client_id: "", client_secret: "" }
# github: { client_id: "", client_secret: "" }
# cli:
# google: { client_id: "", client_secret: "" }
# -------------------------------------------------------------------------
# Layer 0 — Storage (restart required)
# -------------------------------------------------------------------------
# storage:
# provider: "local" # "local" or "gcs"
# bucket: ""
# local_path: ""
# Layer 0 — Workspace Storage (restart required)
# workspace_storage:
# provider: "local" # "local" or "nfs"
# nfs:
# base_path: ""
# -------------------------------------------------------------------------
# Layer 0 — Secrets (restart required)
# -------------------------------------------------------------------------
# secrets:
# backend: "local" # "local" (read-only) or "gcpsm"
# gcp_project_id: ""
# gcp_credentials: ""
# -------------------------------------------------------------------------
# Layer 1 — Notification Channels (section: notifications)
# -------------------------------------------------------------------------
# notification_channels:
# - type: slack
# params:
# webhook_url: https://hooks.slack.com/services/...
# mention_on_urgent: "@here"
# - type: discord
# params:
# webhook_url: https://discord.com/api/webhooks/...
# - type: email
# params:
# to: oncall@example.com
# - type: webhook
# params:
# webhook_url: https://example.com/scion-notifications
# -------------------------------------------------------------------------
# Layer 0 — Message Broker (restart required)
# -------------------------------------------------------------------------
# message_broker:
# enabled: false
# type: "inprocess"
# -------------------------------------------------------------------------
# Layer 0 — Native Chat (restart required)
# -------------------------------------------------------------------------
# Controls the built-in chat: the web chat UI and the /api/v1/chat/*
# endpoints. Omitting this section leaves chat enabled; set enabled to
# false to turn the feature off entirely.
# native_chat:
# enabled: true
# -------------------------------------------------------------------------
# Layer 0 — Plugins (restart required)
# -------------------------------------------------------------------------
# plugins:
# broker:
# my-plugin:
# path: "/usr/local/bin/my-broker-plugin"
# config: {}
# -------------------------------------------------------------------------
# Layer 0 — Scheduler (restart required)
# Controls the Hub's background task scheduler. On resource-constrained
# deployments (small CloudSQL, few replicas), increase the interval or
# limit concurrency to reduce DB connection pressure.
# -------------------------------------------------------------------------
# scheduler:
# interval_seconds: 60 # Root ticker interval (default 60s)
# max_concurrency: 2 # Max simultaneous handlers (default 2)
# -------------------------------------------------------------------------
# Layer 1 — GitHub App (section: github_app)
# Note: private_key and webhook_secret belong in the secret backend.
# webhooks_enabled has a Go zero-value limitation: false is
# indistinguishable from omitted with omitempty JSON encoding.
# -------------------------------------------------------------------------
# github_app:
# app_id: 0
# api_base_url: "https://api.github.com"
# webhooks_enabled: false
# installation_url: ""
# private_key_path: ""