1 Commits
Author SHA1 Message Date
viettranx 7a8f4c6446 feat(upgrade): add data migration hook for web_search inline API keys
Implement 055_web_search_legacy_keys_to_config_secrets migration hook that:
- Extracts inline API keys from config.json5 (tools.web.{exa,tavily,brave})
- Migrates inline api_key fields from builtin_tool_tenant_configs settings JSON
- Inserts all keys into config_secrets under appropriate tenant scope
- Strips inline fields from settings blobs to prevent re-migration

Hook is idempotent, tracked in data_migrations table, PostgreSQL-only.
2026-04-18 17:47:13 +07:00