forked from GoogleCloudPlatform/scion
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.yaml.example
More file actions
241 lines (216 loc) · 9.12 KB
/
Copy pathsettings.yaml.example
File metadata and controls
241 lines (216 loc) · 9.12 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
# 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
# cpu: "1"
# memory: "512Mi"
# 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: ""
# batch:
# max_size: 512
# timeout: "5s"
# hub:
# enabled: true
# report_interval: "60s"
# local:
# enabled: false
# file: ""
# console: false
# filter:
# enabled: false
# respect_debug_mode: true
# 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"
# log_format: "" # "" (default), "json"
# -------------------------------------------------------------------------
# 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)
# 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)
# -------------------------------------------------------------------------
# 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_BROKER_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 — 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: ""