ARTEX/web
BaaRai 68976a7680 secrets: encrypt the exec spec of custom tools at rest
Phase 3 of secrets at rest (#213, #216), same AES-256-GCM scheme and key.

- tools.exec joins the secret columns for system=false rows (AAD
  tools.exec): the whole JSON is sealed in the {"__artex_enc":"enc:v1:..."}
  envelope, so headers, body, proxy, script code and command are covered;
  {} stays {}
- CreateCustomTool and UpdateCustomTool seal it; scanTool opens it, so
  GetTool, ListTools and ListCustomTools (and through them customTools,
  the platform tools and the test endpoint) see the clear JSON in memory
- the startup backfill, the no-key refusal and the wrong-key check cover
  it, for system=false rows only; built-in rows stay in clear for the seeds

API: GET /api/tools returns the header values, proxy and body of a custom
tool masked, with headers_set, proxy_set and body_set. On update (API and
update_custom_tool) the placeholder keeps the stored value, an explicit
value replaces it and "" clears it; on create (API and create_custom_tool)
a placeholder is refused. The test endpoint takes an optional key: the
saved tool's stored values replace the placeholders; the editor sends it.
2026-11-13 21:52:27 +01:00
..
.husky chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
media chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
public chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
src secrets: encrypt the exec spec of custom tools at rest 2026-11-13 21:52:27 +01:00
.gitignore chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
biome.json chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
components.json chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
LICENSE chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
next.config.mjs Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
package-lock.json refactor(coverage): 资产覆盖图改用 G6 真力导向布局 2026-08-08 13:14:49 -04:00
package.json refactor(coverage): 资产覆盖图改用 G6 真力导向布局 2026-08-08 13:14:49 -04:00
postcss.config.mjs chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
tsconfig.json chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
tsconfig.scripts.json chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00