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-21 14:43:37 -07:00
2026-07-22 16:19:09 -07:00
2026-07-02 13:02:21 -07:00
2026-02-09 19:08:26 -08:00
2026-07-22 16:19:09 -07:00
2026-07-17 22:07:39 -07:00
2026-07-17 22:07:39 -07:00
2026-07-12 09:32:50 -07:00
2026-07-17 15:55:52 -07:00
2026-07-17 15:55:52 -07:00
2026-07-17 15:55:52 -07:00
2026-07-22 16:19:09 -07:00
2026-06-28 01:16:41 -07:00
2026-07-19 21:20:52 -07:00
2026-07-22 16:19:09 -07:00
2026-07-22 03:06:22 -07:00
2026-07-22 16:19:09 -07:00
2026-07-16 00:45:13 -07:00
2026-07-16 14:14:35 -07:00
2026-07-15 03:05:10 -07:00
2026-07-17 22:07:39 -07:00
2026-07-22 16:19:09 -07:00
2026-07-21 18:32:47 -07:00
2026-07-17 15:55:52 -07:00
2026-07-02 13:02:21 -07:00
2026-07-22 16:19:09 -07:00
2026-07-21 14:43:37 -07:00
2026-07-22 16:19:09 -07:00
2026-07-17 15:55:52 -07:00
2026-07-22 16:19:09 -07:00
2026-07-21 14:43:37 -07:00
2026-07-17 15:55:52 -07:00
2026-07-22 16:18:56 -07:00
2026-07-22 16:18:56 -07:00
2026-07-10 10:39:35 -07:00
2026-07-15 19:06:01 -07:00
2026-07-15 19:06:01 -07:00
2026-07-15 19:06:01 -07:00
2026-07-17 15:55:52 -07:00
2026-07-16 14:22:54 -07:00
2026-07-17 15:46:24 -07:00
2026-07-16 09:08:11 -07:00
2026-07-17 15:46:24 -07:00
2026-07-18 23:29:45 -07:00
2026-07-19 12:19:50 -07:00
2026-07-17 15:55:52 -07:00
2026-07-17 15:46:24 -07:00
2026-07-17 15:55:52 -07:00
2026-07-14 06:52:12 -07:00
2026-07-21 16:53:10 -07:00
2026-07-21 14:43:37 -07:00
2026-07-16 00:10:39 -07:00
2026-07-17 15:46:24 -07:00
2026-07-18 16:50:53 -07:00
2026-07-19 21:37:44 -07:00
2026-07-19 19:34:27 -07:00
2026-07-18 16:40:45 -07:00
2026-07-22 16:19:09 -07:00
2026-07-17 15:46:24 -07:00
2026-07-17 15:55:52 -07:00
2026-07-13 12:48:28 -07:00
2026-07-02 13:02:21 -07:00
2026-07-17 15:55:52 -07:00
2026-07-22 03:06:22 -07:00
2026-07-21 17:48:22 -07:00
2026-07-02 13:02:21 -07:00
2026-07-17 15:55:52 -07:00
2026-07-17 15:55:52 -07:00
2026-07-17 15:55:52 -07:00
2026-07-14 06:52:12 -07:00
2026-07-22 16:19:09 -07:00
2026-07-22 16:19:09 -07:00
2026-07-17 15:55:52 -07:00
2026-07-14 06:52:12 -07:00
2026-07-17 15:55:52 -07:00
2026-06-27 22:04:10 -07:00
2026-07-09 15:58:18 -07:00
2026-07-16 15:10:16 -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 21:56:49 -07:00
2026-07-17 15:55:52 -07:00
2026-07-21 14:43:37 -07:00
2026-07-22 16:19:09 -07:00
2026-07-17 15:46:24 -07:00
2026-07-16 00:10:39 -07:00
2026-07-18 23:29:45 -07:00
2026-07-14 06:52:12 -07:00
2026-07-17 15:46:24 -07:00
2026-07-18 16:12:44 -07:00
2026-07-17 15:55:52 -07:00
2026-07-14 06:52:12 -07:00
2026-07-19 19:34:27 -07:00
2026-07-21 14:43:37 -07:00
2026-07-17 15:55:52 -07:00
2026-07-24 23:57:57 -07:00
2026-07-24 23:57:57 -07:00
2026-07-13 22:42:02 -07:00
2026-07-16 09:08:52 -07:00
2026-07-18 16:16:55 -07:00
2026-07-17 22:07:39 -07:00
2026-07-19 21:20:52 -07:00
2026-07-19 21:37:44 -07:00
2026-07-22 16:19:09 -07:00
2026-07-02 13:02:21 -07:00
2026-07-17 15:55:52 -07:00
2026-07-22 16:19:09 -07:00
2026-07-08 17:15:52 -07:00
2026-07-22 16:19:09 -07:00
2026-07-04 19:22:38 -07:00
2026-07-22 16:19:09 -07:00
2026-07-09 08:55:08 -07:00
2026-07-03 01:07:42 -07:00
2026-07-03 01:07:42 -07:00
2026-07-17 15:55:52 -07:00
2026-07-02 21:17:18 -07:00
2026-07-02 21:17:18 -07:00
2026-07-02 21:17:18 -07:00
2026-07-15 03:05:10 -07:00
2026-07-15 03:05:10 -07:00
2026-05-18 23:38:00 -07:00
2026-07-17 15:55:52 -07:00
2026-07-02 13:02:21 -07:00
2026-07-17 21:56:49 -07:00
2026-07-12 17:34:48 -07:00
2026-07-12 17:34:48 -07:00
2026-07-19 16:28:25 -07:00
2026-07-16 20:07:52 -07:00
2026-07-16 20:07:52 -07:00
2026-07-18 20:43:08 -07:00
2026-07-19 07:05:39 -07:00
2026-07-18 23:06:39 -07:00
2026-07-18 23:06:39 -07:00
2026-07-18 20:09:47 -07:00
2026-07-19 07:05:39 -07:00
2026-07-18 21:04:47 -07:00
2026-07-21 16:48:51 -07:00
2026-07-18 23:06:39 -07:00
2026-07-18 23:06:39 -07:00
2026-07-18 23:06:39 -07:00
2026-07-17 20:48:46 -07:00
2026-07-21 11:29:28 -07:00
2026-07-21 16:48:51 -07:00
2026-07-21 16:48:51 -07:00
2026-07-18 17:00:02 -07:00
2026-07-21 16:48:51 -07:00
2026-07-21 12:42:12 -07:00
2026-07-21 16:48:51 -07:00
2026-07-18 17:29:38 -07:00
2026-07-18 17:29:38 -07:00
2026-07-18 12:36:45 -07:00
2026-07-21 16:48:51 -07:00
2026-07-22 16:19:09 -07:00
2026-07-21 16:48:51 -07:00
2026-07-17 15:55:52 -07:00
2026-07-17 15:55:52 -07:00
2026-07-16 14:22:54 -07:00
2026-07-22 16:19:09 -07:00
2026-07-17 15:55:52 -07:00
2026-07-16 14:14:35 -07:00
2026-07-21 14:43:37 -07:00
2026-07-17 15:55:52 -07:00
2026-07-02 13:02:21 -07:00
2026-07-17 15:46:24 -07:00
2026-07-17 15:55:52 -07:00
2026-07-23 02:13:22 -07:00
2026-07-23 02:13:22 -07:00
2026-07-09 08:55:08 -07:00
2026-07-17 15:55:52 -07:00
2026-07-17 15:46:24 -07:00
2026-07-16 14:14:35 -07:00
2026-07-16 15:18:31 -07:00
2026-07-21 14:43:37 -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-16 00:45:13 -07:00
2026-07-17 22:07:39 -07:00
2026-07-09 15:58:18 -07:00
2026-07-09 15:58:18 -07:00
2026-07-22 16:19:09 -07:00
2026-07-17 15:55:52 -07:00
2026-07-03 22:01:23 -07:00
2026-07-17 15:55:52 -07:00
2026-07-16 00:10:39 -07:00
2026-07-22 16:19:09 -07:00
2026-07-19 20:11:20 -07:00
2026-02-09 19:46:59 -08:00
2026-07-17 15:46:24 -07:00
2026-07-17 15:55:52 -07:00
2026-07-22 16:19:09 -07:00
2026-07-22 16:19:09 -07:00
2026-07-22 16:18:56 -07:00
2026-07-19 18:12:18 -07:00
2026-07-19 18:12:18 -07:00
2026-07-22 16:19:09 -07:00
2026-07-19 18:12:18 -07:00
2026-07-21 14:43:37 -07:00
2026-07-19 18:08:24 -07:00
2026-07-22 16:19:09 -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-21 14:43:37 -07:00
2026-07-19 18:12:18 -07:00
2026-07-22 16:19:09 -07:00
2026-07-17 21:56:49 -07:00
2026-07-18 12:25:14 -07:00
2026-07-19 18:12:18 -07:00
2026-07-22 16:19:09 -07:00
2026-07-19 18:12:18 -07:00
2026-07-21 14:43:37 -07:00
2026-07-17 15:46:24 -07:00
2026-07-19 18:12:18 -07:00
2026-07-22 16:19:09 -07:00
2026-07-19 18:12:18 -07:00
2026-07-19 18:12:18 -07:00
2026-07-19 18:12:18 -07:00
2026-07-22 16:19:09 -07:00
2026-07-22 16:19:09 -07:00
2026-07-19 18:12:18 -07:00
2026-07-21 14:43:37 -07:00
2026-07-19 18:12:18 -07:00
2026-07-21 14:43:37 -07:00
2026-07-19 18:12:18 -07:00
2026-07-22 16:19:09 -07:00
2026-07-19 18:12:18 -07:00
2026-07-19 18:12:18 -07:00
2026-07-19 18:12:18 -07:00
2026-07-21 16:48:51 -07:00
2026-07-21 16:48:51 -07:00
2026-07-19 18:12:18 -07:00
2026-07-21 14:43:37 -07:00
2026-07-21 16:48:51 -07:00
2026-07-21 16:48:51 -07:00
2026-07-19 18:12:18 -07:00
2026-07-22 16:19:09 -07:00
2026-07-21 14:43:37 -07:00
2026-07-22 16:19:09 -07:00
2026-07-22 16:19:09 -07:00
2026-07-18 12:36:45 -07:00
2026-07-22 16:19:09 -07:00