@kindgi/env-schema 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +291 -17
- package/dist/schema.js.map +1 -1
- package/dist/values.d.ts +46 -0
- package/dist/values.d.ts.map +1 -1
- package/dist/values.js +46 -0
- package/dist/values.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +27 -0
- package/src/schema.ts +328 -24
- package/src/values.ts +65 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ENV_GROUPS, type EnvTarget, type EnvVarSpec, KINDGI_ENV_SCHEMA, envVarsForTarget, renderEnvExample, validateEnvForTarget, } from './schema.js';
|
|
2
|
-
export { CORS_ORIGINS_VAR, PUBLIC_URL_VAR, LICENSE_KEY_VAR, PACK_SERVICE_TOKEN_VAR, PUBLIC_TOKEN_KEY_PATH_VAR, PUBLIC_TOKEN_KEY_VAR, parseCorsOrigins, parsePublicUrl, parsePackServiceToken, } from './values.js';
|
|
2
|
+
export { AUTH_EMAIL_FROM_VAR, AUTH_EMAIL_LINK_DAILY_CAP_VAR, AUTH_EMAIL_SMTP_URL_PATH_VAR, AUTH_EMAIL_SMTP_URL_VAR, AUTH_GITHUB_CLIENT_ID_VAR, AUTH_GITHUB_CLIENT_SECRET_PATH_VAR, AUTH_GITHUB_CLIENT_SECRET_VAR, AUTH_GOOGLE_CLIENT_ID_VAR, AUTH_GOOGLE_CLIENT_SECRET_PATH_VAR, AUTH_GOOGLE_CLIENT_SECRET_VAR, AUTH_MICROSOFT_CLIENT_ID_VAR, AUTH_MICROSOFT_CLIENT_SECRET_PATH_VAR, AUTH_MICROSOFT_CLIENT_SECRET_VAR, AUTH_PRIVATE_IDP_ORIGINS_VAR, AUTH_SECRET_PATH_VAR, AUTH_SECRET_VAR, AUTH_TURNSTILE_SECRET_PATH_VAR, AUTH_TURNSTILE_SECRET_VAR, AUTH_TURNSTILE_SITE_KEY_VAR, AUTH_VERIFIED_DOMAINS_VAR, CORS_ORIGINS_VAR, EXPORT_SIGNING_KEY_PATH_VAR, EXPORT_SIGNING_KEY_VAR, EXPORT_SIGNING_KMS_KEY_VAR, PUBLIC_URL_VAR, SESSION_IDLE_TIMEOUT_MS_VAR, CONSOLE_TOKEN_SIGN_IN_VAR, SESSION_TTL_MS_VAR, TRUSTED_PROXIES_VAR, LICENSE_KEY_VAR, PACK_SERVICE_TOKEN_VAR, PUBLIC_TOKEN_KEY_PATH_VAR, PUBLIC_TOKEN_KEY_VAR, parseCorsOrigins, parsePublicUrl, parsePackServiceToken, } from './values.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,UAAU,EACf,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,qBAAqB,GACtB,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,UAAU,EACf,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mBAAmB,EACnB,6BAA6B,EAC7B,4BAA4B,EAC5B,uBAAuB,EACvB,yBAAyB,EACzB,kCAAkC,EAClC,6BAA6B,EAC7B,yBAAyB,EACzB,kCAAkC,EAClC,6BAA6B,EAC7B,4BAA4B,EAC5B,qCAAqC,EACrC,gCAAgC,EAChC,4BAA4B,EAC5B,oBAAoB,EACpB,eAAe,EACf,8BAA8B,EAC9B,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,gBAAgB,EAChB,2BAA2B,EAC3B,sBAAsB,EACtB,0BAA0B,EAC1B,cAAc,EACd,2BAA2B,EAC3B,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,qBAAqB,GACtB,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
// Copyright (C) 2026 Kindgi Inc.
|
|
3
3
|
export { ENV_GROUPS, KINDGI_ENV_SCHEMA, envVarsForTarget, renderEnvExample, validateEnvForTarget, } from './schema.js';
|
|
4
|
-
export { CORS_ORIGINS_VAR, PUBLIC_URL_VAR, LICENSE_KEY_VAR, PACK_SERVICE_TOKEN_VAR, PUBLIC_TOKEN_KEY_PATH_VAR, PUBLIC_TOKEN_KEY_VAR, parseCorsOrigins, parsePublicUrl, parsePackServiceToken, } from './values.js';
|
|
4
|
+
export { AUTH_EMAIL_FROM_VAR, AUTH_EMAIL_LINK_DAILY_CAP_VAR, AUTH_EMAIL_SMTP_URL_PATH_VAR, AUTH_EMAIL_SMTP_URL_VAR, AUTH_GITHUB_CLIENT_ID_VAR, AUTH_GITHUB_CLIENT_SECRET_PATH_VAR, AUTH_GITHUB_CLIENT_SECRET_VAR, AUTH_GOOGLE_CLIENT_ID_VAR, AUTH_GOOGLE_CLIENT_SECRET_PATH_VAR, AUTH_GOOGLE_CLIENT_SECRET_VAR, AUTH_MICROSOFT_CLIENT_ID_VAR, AUTH_MICROSOFT_CLIENT_SECRET_PATH_VAR, AUTH_MICROSOFT_CLIENT_SECRET_VAR, AUTH_PRIVATE_IDP_ORIGINS_VAR, AUTH_SECRET_PATH_VAR, AUTH_SECRET_VAR, AUTH_TURNSTILE_SECRET_PATH_VAR, AUTH_TURNSTILE_SECRET_VAR, AUTH_TURNSTILE_SITE_KEY_VAR, AUTH_VERIFIED_DOMAINS_VAR, CORS_ORIGINS_VAR, EXPORT_SIGNING_KEY_PATH_VAR, EXPORT_SIGNING_KEY_VAR, EXPORT_SIGNING_KMS_KEY_VAR, PUBLIC_URL_VAR, SESSION_IDLE_TIMEOUT_MS_VAR, CONSOLE_TOKEN_SIGN_IN_VAR, SESSION_TTL_MS_VAR, TRUSTED_PROXIES_VAR, LICENSE_KEY_VAR, PACK_SERVICE_TOKEN_VAR, PUBLIC_TOKEN_KEY_PATH_VAR, PUBLIC_TOKEN_KEY_VAR, parseCorsOrigins, parsePublicUrl, parsePackServiceToken, } from './values.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iCAAiC;AAEjC,OAAO,EACL,UAAU,EAGV,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,qBAAqB,GACtB,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iCAAiC;AAEjC,OAAO,EACL,UAAU,EAGV,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,E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AQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC;IACnD;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5C;AAMD,eAAO,MAAM,UAAU;;;;;;;;;CASb,CAAC;AA2BX;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,UAAU,EAoyBlD,CAAC;AAMF;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,SAAS,EACjB,MAAM,GAAE,SAAS,UAAU,EAAsB,GAChD,SAAS,UAAU,EAAE,CAEvB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,UAAU,EAAE,GAAG,MAAM,CA8CpE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,EACjD,MAAM,EAAE,SAAS,EACjB,MAAM,GAAE,SAAS,UAAU,EAAsB,GAChD;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAYrF"}
|
package/dist/schema.js
CHANGED
|
@@ -90,7 +90,7 @@ export const KINDGI_ENV_SCHEMA = [
|
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
name: 'KINDGI_SEED_USER_ID',
|
|
93
|
-
description:
|
|
93
|
+
description: "The user the runtime's API token (`KINDGI_API_TOKEN`) acts as, made a tenant admin at every boot. Unset: the user that token had at an earlier boot (kept by the token's hash), or a new one the first time a token is used. Set it to keep one user across token changes.",
|
|
94
94
|
example: '00000000-0000-4000-8000-000000000002',
|
|
95
95
|
required: false,
|
|
96
96
|
appliesTo: appliesToServer,
|
|
@@ -142,7 +142,7 @@ export const KINDGI_ENV_SCHEMA = [
|
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
name: 'KINDGI_ENV',
|
|
145
|
-
description: 'The env this runtime serves.
|
|
145
|
+
description: 'The env this runtime serves. The secrets and env values a tool declares by name (`needsSpec.secrets`, `needsSpec.env`) resolve under this env name. Unset: `local` in development mode (secrets from the `.env` and `.env.local` files, env values from `/v1/env`); otherwise a tool that declares either fails its calls, naming this variable.',
|
|
146
146
|
example: 'production',
|
|
147
147
|
required: false,
|
|
148
148
|
appliesTo: appliesToServer,
|
|
@@ -164,6 +164,222 @@ export const KINDGI_ENV_SCHEMA = [
|
|
|
164
164
|
appliesTo: appliesToServer,
|
|
165
165
|
group: 'core',
|
|
166
166
|
},
|
|
167
|
+
{
|
|
168
|
+
name: 'KINDGI_AUTH_SECRET_PATH',
|
|
169
|
+
description: 'Turns on sign-in with identity providers (OIDC, SAML): absolute path to a 32-byte random key (mode 0600) the browser sign-in flow signs its state with (`openssl rand 32 > auth-secret`). Needs `KINDGI_PUBLIC_URL`: identity providers send people back there. Unset (with `KINDGI_AUTH_SECRET` unset too): sign-in is off, and the API takes only API keys.',
|
|
170
|
+
example: '/etc/kindgi/auth-secret',
|
|
171
|
+
required: false,
|
|
172
|
+
appliesTo: appliesToServer,
|
|
173
|
+
group: 'core',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: 'KINDGI_AUTH_SECRET',
|
|
177
|
+
description: "The same key, base64 (`base64 < auth-secret`): for platforms that give secrets as environment variables (Cloud Run with Secret Manager), where a key file's mode can't be 0600. Set this or `KINDGI_AUTH_SECRET_PATH`, not both.",
|
|
178
|
+
example: '',
|
|
179
|
+
required: false,
|
|
180
|
+
appliesTo: appliesToServer,
|
|
181
|
+
group: 'core',
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: 'KINDGI_AUTH_PRIVATE_IDP_ORIGINS',
|
|
185
|
+
description: "Comma-separated origins of identity providers on a private network (a self-hosted Keycloak or AD FS behind a VPN, e.g. `https://sso.corp.internal`) that tenants may register. Only public HTTPS identity providers are allowed otherwise: a tenant admin can't point the runtime at the deployment's own network.",
|
|
186
|
+
example: 'https://sso.corp.internal',
|
|
187
|
+
required: false,
|
|
188
|
+
appliesTo: appliesToServer,
|
|
189
|
+
group: 'core',
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: 'KINDGI_AUTH_VERIFIED_DOMAINS',
|
|
193
|
+
description: "Comma-separated `domain:tenant` pairs (the tenant by id, or by a unique slug): email domains whose sign-in routes to that tenant's identity providers. A runtime that serves one tenant routes that tenant's domains without this. One that serves several routes a domain only once it's listed here: otherwise a tenant could list another company's domain and catch its people. An unlisted domain's people can still use their provider's own sign-in link (`kindgi sso providers test` prints it). A malformed entry, or a tenant this runtime doesn't serve, stops the runtime at start.",
|
|
194
|
+
example: 'acme.com:3f8e2c1a-0b7d-4e9a-9c5f-2d1e6b8a7c40',
|
|
195
|
+
required: false,
|
|
196
|
+
appliesTo: appliesToServer,
|
|
197
|
+
group: 'core',
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: 'KINDGI_AUTH_GOOGLE_CLIENT_ID',
|
|
201
|
+
description: "Turns on \"Continue with Google\": the client id of the deployment's own Google app (an OAuth client (Web application)). People who've been added to a workspace sign in with their Google account, by its verified email. The app allows the redirect URI `<KINDGI_PUBLIC_URL>/auth/kindgi/social/callback/google`. Needs sign-in on (`KINDGI_AUTH_SECRET_PATH`) and the app's secret (`KINDGI_AUTH_GOOGLE_CLIENT_SECRET` or `…_SECRET_PATH`).",
|
|
202
|
+
example: '',
|
|
203
|
+
required: false,
|
|
204
|
+
appliesTo: appliesToServer,
|
|
205
|
+
group: 'core',
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: 'KINDGI_AUTH_GOOGLE_CLIENT_SECRET',
|
|
209
|
+
description: "The Google app's client secret, for platforms that give secrets as environment variables. Set this or `KINDGI_AUTH_GOOGLE_CLIENT_SECRET_PATH`, not both.",
|
|
210
|
+
example: '',
|
|
211
|
+
required: false,
|
|
212
|
+
appliesTo: appliesToServer,
|
|
213
|
+
group: 'core',
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: 'KINDGI_AUTH_GOOGLE_CLIENT_SECRET_PATH',
|
|
217
|
+
description: "A file (mode 0600) holding the Google app's client secret. Set this or `KINDGI_AUTH_GOOGLE_CLIENT_SECRET`, not both.",
|
|
218
|
+
example: '/etc/kindgi/google-client-secret',
|
|
219
|
+
required: false,
|
|
220
|
+
appliesTo: appliesToServer,
|
|
221
|
+
group: 'core',
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: 'KINDGI_AUTH_MICROSOFT_CLIENT_ID',
|
|
225
|
+
description: "Turns on \"Continue with Microsoft\": the client id of the deployment's own Microsoft app (an app registration (multitenant, with the ID-token optional claims `email` and `xms_edov`)). People who've been added to a workspace sign in with their Microsoft account, by its verified email. The app allows the redirect URI `<KINDGI_PUBLIC_URL>/auth/kindgi/social/callback/microsoft`. Needs sign-in on (`KINDGI_AUTH_SECRET_PATH`) and the app's secret (`KINDGI_AUTH_MICROSOFT_CLIENT_SECRET` or `…_SECRET_PATH`).",
|
|
226
|
+
example: '',
|
|
227
|
+
required: false,
|
|
228
|
+
appliesTo: appliesToServer,
|
|
229
|
+
group: 'core',
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: 'KINDGI_AUTH_MICROSOFT_CLIENT_SECRET',
|
|
233
|
+
description: "The Microsoft app's client secret, for platforms that give secrets as environment variables. Set this or `KINDGI_AUTH_MICROSOFT_CLIENT_SECRET_PATH`, not both.",
|
|
234
|
+
example: '',
|
|
235
|
+
required: false,
|
|
236
|
+
appliesTo: appliesToServer,
|
|
237
|
+
group: 'core',
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: 'KINDGI_AUTH_MICROSOFT_CLIENT_SECRET_PATH',
|
|
241
|
+
description: "A file (mode 0600) holding the Microsoft app's client secret. Set this or `KINDGI_AUTH_MICROSOFT_CLIENT_SECRET`, not both.",
|
|
242
|
+
example: '/etc/kindgi/microsoft-client-secret',
|
|
243
|
+
required: false,
|
|
244
|
+
appliesTo: appliesToServer,
|
|
245
|
+
group: 'core',
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: 'KINDGI_AUTH_GITHUB_CLIENT_ID',
|
|
249
|
+
description: "Turns on \"Continue with GitHub\": the client id of the deployment's own GitHub app (an OAuth App). People who've been added to a workspace sign in with their GitHub account, by its verified email. The app allows the redirect URI `<KINDGI_PUBLIC_URL>/auth/kindgi/social/callback/github`. Needs sign-in on (`KINDGI_AUTH_SECRET_PATH`) and the app's secret (`KINDGI_AUTH_GITHUB_CLIENT_SECRET` or `…_SECRET_PATH`).",
|
|
250
|
+
example: '',
|
|
251
|
+
required: false,
|
|
252
|
+
appliesTo: appliesToServer,
|
|
253
|
+
group: 'core',
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: 'KINDGI_AUTH_GITHUB_CLIENT_SECRET',
|
|
257
|
+
description: "The GitHub app's client secret, for platforms that give secrets as environment variables. Set this or `KINDGI_AUTH_GITHUB_CLIENT_SECRET_PATH`, not both.",
|
|
258
|
+
example: '',
|
|
259
|
+
required: false,
|
|
260
|
+
appliesTo: appliesToServer,
|
|
261
|
+
group: 'core',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: 'KINDGI_AUTH_GITHUB_CLIENT_SECRET_PATH',
|
|
265
|
+
description: "A file (mode 0600) holding the GitHub app's client secret. Set this or `KINDGI_AUTH_GITHUB_CLIENT_SECRET`, not both.",
|
|
266
|
+
example: '/etc/kindgi/github-client-secret',
|
|
267
|
+
required: false,
|
|
268
|
+
appliesTo: appliesToServer,
|
|
269
|
+
group: 'core',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
name: 'KINDGI_AUTH_EMAIL_SMTP_URL',
|
|
273
|
+
description: "Turns on the emailed sign-in link: people who've been added to a workspace can ask for a one-time link (ten minutes) by email. The SMTP server to send it through, with its credentials: `smtps://user:password@smtp.example.com:465`. Any provider works (Resend, Postmark, Amazon SES, your own relay). Needs sign-in on (`KINDGI_AUTH_SECRET_PATH`) and `KINDGI_AUTH_EMAIL_FROM`. Set this or `KINDGI_AUTH_EMAIL_SMTP_URL_PATH`, not both.",
|
|
274
|
+
example: '',
|
|
275
|
+
required: false,
|
|
276
|
+
appliesTo: appliesToServer,
|
|
277
|
+
group: 'core',
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
name: 'KINDGI_AUTH_EMAIL_SMTP_URL_PATH',
|
|
281
|
+
description: 'A file (mode 0600) holding the SMTP URL with its credentials. Set this or `KINDGI_AUTH_EMAIL_SMTP_URL`, not both.',
|
|
282
|
+
example: '/etc/kindgi/smtp-url',
|
|
283
|
+
required: false,
|
|
284
|
+
appliesTo: appliesToServer,
|
|
285
|
+
group: 'core',
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
name: 'KINDGI_AUTH_EMAIL_FROM',
|
|
289
|
+
description: "The emailed sign-in link's From address, on a domain your SMTP provider may send for (SPF and DKIM set up): `Kindgi <sign-in@acme.com>`.",
|
|
290
|
+
example: 'Kindgi <sign-in@acme.com>',
|
|
291
|
+
required: false,
|
|
292
|
+
appliesTo: appliesToServer,
|
|
293
|
+
group: 'core',
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: 'KINDGI_AUTH_EMAIL_LINK_DAILY_CAP',
|
|
297
|
+
description: "The emailed sign-in link's backstop: at most this many links a day to one address from one client network (IPv4 /24, IPv6 /64). Default 20. Before it: one a minute and 3 per 15 minutes to an address, except for the browser that already got a link for it, so someone else's requests can't keep its person out. At a limit the request answers as usual, and nothing is sent.",
|
|
298
|
+
example: '20',
|
|
299
|
+
required: false,
|
|
300
|
+
appliesTo: appliesToServer,
|
|
301
|
+
group: 'core',
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: 'KINDGI_AUTH_TURNSTILE_SECRET',
|
|
305
|
+
description: "A Cloudflare Turnstile secret key: asking for an emailed link then needs the widget's token, checked with Cloudflare. Required when the runtime serves several tenants. Without it (one tenant), the link is still sent only to people who can sign in, within the per-address limits (see `KINDGI_AUTH_EMAIL_LINK_DAILY_CAP`), and requests are rate-limited per client. Set this or `KINDGI_AUTH_TURNSTILE_SECRET_PATH`, not both, with `KINDGI_AUTH_TURNSTILE_SITE_KEY`.",
|
|
306
|
+
example: '',
|
|
307
|
+
required: false,
|
|
308
|
+
appliesTo: appliesToServer,
|
|
309
|
+
group: 'core',
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
name: 'KINDGI_AUTH_TURNSTILE_SECRET_PATH',
|
|
313
|
+
description: 'A file (mode 0600) holding the Turnstile secret key. Set this or `KINDGI_AUTH_TURNSTILE_SECRET`, not both.',
|
|
314
|
+
example: '/etc/kindgi/turnstile-secret',
|
|
315
|
+
required: false,
|
|
316
|
+
appliesTo: appliesToServer,
|
|
317
|
+
group: 'core',
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
name: 'KINDGI_AUTH_TURNSTILE_SITE_KEY',
|
|
321
|
+
description: 'The Turnstile site key the sign-in page shows the widget with (public). Set with the secret.',
|
|
322
|
+
example: '',
|
|
323
|
+
required: false,
|
|
324
|
+
appliesTo: appliesToServer,
|
|
325
|
+
group: 'core',
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
name: 'KINDGI_TRUSTED_PROXIES',
|
|
329
|
+
description: "Which proxies in front of the runtime to trust for the client's address, which rate limits and audit records use. Unset: the connection's peer, and `X-Forwarded-For` is ignored (anyone can send it). A hop count (`1` behind one proxy such as a cloud load balancer or ingress, `2` behind two) or comma-separated IPs/CIDR ranges of your proxies: the client is the first `X-Forwarded-For` hop, from the right, that isn't one of them; never the leftmost on its own. Behind a proxy without this, every client counts as the proxy, so rate limits are shared by everyone.",
|
|
330
|
+
example: '1',
|
|
331
|
+
required: false,
|
|
332
|
+
appliesTo: appliesToServer,
|
|
333
|
+
group: 'core',
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
name: 'KINDGI_SESSION_TTL_MS',
|
|
337
|
+
description: "A browser session's absolute lifetime, in milliseconds: the person signs in again after it. Default 43200000 (12 hours); at least 60000.",
|
|
338
|
+
example: '43200000',
|
|
339
|
+
required: false,
|
|
340
|
+
appliesTo: appliesToServer,
|
|
341
|
+
group: 'core',
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
name: 'KINDGI_SESSION_IDLE_TIMEOUT_MS',
|
|
345
|
+
description: 'How long a browser session may sit idle before it ends, in milliseconds. Default 3600000 (60 minutes); at least 60000, and no longer than `KINDGI_SESSION_TTL_MS`.',
|
|
346
|
+
example: '3600000',
|
|
347
|
+
required: false,
|
|
348
|
+
appliesTo: appliesToServer,
|
|
349
|
+
group: 'core',
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
name: 'KINDGI_CONSOLE_TOKEN_SIGN_IN',
|
|
353
|
+
description: "Whether a person may sign in to the console with an API token: `on` or `off`. Default `off`, and `on` in local development (`kindgi dev`). The token is exchanged once for a browser session (the same cookie as sign-in with an identity provider) and never kept in the browser. Only a person's full key opens a session, never a service account's or a narrowed key. API tokens work for the API, CLI and SDKs either way. Set `on` to keep signing in to the console by pasting a token when it has no identity provider.",
|
|
354
|
+
example: 'on',
|
|
355
|
+
required: false,
|
|
356
|
+
appliesTo: appliesToServer,
|
|
357
|
+
group: 'core',
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
name: 'KINDGI_EXPORT_SIGNING_KEY_PATH',
|
|
361
|
+
description: 'Absolute path to the private key (PKCS#8 PEM, mode 0600) that signs exports: approval audit bundles, run provenance and compliance evidence. An Ed25519 key signs `ed25519` (`openssl genpkey -algorithm ed25519`); an EC P-256 key signs `ecdsa-p256-sha256`. Use a key for this alone; `GET /v1/export-signing-keys` publishes its public half. Set one of this, `KINDGI_EXPORT_SIGNING_KEY` or `KINDGI_EXPORT_SIGNING_KMS_KEY`. None: in development mode the server signs with a key generated at startup; otherwise exports answer `404 signing-not-configured`.',
|
|
362
|
+
example: '/etc/kindgi/export-signing.pem',
|
|
363
|
+
required: false,
|
|
364
|
+
appliesTo: appliesToServer,
|
|
365
|
+
group: 'core',
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
name: 'KINDGI_EXPORT_SIGNING_KEY',
|
|
369
|
+
description: "The same key's PEM file, base64 (`base64 < key.pem`): for platforms that give secrets as environment variables, such as Cloud Run with Secret Manager. A production path in its own right.",
|
|
370
|
+
example: '',
|
|
371
|
+
required: false,
|
|
372
|
+
appliesTo: appliesToServer,
|
|
373
|
+
group: 'core',
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
name: 'KINDGI_EXPORT_SIGNING_KMS_KEY',
|
|
377
|
+
description: "Optional: a Cloud KMS key version that signs exports, so the private key never leaves KMS: `projects/<p>/locations/<l>/keyRings/<r>/cryptoKeys/<k>/cryptoKeyVersions/<n>`. It must be an `EC_SIGN_ED25519` key (it signs `ed25519`) or an `EC_SIGN_P256_SHA256` key (`ecdsa-p256-sha256`), and the server's service account needs `roles/cloudkms.signerVerifier` on it (and `roles/cloudkms.publicKeyViewer`, to read its public key at boot).",
|
|
378
|
+
example: 'projects/acme/locations/global/keyRings/kindgi/cryptoKeys/exports/cryptoKeyVersions/1',
|
|
379
|
+
required: false,
|
|
380
|
+
appliesTo: appliesToServer,
|
|
381
|
+
group: 'core',
|
|
382
|
+
},
|
|
167
383
|
{
|
|
168
384
|
name: 'KINDGI_CORS_ORIGINS',
|
|
169
385
|
description: 'Comma-separated browser origins allowed to call, cross-origin, the routes a public run token can use (`GET /v1/runs/{runId}/progress` and its stream). Exact origins, no wildcards. Unset: no CORS headers on any route.',
|
|
@@ -188,14 +404,70 @@ export const KINDGI_ENV_SCHEMA = [
|
|
|
188
404
|
appliesTo: appliesToServer,
|
|
189
405
|
group: 'core',
|
|
190
406
|
},
|
|
407
|
+
{
|
|
408
|
+
name: 'KINDGI_MEMORY_EMBEDDINGS',
|
|
409
|
+
description: "Turns on memory search by meaning, with the embedding provider: `openai-compat`, an embeddings endpoint that speaks OpenAI's `POST /embeddings` (OpenAI, Ollama, vLLM, Hugging Face TEI, LM Studio; set `KINDGI_MEMORY_EMBEDDINGS_URL` and `KINDGI_MEMORY_EMBEDDINGS_MODEL`), or `local:<model>`, a model run inside the server (`bge-small-en-v1.5`, `nomic-embed-text-v1.5` or `mxbai-embed-large-v1`; only for a server run from source on macOS or glibc Linux: the runtime image can't load it, and the server refuses to start there). Facts are embedded when written, and a background job embeds the ones already there; agents' `semantic` and `both` retrieval and `/v1/memory/retrieve` then search by meaning. Unset (the default): keyword search only; a `semantic` intent fails its turn with `semantic-unavailable`, `both` runs its keyword half, and publishing such an agent warns. An endpoint that doesn't answer yet doesn't stop the server: it is retried in the background (its first answer gives the dimensions), search by meaning waits for it (`semantic-unavailable` meanwhile, writes kept without a vector until then), and `/ready` says `memoryEmbeddings: unavailable (retrying)`.",
|
|
410
|
+
example: 'openai-compat',
|
|
411
|
+
required: false,
|
|
412
|
+
appliesTo: appliesToServer,
|
|
413
|
+
group: 'core',
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
name: 'KINDGI_MEMORY_EMBEDDINGS_URL',
|
|
417
|
+
description: "With `KINDGI_MEMORY_EMBEDDINGS=openai-compat`: the endpoint's base URL, with its `/v1` (`http://localhost:11434/v1` for Ollama, `https://api.openai.com/v1`). Required then.",
|
|
418
|
+
example: 'http://localhost:11434/v1',
|
|
419
|
+
required: false,
|
|
420
|
+
appliesTo: appliesToServer,
|
|
421
|
+
group: 'core',
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
name: 'KINDGI_MEMORY_EMBEDDINGS_MODEL',
|
|
425
|
+
description: 'With `KINDGI_MEMORY_EMBEDDINGS=openai-compat`: the embedding model the endpoint serves (`nomic-embed-text`, `text-embedding-3-small`). Required then. A different model means a new vector space: the background job re-embeds every fact in it.',
|
|
426
|
+
example: 'nomic-embed-text',
|
|
427
|
+
required: false,
|
|
428
|
+
appliesTo: appliesToServer,
|
|
429
|
+
group: 'core',
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
name: 'KINDGI_MEMORY_EMBEDDINGS_API_KEY',
|
|
433
|
+
description: "With `KINDGI_MEMORY_EMBEDDINGS=openai-compat`: the endpoint's key, mapped into the environment from your secret store; Kindgi never stores it. Optional: Ollama and a local TEI take none.",
|
|
434
|
+
example: '',
|
|
435
|
+
required: false,
|
|
436
|
+
appliesTo: appliesToServer,
|
|
437
|
+
group: 'core',
|
|
438
|
+
},
|
|
191
439
|
{
|
|
192
440
|
name: 'KINDGI_RETENTION_SWEEP_INTERVAL_MS',
|
|
193
|
-
description: "How often the server purges deleted rows on its own, in milliseconds: in every tenant it serves, it purges for good the tombstones past their retention policy's grace, as `POST /v1/retention/sweep` does, holds (`graceSeconds: -1`) kept, and logs what it purged. Unset (the default): nothing purges on its own; sweep with `POST /v1/retention/sweep` or the console. At least 60000, or the server refuses to start.",
|
|
441
|
+
description: "How often the server purges deleted rows on its own, in milliseconds: in every tenant it serves, it purges for good the tombstones past their retention policy's grace, as `POST /v1/retention/sweep` does, holds (`graceSeconds: -1`) kept, and logs what it purged. Memory facts and conversations purge only under a policy naming their domain (`memory`, `conversation`), never under a `*` policy. Unset (the default): nothing purges on its own; sweep with `POST /v1/retention/sweep` or the console. At least 60000, or the server refuses to start.",
|
|
194
442
|
example: '3600000',
|
|
195
443
|
required: false,
|
|
196
444
|
appliesTo: appliesToServer,
|
|
197
445
|
group: 'core',
|
|
198
446
|
},
|
|
447
|
+
{
|
|
448
|
+
name: 'KINDGI_ERASURE_SHARED_WAIT_MS',
|
|
449
|
+
description: "How long an erasure waits for a turn of the person's that sits in a flow serving other people (cancelling it now could end their work), in milliseconds. The erasure shows `waiting-on-run`, naming the run, until then; at the deadline it cancels the run and goes on, and a tenant admin can stop the wait sooner (`kindgi memory erasures resume <id> --force`). Default 604800000 (7 days).",
|
|
450
|
+
example: '604800000',
|
|
451
|
+
required: false,
|
|
452
|
+
appliesTo: appliesToServer,
|
|
453
|
+
group: 'core',
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
name: 'KINDGI_ERASURE_LEDGER_KEY_PATH',
|
|
457
|
+
description: "Absolute path to the erasure ledger's 32-byte key file (mode 0600), the same on every replica, whatever the secrets backend. The ledger keeps a keyed hash of whom each erasure erased, so after a backup restore `kindgi memory erasures replay` finds them again. Unset (and no `KINDGI_ERASURE_LEDGER_KEY`): erasures still run, but can't be replayed after a restore. Losing the key means losing replay. This or `KINDGI_ERASURE_LEDGER_KEY`, not both.",
|
|
458
|
+
example: '/etc/kindgi/erasure-ledger.key',
|
|
459
|
+
required: false,
|
|
460
|
+
appliesTo: appliesToServer,
|
|
461
|
+
group: 'core',
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
name: 'KINDGI_ERASURE_LEDGER_KEY',
|
|
465
|
+
description: "The erasure ledger's 32-byte key itself, base64: for platforms that give secrets as environment variables (Cloud Run with Secret Manager), where a key file's mode can't be 0600. See `KINDGI_ERASURE_LEDGER_KEY_PATH`; this or that, not both.",
|
|
466
|
+
example: '',
|
|
467
|
+
required: false,
|
|
468
|
+
appliesTo: appliesToServer,
|
|
469
|
+
group: 'core',
|
|
470
|
+
},
|
|
199
471
|
{
|
|
200
472
|
name: 'KINDGI_COMPLIANCE_CLASSIFIER',
|
|
201
473
|
description: "Turns on the audit trail's compliance features: `shipped` uses the classifier the runtime ships; or give the absolute path of your own classifier JSON. When set, the server serves `/v1/compliance/*` (audit events as compliance evidence, and their signed export) and **purges audit events by kind, as the classifier says**. With `shipped`: authorization decisions after 90 days (denials after 365), run outcomes and guardrail violations after 730 days; secret changes and approval decisions are kept (legal hold), and so are kinds the classifier doesn't list. Unset (the default): no `/v1/compliance/*`, and no audit event is ever purged.",
|
|
@@ -204,7 +476,22 @@ export const KINDGI_ENV_SCHEMA = [
|
|
|
204
476
|
appliesTo: appliesToServer,
|
|
205
477
|
group: 'core',
|
|
206
478
|
},
|
|
207
|
-
|
|
479
|
+
{
|
|
480
|
+
name: 'KINDGI_ARTIFACTS',
|
|
481
|
+
description: "Where artifacts' files go, which turns on `/v1/artifacts`: `local:<absolute dir>` (a directory on this machine) or `gcs:<bucket>[/<prefix>]` (a Google Cloud Storage bucket, through Application Default Credentials: workload identity on GCP, no keys to store). Metadata is in Postgres; a deleted artifact is purged under the `artifact` retention policy. Unset (the default): no `/v1/artifacts`. `kindgi dev` sets it to the pack's `.kindgi/dev/artifacts`.",
|
|
482
|
+
example: 'gcs:acme-artifacts/prod',
|
|
483
|
+
required: false,
|
|
484
|
+
appliesTo: appliesToServer,
|
|
485
|
+
group: 'core',
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
name: 'KINDGI_ARTIFACT_MAX_BYTES',
|
|
489
|
+
description: 'The most bytes one artifact upload may carry, the whole request body; more is `413 artifact-too-large`. Default 104857600 (100 MB).',
|
|
490
|
+
example: '104857600',
|
|
491
|
+
required: false,
|
|
492
|
+
appliesTo: appliesToServer,
|
|
493
|
+
group: 'core',
|
|
494
|
+
},
|
|
208
495
|
{
|
|
209
496
|
name: 'KINDGI_LOG_LEVEL',
|
|
210
497
|
description: 'The lowest level written: `error`, `warn`, `info` (default), `debug` or `trace`. At `info` an idle runtime writes nothing after its boot record but background work that did something. An unknown level stops the server at boot, naming this variable (exit code 2).',
|
|
@@ -234,7 +521,6 @@ export const KINDGI_ENV_SCHEMA = [
|
|
|
234
521
|
group: 'logging',
|
|
235
522
|
allowedValues: ['auto', 'json', 'pretty'],
|
|
236
523
|
},
|
|
237
|
-
// ---- secrets backend --------------------------------------------
|
|
238
524
|
{
|
|
239
525
|
name: 'KINDGI_SECRETS_BACKEND',
|
|
240
526
|
description: 'Where secret bytes live. `none` (default; /v1/secrets/* unmounted) | `postgres` (envelope-encrypted, needs KMS) | `dotenv` (`.env` files in a directory; development only, needs `KINDGI_DEV=true`) | `secret-manager` (reserved; not supported through this variable).',
|
|
@@ -285,7 +571,6 @@ export const KINDGI_ENV_SCHEMA = [
|
|
|
285
571
|
appliesTo: appliesToPostgresBackend,
|
|
286
572
|
group: 'secrets',
|
|
287
573
|
},
|
|
288
|
-
// ---- GCP vendor -------------------------------------------------
|
|
289
574
|
{
|
|
290
575
|
name: 'KINDGI_SECRETS_GCP_PROJECT_ID',
|
|
291
576
|
description: 'GCP project id owning the KMS keyring + key.',
|
|
@@ -318,7 +603,6 @@ export const KINDGI_ENV_SCHEMA = [
|
|
|
318
603
|
appliesTo: appliesToPostgresGcp,
|
|
319
604
|
group: 'gcp',
|
|
320
605
|
},
|
|
321
|
-
// ---- local key (libsodium) --------------------------------------
|
|
322
606
|
{
|
|
323
607
|
name: 'KINDGI_SECRETS_LOCAL_KEY_PATH',
|
|
324
608
|
description: "Absolute path to the local key: a file of 32 random bytes (`openssl rand 32`, mode 0600), for `KINDGI_SECRETS_BACKEND_KMS=libsodium`. It wraps every secret's data key, and it's held on this host, next to the database: back it up apart from the database, since a lost key loses every secret. Replicas mount the same file. Starting with a different key than the secrets were stored under is refused. This or `KINDGI_SECRETS_LOCAL_KEY`, not both.",
|
|
@@ -344,9 +628,6 @@ export const KINDGI_ENV_SCHEMA = [
|
|
|
344
628
|
group: 'local-key',
|
|
345
629
|
allowedValues: ['single-node'],
|
|
346
630
|
},
|
|
347
|
-
// ---- pack service -----------------------------------------------
|
|
348
|
-
// The server's side: where the pack service is, and how long a call
|
|
349
|
-
// may take.
|
|
350
631
|
{
|
|
351
632
|
name: 'KINDGI_PACK_SERVICE_URL',
|
|
352
633
|
description: 'Base URL of the pack service, the separate process that runs the pack code (its tools and guardrail checks), e.g. `http://pack-service:8080` or its internal Cloud Run URL. Set: the server calls it over HTTP for every pack tool and check, and needs `KINDGI_PACK_SERVICE_TOKEN`. Unset: no pack code runs, and a pack tool fails saying no pack service is wired. `kindgi dev` runs its own.',
|
|
@@ -372,7 +653,6 @@ export const KINDGI_ENV_SCHEMA = [
|
|
|
372
653
|
group: 'pack-service',
|
|
373
654
|
allowedValues: ['token', 'google-id-token'],
|
|
374
655
|
},
|
|
375
|
-
// Both sides: the shared token.
|
|
376
656
|
{
|
|
377
657
|
name: 'KINDGI_PACK_SERVICE_TOKEN',
|
|
378
658
|
description: 'Shared secret between the server and the pack service. The pack service refuses any call without it, and the server sends it with every call. Required by the pack service, and by the server when `KINDGI_PACK_SERVICE_URL` is set. Use a long random value (`openssl rand -base64 32`). Both sides drop surrounding whitespace (such as the trailing newline of a stored secret), and refuse whitespace or control characters inside: the token travels in an HTTP header. The pack service removes it from its environment before it loads the pack code.',
|
|
@@ -381,8 +661,6 @@ export const KINDGI_ENV_SCHEMA = [
|
|
|
381
661
|
appliesTo: (t) => appliesToPackService(t) || appliesToServerHttpPackTransport(t),
|
|
382
662
|
group: 'pack-service',
|
|
383
663
|
},
|
|
384
|
-
// The pack service's side. It also listens on `PORT` (default 8080),
|
|
385
|
-
// the platform convention, which is not a Kindgi variable.
|
|
386
664
|
{
|
|
387
665
|
name: 'KINDGI_PACK_INDEX',
|
|
388
666
|
description: "Path of the pack's `index.json` in the pack service's image. Default `/app/index.json`, where `kindgi build` puts it; the `--index` flag overrides it.",
|
|
@@ -408,9 +686,6 @@ export const KINDGI_ENV_SCHEMA = [
|
|
|
408
686
|
group: 'pack-service',
|
|
409
687
|
allowedValues: ['strict', 'warn'],
|
|
410
688
|
},
|
|
411
|
-
// ---- image registry ---------------------------------------------
|
|
412
|
-
// How the server reads a deployment's image to verify it (`POST
|
|
413
|
-
// /v1/deployments`): anonymous unless credentials are set.
|
|
414
689
|
{
|
|
415
690
|
name: 'KINDGI_IMAGE_REGISTRY_HOST',
|
|
416
691
|
description: 'The registry host the credentials below are for, with its port when it has one (e.g. `registry.example`, `ghcr.io`). Other registries are read anonymously.',
|
|
@@ -452,7 +727,6 @@ export const KINDGI_ENV_SCHEMA = [
|
|
|
452
727
|
group: 'image-registry',
|
|
453
728
|
allowedValues: ['static', 'google'],
|
|
454
729
|
},
|
|
455
|
-
// ---- development (`kindgi dev`) ---------------------------------
|
|
456
730
|
{
|
|
457
731
|
name: 'KINDGI_PACK_DIR',
|
|
458
732
|
description: "Development only: the pack directory `kindgi dev` runs. The server reads the pack's tools, guardrails, agents and flows from the index `kindgi dev` writes there (`.kindgi/dev/index.json`), on every change, instead of from Postgres; signed deployments are off. Mount the directory, not the file: the index is replaced by rename.",
|
package/dist/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iCAAiC;AAkGjC,wEAAwE;AACxE,yDAAyD;AACzD,wEAAwE;AAExE,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,2BAA2B;IACpC,GAAG,EAAE,wCAAwC;IAC7C,WAAW,EAAE,yEAAyE;IACtF,cAAc,EAAE,+DAA+D;IAC/E,gBAAgB,EAAE,0DAA0D;IAC5E,GAAG,EAAE,0DAA0D;CACvD,CAAC;AAEX,wEAAwE;AACxE,gBAAgB;AAChB,wEAAwE;AAExE,kEAAkE;AAClE,MAAM,eAAe,GAAG,CAAC,CAAY,EAAW,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,cAAc,CAAC;AAElF,MAAM,wBAAwB,GAAG,CAAC,CAAY,EAAW,EAAE,CACzD,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,cAAc,KAAK,UAAU,CAAC;AAExD,MAAM,sBAAsB,GAAG,CAAC,CAAY,EAAW,EAAE,CACvD,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,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OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;IAC9C,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAChC,CAAC"}
|
package/dist/values.d.ts
CHANGED
|
@@ -8,12 +8,58 @@
|
|
|
8
8
|
export declare const PUBLIC_TOKEN_KEY_PATH_VAR = "KINDGI_PUBLIC_TOKEN_SIGNING_KEY_PATH";
|
|
9
9
|
/** The same key's PEM file, base64: the alternative to the path. */
|
|
10
10
|
export declare const PUBLIC_TOKEN_KEY_VAR = "KINDGI_PUBLIC_TOKEN_SIGNING_KEY";
|
|
11
|
+
/** The export signing key's PEM file (an absolute path), its base64 value, or a Cloud KMS key version: exactly one. */
|
|
12
|
+
export declare const EXPORT_SIGNING_KEY_PATH_VAR = "KINDGI_EXPORT_SIGNING_KEY_PATH";
|
|
13
|
+
export declare const EXPORT_SIGNING_KEY_VAR = "KINDGI_EXPORT_SIGNING_KEY";
|
|
14
|
+
export declare const EXPORT_SIGNING_KMS_KEY_VAR = "KINDGI_EXPORT_SIGNING_KMS_KEY";
|
|
11
15
|
/** The license key the server checks at startup outside development mode. */
|
|
12
16
|
export declare const LICENSE_KEY_VAR = "KINDGI_LICENSE_KEY";
|
|
13
17
|
/** The browser origins allowed on the routes a public run token opens. */
|
|
14
18
|
export declare const CORS_ORIGINS_VAR = "KINDGI_CORS_ORIGINS";
|
|
15
19
|
/** The URL clients reach the runtime at, when it isn't the address it binds. */
|
|
16
20
|
export declare const PUBLIC_URL_VAR = "KINDGI_PUBLIC_URL";
|
|
21
|
+
/** Sign-in with identity providers: the secret its browser flow signs with (a file). */
|
|
22
|
+
export declare const AUTH_SECRET_PATH_VAR = "KINDGI_AUTH_SECRET_PATH";
|
|
23
|
+
/** The same secret, base64. */
|
|
24
|
+
export declare const AUTH_SECRET_VAR = "KINDGI_AUTH_SECRET";
|
|
25
|
+
/** Identity provider origins on a private network the operator allows. */
|
|
26
|
+
export declare const AUTH_PRIVATE_IDP_ORIGINS_VAR = "KINDGI_AUTH_PRIVATE_IDP_ORIGINS";
|
|
27
|
+
/** Email domains the operator verified, each for one tenant: `domain:tenant,…`. */
|
|
28
|
+
export declare const AUTH_VERIFIED_DOMAINS_VAR = "KINDGI_AUTH_VERIFIED_DOMAINS";
|
|
29
|
+
/** "Continue with Google": the deployment's own app's client id. */
|
|
30
|
+
export declare const AUTH_GOOGLE_CLIENT_ID_VAR = "KINDGI_AUTH_GOOGLE_CLIENT_ID";
|
|
31
|
+
/** Its client secret, or a file holding it (`…_SECRET_PATH`). */
|
|
32
|
+
export declare const AUTH_GOOGLE_CLIENT_SECRET_VAR = "KINDGI_AUTH_GOOGLE_CLIENT_SECRET";
|
|
33
|
+
export declare const AUTH_GOOGLE_CLIENT_SECRET_PATH_VAR = "KINDGI_AUTH_GOOGLE_CLIENT_SECRET_PATH";
|
|
34
|
+
/** "Continue with Microsoft": the deployment's own app's client id. */
|
|
35
|
+
export declare const AUTH_MICROSOFT_CLIENT_ID_VAR = "KINDGI_AUTH_MICROSOFT_CLIENT_ID";
|
|
36
|
+
/** Its client secret, or a file holding it (`…_SECRET_PATH`). */
|
|
37
|
+
export declare const AUTH_MICROSOFT_CLIENT_SECRET_VAR = "KINDGI_AUTH_MICROSOFT_CLIENT_SECRET";
|
|
38
|
+
export declare const AUTH_MICROSOFT_CLIENT_SECRET_PATH_VAR = "KINDGI_AUTH_MICROSOFT_CLIENT_SECRET_PATH";
|
|
39
|
+
/** "Continue with GitHub": the deployment's own app's client id. */
|
|
40
|
+
export declare const AUTH_GITHUB_CLIENT_ID_VAR = "KINDGI_AUTH_GITHUB_CLIENT_ID";
|
|
41
|
+
/** Its client secret, or a file holding it (`…_SECRET_PATH`). */
|
|
42
|
+
export declare const AUTH_GITHUB_CLIENT_SECRET_VAR = "KINDGI_AUTH_GITHUB_CLIENT_SECRET";
|
|
43
|
+
export declare const AUTH_GITHUB_CLIENT_SECRET_PATH_VAR = "KINDGI_AUTH_GITHUB_CLIENT_SECRET_PATH";
|
|
44
|
+
/** The emailed sign-in link: the SMTP server to send it through (a URL with its credentials), or a file holding it. */
|
|
45
|
+
export declare const AUTH_EMAIL_SMTP_URL_VAR = "KINDGI_AUTH_EMAIL_SMTP_URL";
|
|
46
|
+
export declare const AUTH_EMAIL_SMTP_URL_PATH_VAR = "KINDGI_AUTH_EMAIL_SMTP_URL_PATH";
|
|
47
|
+
/** The emailed sign-in link's From address. */
|
|
48
|
+
export declare const AUTH_EMAIL_FROM_VAR = "KINDGI_AUTH_EMAIL_FROM";
|
|
49
|
+
/** At most this many emailed links to one address in 24 hours. Default 10. */
|
|
50
|
+
export declare const AUTH_EMAIL_LINK_DAILY_CAP_VAR = "KINDGI_AUTH_EMAIL_LINK_DAILY_CAP";
|
|
51
|
+
/** Cloudflare Turnstile on asking for an emailed link: its secret (or a file holding it) and its site key. */
|
|
52
|
+
export declare const AUTH_TURNSTILE_SECRET_VAR = "KINDGI_AUTH_TURNSTILE_SECRET";
|
|
53
|
+
export declare const AUTH_TURNSTILE_SECRET_PATH_VAR = "KINDGI_AUTH_TURNSTILE_SECRET_PATH";
|
|
54
|
+
export declare const AUTH_TURNSTILE_SITE_KEY_VAR = "KINDGI_AUTH_TURNSTILE_SITE_KEY";
|
|
55
|
+
/** Which hops in front of the runtime to trust for the client's address: a hop count, or IPs/CIDRs. */
|
|
56
|
+
export declare const TRUSTED_PROXIES_VAR = "KINDGI_TRUSTED_PROXIES";
|
|
57
|
+
/** A browser session's absolute lifetime, in milliseconds. */
|
|
58
|
+
export declare const SESSION_TTL_MS_VAR = "KINDGI_SESSION_TTL_MS";
|
|
59
|
+
/** How long a browser session may sit idle, in milliseconds. */
|
|
60
|
+
export declare const SESSION_IDLE_TIMEOUT_MS_VAR = "KINDGI_SESSION_IDLE_TIMEOUT_MS";
|
|
61
|
+
/** Whether a person may sign in to the console with an API token (`on` / `off`). */
|
|
62
|
+
export declare const CONSOLE_TOKEN_SIGN_IN_VAR = "KINDGI_CONSOLE_TOKEN_SIGN_IN";
|
|
17
63
|
/** The shared secret between the server and the pack service. */
|
|
18
64
|
export declare const PACK_SERVICE_TOKEN_VAR = "KINDGI_PACK_SERVICE_TOKEN";
|
|
19
65
|
/**
|
package/dist/values.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../src/values.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AAEH,iEAAiE;AACjE,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAEhF,oEAAoE;AACpE,eAAO,MAAM,oBAAoB,oCAAoC,CAAC;AAEtE,6EAA6E;AAC7E,eAAO,MAAM,eAAe,uBAAuB,CAAC;AAEpD,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AAEtD,gFAAgF;AAChF,eAAO,MAAM,cAAc,sBAAsB,CAAC;AAElD,iEAAiE;AACjE,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAElE;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CASjF;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,MAAM,EAAE,CAc3E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAsB1E"}
|
|
1
|
+
{"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../src/values.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AAEH,iEAAiE;AACjE,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAEhF,oEAAoE;AACpE,eAAO,MAAM,oBAAoB,oCAAoC,CAAC;AAEtE,uHAAuH;AACvH,eAAO,MAAM,2BAA2B,mCAAmC,CAAC;AAC5E,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAClE,eAAO,MAAM,0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uGAAuG;AACvG,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAE5D,8DAA8D;AAC9D,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAE1D,gEAAgE;AAChE,eAAO,MAAM,2BAA2B,mCAAmC,CAAC;AAE5E,oFAAoF;AACpF,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AAExE,iEAAiE;AACjE,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAElE;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CASjF;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,MAAM,EAAE,CAc3E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAsB1E"}
|
package/dist/values.js
CHANGED
|
@@ -10,12 +10,58 @@
|
|
|
10
10
|
export const PUBLIC_TOKEN_KEY_PATH_VAR = 'KINDGI_PUBLIC_TOKEN_SIGNING_KEY_PATH';
|
|
11
11
|
/** The same key's PEM file, base64: the alternative to the path. */
|
|
12
12
|
export const PUBLIC_TOKEN_KEY_VAR = 'KINDGI_PUBLIC_TOKEN_SIGNING_KEY';
|
|
13
|
+
/** The export signing key's PEM file (an absolute path), its base64 value, or a Cloud KMS key version: exactly one. */
|
|
14
|
+
export const EXPORT_SIGNING_KEY_PATH_VAR = 'KINDGI_EXPORT_SIGNING_KEY_PATH';
|
|
15
|
+
export const EXPORT_SIGNING_KEY_VAR = 'KINDGI_EXPORT_SIGNING_KEY';
|
|
16
|
+
export const EXPORT_SIGNING_KMS_KEY_VAR = 'KINDGI_EXPORT_SIGNING_KMS_KEY';
|
|
13
17
|
/** The license key the server checks at startup outside development mode. */
|
|
14
18
|
export const LICENSE_KEY_VAR = 'KINDGI_LICENSE_KEY';
|
|
15
19
|
/** The browser origins allowed on the routes a public run token opens. */
|
|
16
20
|
export const CORS_ORIGINS_VAR = 'KINDGI_CORS_ORIGINS';
|
|
17
21
|
/** The URL clients reach the runtime at, when it isn't the address it binds. */
|
|
18
22
|
export const PUBLIC_URL_VAR = 'KINDGI_PUBLIC_URL';
|
|
23
|
+
/** Sign-in with identity providers: the secret its browser flow signs with (a file). */
|
|
24
|
+
export const AUTH_SECRET_PATH_VAR = 'KINDGI_AUTH_SECRET_PATH';
|
|
25
|
+
/** The same secret, base64. */
|
|
26
|
+
export const AUTH_SECRET_VAR = 'KINDGI_AUTH_SECRET';
|
|
27
|
+
/** Identity provider origins on a private network the operator allows. */
|
|
28
|
+
export const AUTH_PRIVATE_IDP_ORIGINS_VAR = 'KINDGI_AUTH_PRIVATE_IDP_ORIGINS';
|
|
29
|
+
/** Email domains the operator verified, each for one tenant: `domain:tenant,…`. */
|
|
30
|
+
export const AUTH_VERIFIED_DOMAINS_VAR = 'KINDGI_AUTH_VERIFIED_DOMAINS';
|
|
31
|
+
/** "Continue with Google": the deployment's own app's client id. */
|
|
32
|
+
export const AUTH_GOOGLE_CLIENT_ID_VAR = 'KINDGI_AUTH_GOOGLE_CLIENT_ID';
|
|
33
|
+
/** Its client secret, or a file holding it (`…_SECRET_PATH`). */
|
|
34
|
+
export const AUTH_GOOGLE_CLIENT_SECRET_VAR = 'KINDGI_AUTH_GOOGLE_CLIENT_SECRET';
|
|
35
|
+
export const AUTH_GOOGLE_CLIENT_SECRET_PATH_VAR = 'KINDGI_AUTH_GOOGLE_CLIENT_SECRET_PATH';
|
|
36
|
+
/** "Continue with Microsoft": the deployment's own app's client id. */
|
|
37
|
+
export const AUTH_MICROSOFT_CLIENT_ID_VAR = 'KINDGI_AUTH_MICROSOFT_CLIENT_ID';
|
|
38
|
+
/** Its client secret, or a file holding it (`…_SECRET_PATH`). */
|
|
39
|
+
export const AUTH_MICROSOFT_CLIENT_SECRET_VAR = 'KINDGI_AUTH_MICROSOFT_CLIENT_SECRET';
|
|
40
|
+
export const AUTH_MICROSOFT_CLIENT_SECRET_PATH_VAR = 'KINDGI_AUTH_MICROSOFT_CLIENT_SECRET_PATH';
|
|
41
|
+
/** "Continue with GitHub": the deployment's own app's client id. */
|
|
42
|
+
export const AUTH_GITHUB_CLIENT_ID_VAR = 'KINDGI_AUTH_GITHUB_CLIENT_ID';
|
|
43
|
+
/** Its client secret, or a file holding it (`…_SECRET_PATH`). */
|
|
44
|
+
export const AUTH_GITHUB_CLIENT_SECRET_VAR = 'KINDGI_AUTH_GITHUB_CLIENT_SECRET';
|
|
45
|
+
export const AUTH_GITHUB_CLIENT_SECRET_PATH_VAR = 'KINDGI_AUTH_GITHUB_CLIENT_SECRET_PATH';
|
|
46
|
+
/** The emailed sign-in link: the SMTP server to send it through (a URL with its credentials), or a file holding it. */
|
|
47
|
+
export const AUTH_EMAIL_SMTP_URL_VAR = 'KINDGI_AUTH_EMAIL_SMTP_URL';
|
|
48
|
+
export const AUTH_EMAIL_SMTP_URL_PATH_VAR = 'KINDGI_AUTH_EMAIL_SMTP_URL_PATH';
|
|
49
|
+
/** The emailed sign-in link's From address. */
|
|
50
|
+
export const AUTH_EMAIL_FROM_VAR = 'KINDGI_AUTH_EMAIL_FROM';
|
|
51
|
+
/** At most this many emailed links to one address in 24 hours. Default 10. */
|
|
52
|
+
export const AUTH_EMAIL_LINK_DAILY_CAP_VAR = 'KINDGI_AUTH_EMAIL_LINK_DAILY_CAP';
|
|
53
|
+
/** Cloudflare Turnstile on asking for an emailed link: its secret (or a file holding it) and its site key. */
|
|
54
|
+
export const AUTH_TURNSTILE_SECRET_VAR = 'KINDGI_AUTH_TURNSTILE_SECRET';
|
|
55
|
+
export const AUTH_TURNSTILE_SECRET_PATH_VAR = 'KINDGI_AUTH_TURNSTILE_SECRET_PATH';
|
|
56
|
+
export const AUTH_TURNSTILE_SITE_KEY_VAR = 'KINDGI_AUTH_TURNSTILE_SITE_KEY';
|
|
57
|
+
/** Which hops in front of the runtime to trust for the client's address: a hop count, or IPs/CIDRs. */
|
|
58
|
+
export const TRUSTED_PROXIES_VAR = 'KINDGI_TRUSTED_PROXIES';
|
|
59
|
+
/** A browser session's absolute lifetime, in milliseconds. */
|
|
60
|
+
export const SESSION_TTL_MS_VAR = 'KINDGI_SESSION_TTL_MS';
|
|
61
|
+
/** How long a browser session may sit idle, in milliseconds. */
|
|
62
|
+
export const SESSION_IDLE_TIMEOUT_MS_VAR = 'KINDGI_SESSION_IDLE_TIMEOUT_MS';
|
|
63
|
+
/** Whether a person may sign in to the console with an API token (`on` / `off`). */
|
|
64
|
+
export const CONSOLE_TOKEN_SIGN_IN_VAR = 'KINDGI_CONSOLE_TOKEN_SIGN_IN';
|
|
19
65
|
/** The shared secret between the server and the pack service. */
|
|
20
66
|
export const PACK_SERVICE_TOKEN_VAR = 'KINDGI_PACK_SERVICE_TOKEN';
|
|
21
67
|
/**
|
package/dist/values.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"values.js","sourceRoot":"","sources":["../src/values.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iCAAiC;AAEjC;;;;;GAKG;AAEH,iEAAiE;AACjE,MAAM,CAAC,MAAM,yBAAyB,GAAG,sCAAsC,CAAC;AAEhF,oEAAoE;AACpE,MAAM,CAAC,MAAM,oBAAoB,GAAG,iCAAiC,CAAC;AAEtE,6EAA6E;AAC7E,MAAM,CAAC,MAAM,eAAe,GAAG,oBAAoB,CAAC;AAEpD,0EAA0E;AAC1E,MAAM,CAAC,MAAM,gBAAgB,GAAG,qBAAqB,CAAC;AAEtD,gFAAgF;AAChF,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAElD,iEAAiE;AACjE,MAAM,CAAC,MAAM,sBAAsB,GAAG,2BAA2B,CAAC;AAElE;;;;;;;;GAQG;AACH,MAAM,UAAU,qBAAqB,CAAC,GAAuB;IAC3D,MAAM,KAAK,GAAG,GAAG,EAAE,IAAI,EAAE,C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C,QAAQ,KAAK,EAAE;QACnB,GAAG,CAAC,MAAM,KAAK,EAAE;QACjB,GAAG,CAAC,IAAI,KAAK,EAAE,EACf,CAAC;QACD,MAAM,IAAI,KAAK,CACb,GAAG,cAAc,yGAAyG,KAAK,GAAG,CACnI,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AACtC,CAAC;AAED,SAAS,aAAa,CAAC,KAAa;IAClC,IAAI,GAAQ,CAAC;IACb,IAAI,CAAC;QACH,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;IACD,qEAAqE;IACrE,OAAO,CACL,CAAC,GAAG,CAAC,QAAQ,KAAK,QAAQ,IAAI,GAAG,CAAC,QAAQ,KAAK,OAAO,CAAC;QACvD,GAAG,CAAC,MAAM,KAAK,KAAK;QACpB,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CACrB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kindgi/env-schema",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Machine-readable registry of the Kindgi runtime's operator-facing env vars. Single source of truth for boot-time validation (validateEnvForTarget), .env.example scaffolding (renderEnvExample), and tools or coding agents introspecting deployment config. Adding a new env var means adding one entry here — no drift between validation, docs, and .env.example generation.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
package/src/index.ts
CHANGED
|
@@ -11,8 +11,35 @@ export {
|
|
|
11
11
|
validateEnvForTarget,
|
|
12
12
|
} from './schema.js';
|
|
13
13
|
export {
|
|
14
|
+
AUTH_EMAIL_FROM_VAR,
|
|
15
|
+
AUTH_EMAIL_LINK_DAILY_CAP_VAR,
|
|
16
|
+
AUTH_EMAIL_SMTP_URL_PATH_VAR,
|
|
17
|
+
AUTH_EMAIL_SMTP_URL_VAR,
|
|
18
|
+
AUTH_GITHUB_CLIENT_ID_VAR,
|
|
19
|
+
AUTH_GITHUB_CLIENT_SECRET_PATH_VAR,
|
|
20
|
+
AUTH_GITHUB_CLIENT_SECRET_VAR,
|
|
21
|
+
AUTH_GOOGLE_CLIENT_ID_VAR,
|
|
22
|
+
AUTH_GOOGLE_CLIENT_SECRET_PATH_VAR,
|
|
23
|
+
AUTH_GOOGLE_CLIENT_SECRET_VAR,
|
|
24
|
+
AUTH_MICROSOFT_CLIENT_ID_VAR,
|
|
25
|
+
AUTH_MICROSOFT_CLIENT_SECRET_PATH_VAR,
|
|
26
|
+
AUTH_MICROSOFT_CLIENT_SECRET_VAR,
|
|
27
|
+
AUTH_PRIVATE_IDP_ORIGINS_VAR,
|
|
28
|
+
AUTH_SECRET_PATH_VAR,
|
|
29
|
+
AUTH_SECRET_VAR,
|
|
30
|
+
AUTH_TURNSTILE_SECRET_PATH_VAR,
|
|
31
|
+
AUTH_TURNSTILE_SECRET_VAR,
|
|
32
|
+
AUTH_TURNSTILE_SITE_KEY_VAR,
|
|
33
|
+
AUTH_VERIFIED_DOMAINS_VAR,
|
|
14
34
|
CORS_ORIGINS_VAR,
|
|
35
|
+
EXPORT_SIGNING_KEY_PATH_VAR,
|
|
36
|
+
EXPORT_SIGNING_KEY_VAR,
|
|
37
|
+
EXPORT_SIGNING_KMS_KEY_VAR,
|
|
15
38
|
PUBLIC_URL_VAR,
|
|
39
|
+
SESSION_IDLE_TIMEOUT_MS_VAR,
|
|
40
|
+
CONSOLE_TOKEN_SIGN_IN_VAR,
|
|
41
|
+
SESSION_TTL_MS_VAR,
|
|
42
|
+
TRUSTED_PROXIES_VAR,
|
|
16
43
|
LICENSE_KEY_VAR,
|
|
17
44
|
PACK_SERVICE_TOKEN_VAR,
|
|
18
45
|
PUBLIC_TOKEN_KEY_PATH_VAR,
|
package/src/schema.ts
CHANGED
|
@@ -208,7 +208,7 @@ export const KINDGI_ENV_SCHEMA: readonly EnvVarSpec[] = [
|
|
|
208
208
|
{
|
|
209
209
|
name: 'KINDGI_SEED_USER_ID',
|
|
210
210
|
description:
|
|
211
|
-
|
|
211
|
+
"The user the runtime's API token (`KINDGI_API_TOKEN`) acts as, made a tenant admin at every boot. Unset: the user that token had at an earlier boot (kept by the token's hash), or a new one the first time a token is used. Set it to keep one user across token changes.",
|
|
212
212
|
example: '00000000-0000-4000-8000-000000000002',
|
|
213
213
|
required: false,
|
|
214
214
|
appliesTo: appliesToServer,
|
|
@@ -265,7 +265,7 @@ export const KINDGI_ENV_SCHEMA: readonly EnvVarSpec[] = [
|
|
|
265
265
|
{
|
|
266
266
|
name: 'KINDGI_ENV',
|
|
267
267
|
description:
|
|
268
|
-
'The env this runtime serves.
|
|
268
|
+
'The env this runtime serves. The secrets and env values a tool declares by name (`needsSpec.secrets`, `needsSpec.env`) resolve under this env name. Unset: `local` in development mode (secrets from the `.env` and `.env.local` files, env values from `/v1/env`); otherwise a tool that declares either fails its calls, naming this variable.',
|
|
269
269
|
example: 'production',
|
|
270
270
|
required: false,
|
|
271
271
|
appliesTo: appliesToServer,
|
|
@@ -289,6 +289,250 @@ export const KINDGI_ENV_SCHEMA: readonly EnvVarSpec[] = [
|
|
|
289
289
|
appliesTo: appliesToServer,
|
|
290
290
|
group: 'core',
|
|
291
291
|
},
|
|
292
|
+
{
|
|
293
|
+
name: 'KINDGI_AUTH_SECRET_PATH',
|
|
294
|
+
description:
|
|
295
|
+
'Turns on sign-in with identity providers (OIDC, SAML): absolute path to a 32-byte random key (mode 0600) the browser sign-in flow signs its state with (`openssl rand 32 > auth-secret`). Needs `KINDGI_PUBLIC_URL`: identity providers send people back there. Unset (with `KINDGI_AUTH_SECRET` unset too): sign-in is off, and the API takes only API keys.',
|
|
296
|
+
example: '/etc/kindgi/auth-secret',
|
|
297
|
+
required: false,
|
|
298
|
+
appliesTo: appliesToServer,
|
|
299
|
+
group: 'core',
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
name: 'KINDGI_AUTH_SECRET',
|
|
303
|
+
description:
|
|
304
|
+
"The same key, base64 (`base64 < auth-secret`): for platforms that give secrets as environment variables (Cloud Run with Secret Manager), where a key file's mode can't be 0600. Set this or `KINDGI_AUTH_SECRET_PATH`, not both.",
|
|
305
|
+
example: '',
|
|
306
|
+
required: false,
|
|
307
|
+
appliesTo: appliesToServer,
|
|
308
|
+
group: 'core',
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
name: 'KINDGI_AUTH_PRIVATE_IDP_ORIGINS',
|
|
312
|
+
description:
|
|
313
|
+
"Comma-separated origins of identity providers on a private network (a self-hosted Keycloak or AD FS behind a VPN, e.g. `https://sso.corp.internal`) that tenants may register. Only public HTTPS identity providers are allowed otherwise: a tenant admin can't point the runtime at the deployment's own network.",
|
|
314
|
+
example: 'https://sso.corp.internal',
|
|
315
|
+
required: false,
|
|
316
|
+
appliesTo: appliesToServer,
|
|
317
|
+
group: 'core',
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
name: 'KINDGI_AUTH_VERIFIED_DOMAINS',
|
|
321
|
+
description:
|
|
322
|
+
"Comma-separated `domain:tenant` pairs (the tenant by id, or by a unique slug): email domains whose sign-in routes to that tenant's identity providers. A runtime that serves one tenant routes that tenant's domains without this. One that serves several routes a domain only once it's listed here: otherwise a tenant could list another company's domain and catch its people. An unlisted domain's people can still use their provider's own sign-in link (`kindgi sso providers test` prints it). A malformed entry, or a tenant this runtime doesn't serve, stops the runtime at start.",
|
|
323
|
+
example: 'acme.com:3f8e2c1a-0b7d-4e9a-9c5f-2d1e6b8a7c40',
|
|
324
|
+
required: false,
|
|
325
|
+
appliesTo: appliesToServer,
|
|
326
|
+
group: 'core',
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
name: 'KINDGI_AUTH_GOOGLE_CLIENT_ID',
|
|
330
|
+
description:
|
|
331
|
+
"Turns on \"Continue with Google\": the client id of the deployment's own Google app (an OAuth client (Web application)). People who've been added to a workspace sign in with their Google account, by its verified email. The app allows the redirect URI `<KINDGI_PUBLIC_URL>/auth/kindgi/social/callback/google`. Needs sign-in on (`KINDGI_AUTH_SECRET_PATH`) and the app's secret (`KINDGI_AUTH_GOOGLE_CLIENT_SECRET` or `…_SECRET_PATH`).",
|
|
332
|
+
example: '',
|
|
333
|
+
required: false,
|
|
334
|
+
appliesTo: appliesToServer,
|
|
335
|
+
group: 'core',
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
name: 'KINDGI_AUTH_GOOGLE_CLIENT_SECRET',
|
|
339
|
+
description:
|
|
340
|
+
"The Google app's client secret, for platforms that give secrets as environment variables. Set this or `KINDGI_AUTH_GOOGLE_CLIENT_SECRET_PATH`, not both.",
|
|
341
|
+
example: '',
|
|
342
|
+
required: false,
|
|
343
|
+
appliesTo: appliesToServer,
|
|
344
|
+
group: 'core',
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
name: 'KINDGI_AUTH_GOOGLE_CLIENT_SECRET_PATH',
|
|
348
|
+
description:
|
|
349
|
+
"A file (mode 0600) holding the Google app's client secret. Set this or `KINDGI_AUTH_GOOGLE_CLIENT_SECRET`, not both.",
|
|
350
|
+
example: '/etc/kindgi/google-client-secret',
|
|
351
|
+
required: false,
|
|
352
|
+
appliesTo: appliesToServer,
|
|
353
|
+
group: 'core',
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
name: 'KINDGI_AUTH_MICROSOFT_CLIENT_ID',
|
|
357
|
+
description:
|
|
358
|
+
"Turns on \"Continue with Microsoft\": the client id of the deployment's own Microsoft app (an app registration (multitenant, with the ID-token optional claims `email` and `xms_edov`)). People who've been added to a workspace sign in with their Microsoft account, by its verified email. The app allows the redirect URI `<KINDGI_PUBLIC_URL>/auth/kindgi/social/callback/microsoft`. Needs sign-in on (`KINDGI_AUTH_SECRET_PATH`) and the app's secret (`KINDGI_AUTH_MICROSOFT_CLIENT_SECRET` or `…_SECRET_PATH`).",
|
|
359
|
+
example: '',
|
|
360
|
+
required: false,
|
|
361
|
+
appliesTo: appliesToServer,
|
|
362
|
+
group: 'core',
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
name: 'KINDGI_AUTH_MICROSOFT_CLIENT_SECRET',
|
|
366
|
+
description:
|
|
367
|
+
"The Microsoft app's client secret, for platforms that give secrets as environment variables. Set this or `KINDGI_AUTH_MICROSOFT_CLIENT_SECRET_PATH`, not both.",
|
|
368
|
+
example: '',
|
|
369
|
+
required: false,
|
|
370
|
+
appliesTo: appliesToServer,
|
|
371
|
+
group: 'core',
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
name: 'KINDGI_AUTH_MICROSOFT_CLIENT_SECRET_PATH',
|
|
375
|
+
description:
|
|
376
|
+
"A file (mode 0600) holding the Microsoft app's client secret. Set this or `KINDGI_AUTH_MICROSOFT_CLIENT_SECRET`, not both.",
|
|
377
|
+
example: '/etc/kindgi/microsoft-client-secret',
|
|
378
|
+
required: false,
|
|
379
|
+
appliesTo: appliesToServer,
|
|
380
|
+
group: 'core',
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
name: 'KINDGI_AUTH_GITHUB_CLIENT_ID',
|
|
384
|
+
description:
|
|
385
|
+
"Turns on \"Continue with GitHub\": the client id of the deployment's own GitHub app (an OAuth App). People who've been added to a workspace sign in with their GitHub account, by its verified email. The app allows the redirect URI `<KINDGI_PUBLIC_URL>/auth/kindgi/social/callback/github`. Needs sign-in on (`KINDGI_AUTH_SECRET_PATH`) and the app's secret (`KINDGI_AUTH_GITHUB_CLIENT_SECRET` or `…_SECRET_PATH`).",
|
|
386
|
+
example: '',
|
|
387
|
+
required: false,
|
|
388
|
+
appliesTo: appliesToServer,
|
|
389
|
+
group: 'core',
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
name: 'KINDGI_AUTH_GITHUB_CLIENT_SECRET',
|
|
393
|
+
description:
|
|
394
|
+
"The GitHub app's client secret, for platforms that give secrets as environment variables. Set this or `KINDGI_AUTH_GITHUB_CLIENT_SECRET_PATH`, not both.",
|
|
395
|
+
example: '',
|
|
396
|
+
required: false,
|
|
397
|
+
appliesTo: appliesToServer,
|
|
398
|
+
group: 'core',
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
name: 'KINDGI_AUTH_GITHUB_CLIENT_SECRET_PATH',
|
|
402
|
+
description:
|
|
403
|
+
"A file (mode 0600) holding the GitHub app's client secret. Set this or `KINDGI_AUTH_GITHUB_CLIENT_SECRET`, not both.",
|
|
404
|
+
example: '/etc/kindgi/github-client-secret',
|
|
405
|
+
required: false,
|
|
406
|
+
appliesTo: appliesToServer,
|
|
407
|
+
group: 'core',
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
name: 'KINDGI_AUTH_EMAIL_SMTP_URL',
|
|
411
|
+
description:
|
|
412
|
+
"Turns on the emailed sign-in link: people who've been added to a workspace can ask for a one-time link (ten minutes) by email. The SMTP server to send it through, with its credentials: `smtps://user:password@smtp.example.com:465`. Any provider works (Resend, Postmark, Amazon SES, your own relay). Needs sign-in on (`KINDGI_AUTH_SECRET_PATH`) and `KINDGI_AUTH_EMAIL_FROM`. Set this or `KINDGI_AUTH_EMAIL_SMTP_URL_PATH`, not both.",
|
|
413
|
+
example: '',
|
|
414
|
+
required: false,
|
|
415
|
+
appliesTo: appliesToServer,
|
|
416
|
+
group: 'core',
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
name: 'KINDGI_AUTH_EMAIL_SMTP_URL_PATH',
|
|
420
|
+
description:
|
|
421
|
+
'A file (mode 0600) holding the SMTP URL with its credentials. Set this or `KINDGI_AUTH_EMAIL_SMTP_URL`, not both.',
|
|
422
|
+
example: '/etc/kindgi/smtp-url',
|
|
423
|
+
required: false,
|
|
424
|
+
appliesTo: appliesToServer,
|
|
425
|
+
group: 'core',
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
name: 'KINDGI_AUTH_EMAIL_FROM',
|
|
429
|
+
description:
|
|
430
|
+
"The emailed sign-in link's From address, on a domain your SMTP provider may send for (SPF and DKIM set up): `Kindgi <sign-in@acme.com>`.",
|
|
431
|
+
example: 'Kindgi <sign-in@acme.com>',
|
|
432
|
+
required: false,
|
|
433
|
+
appliesTo: appliesToServer,
|
|
434
|
+
group: 'core',
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
name: 'KINDGI_AUTH_EMAIL_LINK_DAILY_CAP',
|
|
438
|
+
description:
|
|
439
|
+
"The emailed sign-in link's backstop: at most this many links a day to one address from one client network (IPv4 /24, IPv6 /64). Default 20. Before it: one a minute and 3 per 15 minutes to an address, except for the browser that already got a link for it, so someone else's requests can't keep its person out. At a limit the request answers as usual, and nothing is sent.",
|
|
440
|
+
example: '20',
|
|
441
|
+
required: false,
|
|
442
|
+
appliesTo: appliesToServer,
|
|
443
|
+
group: 'core',
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
name: 'KINDGI_AUTH_TURNSTILE_SECRET',
|
|
447
|
+
description:
|
|
448
|
+
"A Cloudflare Turnstile secret key: asking for an emailed link then needs the widget's token, checked with Cloudflare. Required when the runtime serves several tenants. Without it (one tenant), the link is still sent only to people who can sign in, within the per-address limits (see `KINDGI_AUTH_EMAIL_LINK_DAILY_CAP`), and requests are rate-limited per client. Set this or `KINDGI_AUTH_TURNSTILE_SECRET_PATH`, not both, with `KINDGI_AUTH_TURNSTILE_SITE_KEY`.",
|
|
449
|
+
example: '',
|
|
450
|
+
required: false,
|
|
451
|
+
appliesTo: appliesToServer,
|
|
452
|
+
group: 'core',
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
name: 'KINDGI_AUTH_TURNSTILE_SECRET_PATH',
|
|
456
|
+
description:
|
|
457
|
+
'A file (mode 0600) holding the Turnstile secret key. Set this or `KINDGI_AUTH_TURNSTILE_SECRET`, not both.',
|
|
458
|
+
example: '/etc/kindgi/turnstile-secret',
|
|
459
|
+
required: false,
|
|
460
|
+
appliesTo: appliesToServer,
|
|
461
|
+
group: 'core',
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
name: 'KINDGI_AUTH_TURNSTILE_SITE_KEY',
|
|
465
|
+
description:
|
|
466
|
+
'The Turnstile site key the sign-in page shows the widget with (public). Set with the secret.',
|
|
467
|
+
example: '',
|
|
468
|
+
required: false,
|
|
469
|
+
appliesTo: appliesToServer,
|
|
470
|
+
group: 'core',
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
name: 'KINDGI_TRUSTED_PROXIES',
|
|
474
|
+
description:
|
|
475
|
+
"Which proxies in front of the runtime to trust for the client's address, which rate limits and audit records use. Unset: the connection's peer, and `X-Forwarded-For` is ignored (anyone can send it). A hop count (`1` behind one proxy such as a cloud load balancer or ingress, `2` behind two) or comma-separated IPs/CIDR ranges of your proxies: the client is the first `X-Forwarded-For` hop, from the right, that isn't one of them; never the leftmost on its own. Behind a proxy without this, every client counts as the proxy, so rate limits are shared by everyone.",
|
|
476
|
+
example: '1',
|
|
477
|
+
required: false,
|
|
478
|
+
appliesTo: appliesToServer,
|
|
479
|
+
group: 'core',
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
name: 'KINDGI_SESSION_TTL_MS',
|
|
483
|
+
description:
|
|
484
|
+
"A browser session's absolute lifetime, in milliseconds: the person signs in again after it. Default 43200000 (12 hours); at least 60000.",
|
|
485
|
+
example: '43200000',
|
|
486
|
+
required: false,
|
|
487
|
+
appliesTo: appliesToServer,
|
|
488
|
+
group: 'core',
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
name: 'KINDGI_SESSION_IDLE_TIMEOUT_MS',
|
|
492
|
+
description:
|
|
493
|
+
'How long a browser session may sit idle before it ends, in milliseconds. Default 3600000 (60 minutes); at least 60000, and no longer than `KINDGI_SESSION_TTL_MS`.',
|
|
494
|
+
example: '3600000',
|
|
495
|
+
required: false,
|
|
496
|
+
appliesTo: appliesToServer,
|
|
497
|
+
group: 'core',
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
name: 'KINDGI_CONSOLE_TOKEN_SIGN_IN',
|
|
501
|
+
description:
|
|
502
|
+
"Whether a person may sign in to the console with an API token: `on` or `off`. Default `off`, and `on` in local development (`kindgi dev`). The token is exchanged once for a browser session (the same cookie as sign-in with an identity provider) and never kept in the browser. Only a person's full key opens a session, never a service account's or a narrowed key. API tokens work for the API, CLI and SDKs either way. Set `on` to keep signing in to the console by pasting a token when it has no identity provider.",
|
|
503
|
+
example: 'on',
|
|
504
|
+
required: false,
|
|
505
|
+
appliesTo: appliesToServer,
|
|
506
|
+
group: 'core',
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
name: 'KINDGI_EXPORT_SIGNING_KEY_PATH',
|
|
510
|
+
description:
|
|
511
|
+
'Absolute path to the private key (PKCS#8 PEM, mode 0600) that signs exports: approval audit bundles, run provenance and compliance evidence. An Ed25519 key signs `ed25519` (`openssl genpkey -algorithm ed25519`); an EC P-256 key signs `ecdsa-p256-sha256`. Use a key for this alone; `GET /v1/export-signing-keys` publishes its public half. Set one of this, `KINDGI_EXPORT_SIGNING_KEY` or `KINDGI_EXPORT_SIGNING_KMS_KEY`. None: in development mode the server signs with a key generated at startup; otherwise exports answer `404 signing-not-configured`.',
|
|
512
|
+
example: '/etc/kindgi/export-signing.pem',
|
|
513
|
+
required: false,
|
|
514
|
+
appliesTo: appliesToServer,
|
|
515
|
+
group: 'core',
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
name: 'KINDGI_EXPORT_SIGNING_KEY',
|
|
519
|
+
description:
|
|
520
|
+
"The same key's PEM file, base64 (`base64 < key.pem`): for platforms that give secrets as environment variables, such as Cloud Run with Secret Manager. A production path in its own right.",
|
|
521
|
+
example: '',
|
|
522
|
+
required: false,
|
|
523
|
+
appliesTo: appliesToServer,
|
|
524
|
+
group: 'core',
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
name: 'KINDGI_EXPORT_SIGNING_KMS_KEY',
|
|
528
|
+
description:
|
|
529
|
+
"Optional: a Cloud KMS key version that signs exports, so the private key never leaves KMS: `projects/<p>/locations/<l>/keyRings/<r>/cryptoKeys/<k>/cryptoKeyVersions/<n>`. It must be an `EC_SIGN_ED25519` key (it signs `ed25519`) or an `EC_SIGN_P256_SHA256` key (`ecdsa-p256-sha256`), and the server's service account needs `roles/cloudkms.signerVerifier` on it (and `roles/cloudkms.publicKeyViewer`, to read its public key at boot).",
|
|
530
|
+
example:
|
|
531
|
+
'projects/acme/locations/global/keyRings/kindgi/cryptoKeys/exports/cryptoKeyVersions/1',
|
|
532
|
+
required: false,
|
|
533
|
+
appliesTo: appliesToServer,
|
|
534
|
+
group: 'core',
|
|
535
|
+
},
|
|
292
536
|
{
|
|
293
537
|
name: 'KINDGI_CORS_ORIGINS',
|
|
294
538
|
description:
|
|
@@ -316,15 +560,78 @@ export const KINDGI_ENV_SCHEMA: readonly EnvVarSpec[] = [
|
|
|
316
560
|
appliesTo: appliesToServer,
|
|
317
561
|
group: 'core',
|
|
318
562
|
},
|
|
563
|
+
{
|
|
564
|
+
name: 'KINDGI_MEMORY_EMBEDDINGS',
|
|
565
|
+
description:
|
|
566
|
+
"Turns on memory search by meaning, with the embedding provider: `openai-compat`, an embeddings endpoint that speaks OpenAI's `POST /embeddings` (OpenAI, Ollama, vLLM, Hugging Face TEI, LM Studio; set `KINDGI_MEMORY_EMBEDDINGS_URL` and `KINDGI_MEMORY_EMBEDDINGS_MODEL`), or `local:<model>`, a model run inside the server (`bge-small-en-v1.5`, `nomic-embed-text-v1.5` or `mxbai-embed-large-v1`; only for a server run from source on macOS or glibc Linux: the runtime image can't load it, and the server refuses to start there). Facts are embedded when written, and a background job embeds the ones already there; agents' `semantic` and `both` retrieval and `/v1/memory/retrieve` then search by meaning. Unset (the default): keyword search only; a `semantic` intent fails its turn with `semantic-unavailable`, `both` runs its keyword half, and publishing such an agent warns. An endpoint that doesn't answer yet doesn't stop the server: it is retried in the background (its first answer gives the dimensions), search by meaning waits for it (`semantic-unavailable` meanwhile, writes kept without a vector until then), and `/ready` says `memoryEmbeddings: unavailable (retrying)`.",
|
|
567
|
+
example: 'openai-compat',
|
|
568
|
+
required: false,
|
|
569
|
+
appliesTo: appliesToServer,
|
|
570
|
+
group: 'core',
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
name: 'KINDGI_MEMORY_EMBEDDINGS_URL',
|
|
574
|
+
description:
|
|
575
|
+
"With `KINDGI_MEMORY_EMBEDDINGS=openai-compat`: the endpoint's base URL, with its `/v1` (`http://localhost:11434/v1` for Ollama, `https://api.openai.com/v1`). Required then.",
|
|
576
|
+
example: 'http://localhost:11434/v1',
|
|
577
|
+
required: false,
|
|
578
|
+
appliesTo: appliesToServer,
|
|
579
|
+
group: 'core',
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
name: 'KINDGI_MEMORY_EMBEDDINGS_MODEL',
|
|
583
|
+
description:
|
|
584
|
+
'With `KINDGI_MEMORY_EMBEDDINGS=openai-compat`: the embedding model the endpoint serves (`nomic-embed-text`, `text-embedding-3-small`). Required then. A different model means a new vector space: the background job re-embeds every fact in it.',
|
|
585
|
+
example: 'nomic-embed-text',
|
|
586
|
+
required: false,
|
|
587
|
+
appliesTo: appliesToServer,
|
|
588
|
+
group: 'core',
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
name: 'KINDGI_MEMORY_EMBEDDINGS_API_KEY',
|
|
592
|
+
description:
|
|
593
|
+
"With `KINDGI_MEMORY_EMBEDDINGS=openai-compat`: the endpoint's key, mapped into the environment from your secret store; Kindgi never stores it. Optional: Ollama and a local TEI take none.",
|
|
594
|
+
example: '',
|
|
595
|
+
required: false,
|
|
596
|
+
appliesTo: appliesToServer,
|
|
597
|
+
group: 'core',
|
|
598
|
+
},
|
|
319
599
|
{
|
|
320
600
|
name: 'KINDGI_RETENTION_SWEEP_INTERVAL_MS',
|
|
321
601
|
description:
|
|
322
|
-
"How often the server purges deleted rows on its own, in milliseconds: in every tenant it serves, it purges for good the tombstones past their retention policy's grace, as `POST /v1/retention/sweep` does, holds (`graceSeconds: -1`) kept, and logs what it purged. Unset (the default): nothing purges on its own; sweep with `POST /v1/retention/sweep` or the console. At least 60000, or the server refuses to start.",
|
|
602
|
+
"How often the server purges deleted rows on its own, in milliseconds: in every tenant it serves, it purges for good the tombstones past their retention policy's grace, as `POST /v1/retention/sweep` does, holds (`graceSeconds: -1`) kept, and logs what it purged. Memory facts and conversations purge only under a policy naming their domain (`memory`, `conversation`), never under a `*` policy. Unset (the default): nothing purges on its own; sweep with `POST /v1/retention/sweep` or the console. At least 60000, or the server refuses to start.",
|
|
323
603
|
example: '3600000',
|
|
324
604
|
required: false,
|
|
325
605
|
appliesTo: appliesToServer,
|
|
326
606
|
group: 'core',
|
|
327
607
|
},
|
|
608
|
+
{
|
|
609
|
+
name: 'KINDGI_ERASURE_SHARED_WAIT_MS',
|
|
610
|
+
description:
|
|
611
|
+
"How long an erasure waits for a turn of the person's that sits in a flow serving other people (cancelling it now could end their work), in milliseconds. The erasure shows `waiting-on-run`, naming the run, until then; at the deadline it cancels the run and goes on, and a tenant admin can stop the wait sooner (`kindgi memory erasures resume <id> --force`). Default 604800000 (7 days).",
|
|
612
|
+
example: '604800000',
|
|
613
|
+
required: false,
|
|
614
|
+
appliesTo: appliesToServer,
|
|
615
|
+
group: 'core',
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
name: 'KINDGI_ERASURE_LEDGER_KEY_PATH',
|
|
619
|
+
description:
|
|
620
|
+
"Absolute path to the erasure ledger's 32-byte key file (mode 0600), the same on every replica, whatever the secrets backend. The ledger keeps a keyed hash of whom each erasure erased, so after a backup restore `kindgi memory erasures replay` finds them again. Unset (and no `KINDGI_ERASURE_LEDGER_KEY`): erasures still run, but can't be replayed after a restore. Losing the key means losing replay. This or `KINDGI_ERASURE_LEDGER_KEY`, not both.",
|
|
621
|
+
example: '/etc/kindgi/erasure-ledger.key',
|
|
622
|
+
required: false,
|
|
623
|
+
appliesTo: appliesToServer,
|
|
624
|
+
group: 'core',
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
name: 'KINDGI_ERASURE_LEDGER_KEY',
|
|
628
|
+
description:
|
|
629
|
+
"The erasure ledger's 32-byte key itself, base64: for platforms that give secrets as environment variables (Cloud Run with Secret Manager), where a key file's mode can't be 0600. See `KINDGI_ERASURE_LEDGER_KEY_PATH`; this or that, not both.",
|
|
630
|
+
example: '',
|
|
631
|
+
required: false,
|
|
632
|
+
appliesTo: appliesToServer,
|
|
633
|
+
group: 'core',
|
|
634
|
+
},
|
|
328
635
|
{
|
|
329
636
|
name: 'KINDGI_COMPLIANCE_CLASSIFIER',
|
|
330
637
|
description:
|
|
@@ -334,8 +641,24 @@ export const KINDGI_ENV_SCHEMA: readonly EnvVarSpec[] = [
|
|
|
334
641
|
appliesTo: appliesToServer,
|
|
335
642
|
group: 'core',
|
|
336
643
|
},
|
|
337
|
-
|
|
338
|
-
|
|
644
|
+
{
|
|
645
|
+
name: 'KINDGI_ARTIFACTS',
|
|
646
|
+
description:
|
|
647
|
+
"Where artifacts' files go, which turns on `/v1/artifacts`: `local:<absolute dir>` (a directory on this machine) or `gcs:<bucket>[/<prefix>]` (a Google Cloud Storage bucket, through Application Default Credentials: workload identity on GCP, no keys to store). Metadata is in Postgres; a deleted artifact is purged under the `artifact` retention policy. Unset (the default): no `/v1/artifacts`. `kindgi dev` sets it to the pack's `.kindgi/dev/artifacts`.",
|
|
648
|
+
example: 'gcs:acme-artifacts/prod',
|
|
649
|
+
required: false,
|
|
650
|
+
appliesTo: appliesToServer,
|
|
651
|
+
group: 'core',
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
name: 'KINDGI_ARTIFACT_MAX_BYTES',
|
|
655
|
+
description:
|
|
656
|
+
'The most bytes one artifact upload may carry, the whole request body; more is `413 artifact-too-large`. Default 104857600 (100 MB).',
|
|
657
|
+
example: '104857600',
|
|
658
|
+
required: false,
|
|
659
|
+
appliesTo: appliesToServer,
|
|
660
|
+
group: 'core',
|
|
661
|
+
},
|
|
339
662
|
{
|
|
340
663
|
name: 'KINDGI_LOG_LEVEL',
|
|
341
664
|
description:
|
|
@@ -368,8 +691,6 @@ export const KINDGI_ENV_SCHEMA: readonly EnvVarSpec[] = [
|
|
|
368
691
|
group: 'logging',
|
|
369
692
|
allowedValues: ['auto', 'json', 'pretty'],
|
|
370
693
|
},
|
|
371
|
-
|
|
372
|
-
// ---- secrets backend --------------------------------------------
|
|
373
694
|
{
|
|
374
695
|
name: 'KINDGI_SECRETS_BACKEND',
|
|
375
696
|
description:
|
|
@@ -426,8 +747,6 @@ export const KINDGI_ENV_SCHEMA: readonly EnvVarSpec[] = [
|
|
|
426
747
|
appliesTo: appliesToPostgresBackend,
|
|
427
748
|
group: 'secrets',
|
|
428
749
|
},
|
|
429
|
-
|
|
430
|
-
// ---- GCP vendor -------------------------------------------------
|
|
431
750
|
{
|
|
432
751
|
name: 'KINDGI_SECRETS_GCP_PROJECT_ID',
|
|
433
752
|
description: 'GCP project id owning the KMS keyring + key.',
|
|
@@ -460,8 +779,6 @@ export const KINDGI_ENV_SCHEMA: readonly EnvVarSpec[] = [
|
|
|
460
779
|
appliesTo: appliesToPostgresGcp,
|
|
461
780
|
group: 'gcp',
|
|
462
781
|
},
|
|
463
|
-
|
|
464
|
-
// ---- local key (libsodium) --------------------------------------
|
|
465
782
|
{
|
|
466
783
|
name: 'KINDGI_SECRETS_LOCAL_KEY_PATH',
|
|
467
784
|
description:
|
|
@@ -490,10 +807,6 @@ export const KINDGI_ENV_SCHEMA: readonly EnvVarSpec[] = [
|
|
|
490
807
|
group: 'local-key',
|
|
491
808
|
allowedValues: ['single-node'],
|
|
492
809
|
},
|
|
493
|
-
|
|
494
|
-
// ---- pack service -----------------------------------------------
|
|
495
|
-
// The server's side: where the pack service is, and how long a call
|
|
496
|
-
// may take.
|
|
497
810
|
{
|
|
498
811
|
name: 'KINDGI_PACK_SERVICE_URL',
|
|
499
812
|
description:
|
|
@@ -522,7 +835,6 @@ export const KINDGI_ENV_SCHEMA: readonly EnvVarSpec[] = [
|
|
|
522
835
|
group: 'pack-service',
|
|
523
836
|
allowedValues: ['token', 'google-id-token'],
|
|
524
837
|
},
|
|
525
|
-
// Both sides: the shared token.
|
|
526
838
|
{
|
|
527
839
|
name: 'KINDGI_PACK_SERVICE_TOKEN',
|
|
528
840
|
description:
|
|
@@ -532,8 +844,6 @@ export const KINDGI_ENV_SCHEMA: readonly EnvVarSpec[] = [
|
|
|
532
844
|
appliesTo: (t) => appliesToPackService(t) || appliesToServerHttpPackTransport(t),
|
|
533
845
|
group: 'pack-service',
|
|
534
846
|
},
|
|
535
|
-
// The pack service's side. It also listens on `PORT` (default 8080),
|
|
536
|
-
// the platform convention, which is not a Kindgi variable.
|
|
537
847
|
{
|
|
538
848
|
name: 'KINDGI_PACK_INDEX',
|
|
539
849
|
description:
|
|
@@ -562,10 +872,6 @@ export const KINDGI_ENV_SCHEMA: readonly EnvVarSpec[] = [
|
|
|
562
872
|
group: 'pack-service',
|
|
563
873
|
allowedValues: ['strict', 'warn'],
|
|
564
874
|
},
|
|
565
|
-
|
|
566
|
-
// ---- image registry ---------------------------------------------
|
|
567
|
-
// How the server reads a deployment's image to verify it (`POST
|
|
568
|
-
// /v1/deployments`): anonymous unless credentials are set.
|
|
569
875
|
{
|
|
570
876
|
name: 'KINDGI_IMAGE_REGISTRY_HOST',
|
|
571
877
|
description:
|
|
@@ -612,8 +918,6 @@ export const KINDGI_ENV_SCHEMA: readonly EnvVarSpec[] = [
|
|
|
612
918
|
group: 'image-registry',
|
|
613
919
|
allowedValues: ['static', 'google'],
|
|
614
920
|
},
|
|
615
|
-
|
|
616
|
-
// ---- development (`kindgi dev`) ---------------------------------
|
|
617
921
|
{
|
|
618
922
|
name: 'KINDGI_PACK_DIR',
|
|
619
923
|
description:
|
package/src/values.ts
CHANGED
|
@@ -14,6 +14,11 @@ export const PUBLIC_TOKEN_KEY_PATH_VAR = 'KINDGI_PUBLIC_TOKEN_SIGNING_KEY_PATH';
|
|
|
14
14
|
/** The same key's PEM file, base64: the alternative to the path. */
|
|
15
15
|
export const PUBLIC_TOKEN_KEY_VAR = 'KINDGI_PUBLIC_TOKEN_SIGNING_KEY';
|
|
16
16
|
|
|
17
|
+
/** The export signing key's PEM file (an absolute path), its base64 value, or a Cloud KMS key version: exactly one. */
|
|
18
|
+
export const EXPORT_SIGNING_KEY_PATH_VAR = 'KINDGI_EXPORT_SIGNING_KEY_PATH';
|
|
19
|
+
export const EXPORT_SIGNING_KEY_VAR = 'KINDGI_EXPORT_SIGNING_KEY';
|
|
20
|
+
export const EXPORT_SIGNING_KMS_KEY_VAR = 'KINDGI_EXPORT_SIGNING_KMS_KEY';
|
|
21
|
+
|
|
17
22
|
/** The license key the server checks at startup outside development mode. */
|
|
18
23
|
export const LICENSE_KEY_VAR = 'KINDGI_LICENSE_KEY';
|
|
19
24
|
|
|
@@ -23,6 +28,66 @@ export const CORS_ORIGINS_VAR = 'KINDGI_CORS_ORIGINS';
|
|
|
23
28
|
/** The URL clients reach the runtime at, when it isn't the address it binds. */
|
|
24
29
|
export const PUBLIC_URL_VAR = 'KINDGI_PUBLIC_URL';
|
|
25
30
|
|
|
31
|
+
/** Sign-in with identity providers: the secret its browser flow signs with (a file). */
|
|
32
|
+
export const AUTH_SECRET_PATH_VAR = 'KINDGI_AUTH_SECRET_PATH';
|
|
33
|
+
|
|
34
|
+
/** The same secret, base64. */
|
|
35
|
+
export const AUTH_SECRET_VAR = 'KINDGI_AUTH_SECRET';
|
|
36
|
+
|
|
37
|
+
/** Identity provider origins on a private network the operator allows. */
|
|
38
|
+
export const AUTH_PRIVATE_IDP_ORIGINS_VAR = 'KINDGI_AUTH_PRIVATE_IDP_ORIGINS';
|
|
39
|
+
|
|
40
|
+
/** Email domains the operator verified, each for one tenant: `domain:tenant,…`. */
|
|
41
|
+
export const AUTH_VERIFIED_DOMAINS_VAR = 'KINDGI_AUTH_VERIFIED_DOMAINS';
|
|
42
|
+
|
|
43
|
+
/** "Continue with Google": the deployment's own app's client id. */
|
|
44
|
+
export const AUTH_GOOGLE_CLIENT_ID_VAR = 'KINDGI_AUTH_GOOGLE_CLIENT_ID';
|
|
45
|
+
|
|
46
|
+
/** Its client secret, or a file holding it (`…_SECRET_PATH`). */
|
|
47
|
+
export const AUTH_GOOGLE_CLIENT_SECRET_VAR = 'KINDGI_AUTH_GOOGLE_CLIENT_SECRET';
|
|
48
|
+
export const AUTH_GOOGLE_CLIENT_SECRET_PATH_VAR = 'KINDGI_AUTH_GOOGLE_CLIENT_SECRET_PATH';
|
|
49
|
+
|
|
50
|
+
/** "Continue with Microsoft": the deployment's own app's client id. */
|
|
51
|
+
export const AUTH_MICROSOFT_CLIENT_ID_VAR = 'KINDGI_AUTH_MICROSOFT_CLIENT_ID';
|
|
52
|
+
|
|
53
|
+
/** Its client secret, or a file holding it (`…_SECRET_PATH`). */
|
|
54
|
+
export const AUTH_MICROSOFT_CLIENT_SECRET_VAR = 'KINDGI_AUTH_MICROSOFT_CLIENT_SECRET';
|
|
55
|
+
export const AUTH_MICROSOFT_CLIENT_SECRET_PATH_VAR = 'KINDGI_AUTH_MICROSOFT_CLIENT_SECRET_PATH';
|
|
56
|
+
|
|
57
|
+
/** "Continue with GitHub": the deployment's own app's client id. */
|
|
58
|
+
export const AUTH_GITHUB_CLIENT_ID_VAR = 'KINDGI_AUTH_GITHUB_CLIENT_ID';
|
|
59
|
+
|
|
60
|
+
/** Its client secret, or a file holding it (`…_SECRET_PATH`). */
|
|
61
|
+
export const AUTH_GITHUB_CLIENT_SECRET_VAR = 'KINDGI_AUTH_GITHUB_CLIENT_SECRET';
|
|
62
|
+
export const AUTH_GITHUB_CLIENT_SECRET_PATH_VAR = 'KINDGI_AUTH_GITHUB_CLIENT_SECRET_PATH';
|
|
63
|
+
|
|
64
|
+
/** The emailed sign-in link: the SMTP server to send it through (a URL with its credentials), or a file holding it. */
|
|
65
|
+
export const AUTH_EMAIL_SMTP_URL_VAR = 'KINDGI_AUTH_EMAIL_SMTP_URL';
|
|
66
|
+
export const AUTH_EMAIL_SMTP_URL_PATH_VAR = 'KINDGI_AUTH_EMAIL_SMTP_URL_PATH';
|
|
67
|
+
|
|
68
|
+
/** The emailed sign-in link's From address. */
|
|
69
|
+
export const AUTH_EMAIL_FROM_VAR = 'KINDGI_AUTH_EMAIL_FROM';
|
|
70
|
+
|
|
71
|
+
/** At most this many emailed links to one address in 24 hours. Default 10. */
|
|
72
|
+
export const AUTH_EMAIL_LINK_DAILY_CAP_VAR = 'KINDGI_AUTH_EMAIL_LINK_DAILY_CAP';
|
|
73
|
+
|
|
74
|
+
/** Cloudflare Turnstile on asking for an emailed link: its secret (or a file holding it) and its site key. */
|
|
75
|
+
export const AUTH_TURNSTILE_SECRET_VAR = 'KINDGI_AUTH_TURNSTILE_SECRET';
|
|
76
|
+
export const AUTH_TURNSTILE_SECRET_PATH_VAR = 'KINDGI_AUTH_TURNSTILE_SECRET_PATH';
|
|
77
|
+
export const AUTH_TURNSTILE_SITE_KEY_VAR = 'KINDGI_AUTH_TURNSTILE_SITE_KEY';
|
|
78
|
+
|
|
79
|
+
/** Which hops in front of the runtime to trust for the client's address: a hop count, or IPs/CIDRs. */
|
|
80
|
+
export const TRUSTED_PROXIES_VAR = 'KINDGI_TRUSTED_PROXIES';
|
|
81
|
+
|
|
82
|
+
/** A browser session's absolute lifetime, in milliseconds. */
|
|
83
|
+
export const SESSION_TTL_MS_VAR = 'KINDGI_SESSION_TTL_MS';
|
|
84
|
+
|
|
85
|
+
/** How long a browser session may sit idle, in milliseconds. */
|
|
86
|
+
export const SESSION_IDLE_TIMEOUT_MS_VAR = 'KINDGI_SESSION_IDLE_TIMEOUT_MS';
|
|
87
|
+
|
|
88
|
+
/** Whether a person may sign in to the console with an API token (`on` / `off`). */
|
|
89
|
+
export const CONSOLE_TOKEN_SIGN_IN_VAR = 'KINDGI_CONSOLE_TOKEN_SIGN_IN';
|
|
90
|
+
|
|
26
91
|
/** The shared secret between the server and the pack service. */
|
|
27
92
|
export const PACK_SERVICE_TOKEN_VAR = 'KINDGI_PACK_SERVICE_TOKEN';
|
|
28
93
|
|