zeekay
db80c16b10
feat(widget): per-key model allowlist (WIDGET_KEY_MODELS) for public widget keys
...
Bind a public hz_ widget key to EXACTLY the models its owner provisioned — the
docs Ask AI key to enso only — so a leaked key cannot reach arbitrary or
expensive models the coarse global widget allowlist happens to permit.
- object.WidgetKeyModels(token): per-key model allowlist over WIDGET_KEY_MODELS
(KMS-first, env fallback), mirroring WidgetKeyOwner exactly; the two share one
parser (loadKeyMap), so a widget key is configured the one way everywhere.
- resolveProviderFromWidgetKey: a key with an explicit binding is restricted to
that set; a key with no binding falls back to the global cheap-model allowlist.
Fail-secure: an enso-bound key can never fall through to other models.
- Tests: object + controller gate (bound key = enso-only, cannot reach premium;
unbound key falls back to global; case-insensitive; JSON + comma-list forms).
Guardrail for the docs.hanzo.ai support-AI: with rate limit (per-owner-org) and
the prepaid balance gate already enforced, this caps WHICH models a leaked docs
key can call. No behavior change for existing widget keys (no WIDGET_KEY_MODELS).
2026-07-24 23:57:57 -07:00
..
2026-07-02 13:02:21 -07:00
2026-07-19 13:10:53 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-16 09:57:36 -07:00
2026-07-23 02:13:22 -07:00
2026-07-19 13:10:53 -07:00
2026-06-28 09:55:25 -07:00
2026-06-28 09:55:25 -07:00
2026-07-21 16:53:10 -07:00
2026-07-21 16:53:10 -07:00
2026-07-21 14:43:37 -07:00
2026-07-02 13:02:21 -07:00
2026-07-22 15:51:35 -07:00
2026-07-22 15:51:35 -07:00
2026-07-22 15:51:35 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-01 15:16:16 -07:00
2026-07-11 21:58:43 -07:00
2026-07-16 09:57:36 -07:00
2026-07-20 13:05:34 -07:00
2026-07-02 13:02:21 -07:00
2026-07-21 14:43:37 -07:00
2026-07-02 13:02:21 -07:00
2026-07-03 00:39:50 -07:00
2026-07-17 15:46:24 -07:00
2026-07-17 15:46:24 -07:00
2026-07-11 21:58:43 -07:00
2026-07-17 15:46:24 -07:00
2026-04-07 00:09:36 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-04 11:38:55 -07:00
2026-07-16 11:24:36 -07:00
2026-07-17 15:46:24 -07:00
2026-07-02 13:02:21 -07:00
2026-06-29 23:37:11 -07:00
2026-06-29 23:37:11 -07:00
2026-06-29 23:37:11 -07:00
2026-06-29 23:37:11 -07:00
2026-07-18 23:29:45 -07:00
2026-07-16 09:08:52 -07:00
2026-07-02 13:02:21 -07:00
2026-07-16 15:18:31 -07:00
2026-07-17 15:46:24 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-03 15:20:02 -07:00
2026-07-03 22:45:22 -07:00
2026-07-17 15:46:24 -07:00
2026-07-15 19:10:56 -07:00
2026-06-11 10:24:30 -07:00
2026-06-26 17:20:56 -07:00
2026-06-26 17:20:56 -07:00
2026-07-16 00:00:39 -07:00
2026-07-14 08:24:39 -07:00
2026-07-21 14:43:37 -07:00
2026-07-17 15:46:24 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-12 09:55:04 -07:00
2026-06-27 22:04:10 -07:00
2026-07-02 13:02:21 -07:00
2026-07-17 15:46:24 -07:00
2026-07-02 13:02:21 -07:00
2026-07-22 16:19:09 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-15 19:10:56 -07:00
2026-07-16 00:45:13 -07:00
2026-07-22 16:19:09 -07:00
2026-07-02 13:02:21 -07:00
2026-07-19 13:10:53 -07:00
2026-07-18 21:04:47 -07:00
2026-07-22 15:51:35 -07:00
2026-07-02 13:02:21 -07:00
2026-07-21 14:43:37 -07:00
2026-07-02 13:02:21 -07:00
2026-07-04 19:22:38 -07:00
2026-07-04 19:22:38 -07:00
2026-07-04 19:22:38 -07:00
2026-07-03 01:07:42 -07:00
2026-07-15 19:10:56 -07:00
2026-07-03 01:07:42 -07:00
2026-07-04 11:38:55 -07:00
2026-07-19 21:20:52 -07:00
2026-07-22 16:19:09 -07:00
2026-07-02 21:17:18 -07:00
2026-07-02 21:17:18 -07:00
2026-07-17 15:46:24 -07:00
2026-07-02 13:02:21 -07:00
2026-07-17 21:56:49 -07:00
2026-07-21 14:43:37 -07:00
2026-07-21 14:43:37 -07:00
2026-07-21 14:43:37 -07:00
2026-07-16 00:11:15 -07:00
2026-07-16 20:07:52 -07:00
2026-07-18 09:22:46 -07:00
2026-07-15 23:40:25 -07:00
2026-07-18 17:29:38 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-17 15:46:24 -07:00
2026-07-02 13:02:21 -07:00
2026-07-17 15:46:24 -07:00
2026-07-17 15:46:24 -07:00
2026-07-02 13:02:21 -07:00
2026-07-17 15:46:24 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-18 00:26:24 -07:00
2026-07-02 13:02:21 -07:00
2026-07-17 15:46:24 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-06-21 19:05:48 -07:00
2026-07-17 15:46:24 -07:00
2026-07-02 13:02:21 -07:00
2026-07-10 17:45:02 -07:00
2026-07-23 02:13:22 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-16 20:07:52 -07:00
2026-07-16 20:07:52 -07:00
2026-07-17 15:46:24 -07:00
2026-07-17 15:46:24 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-22 16:19:09 -07:00
2026-07-17 22:07:39 -07:00
2026-07-17 15:46:24 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-17 15:46:24 -07:00
2026-07-02 13:02:21 -07:00
2026-07-17 15:46:24 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-02 13:02:21 -07:00
2026-07-24 23:57:57 -07:00
2026-07-24 23:57:57 -07:00
2026-07-02 13:02:21 -07:00
2026-07-17 15:46:24 -07:00