Beenu Arora
2d034fcc71
fix(api): bound re-roling in both directions, and give the service principal one permission model ( #1750 )
...
* fix(api): bound re-roling in both directions, and give the service principal one permission model
GHSA-qcgm-c945-q96h: authorize_role_change checked only the role being
conferred, and the last-administrator guard counted only the wildcard roles
that no API caller can hold -- so one tenant_admin could demote every peer
and then itself, leaving a tenant nobody can administer. Reproduced at 200
twice against real Postgres. The guard's count also bound uuid columns as
text, so it answered 500 rather than 409 the moment it fired.
GHSA-ghpm-vc6j-hp5r: SERVICE_PRINCIPAL_PERMISSIONS and
ROLE_PERMISSIONS[api_service] declared one principal twice and disagreed,
and has_permission_db read neither the resolved set nor elevation nor
conditions. A deprovisioned user reached GET /api/v1/mcp-servers on their
old static role at 200 while every require_permission route answered 403.
* docs(security): point the advisory references at the surviving report
The finding was submitted twice, 28 seconds apart, with byte-identical
descriptions. GHSA-hrc5-w9r3-2g8r is the first-filed one and the one whose
reporter credit is already accepted, so it is kept and GHSA-qcgm-c945-q96h
is closed as the duplicate. Every code comment, test and document that
named the duplicate now names the live advisory.
* fix(gate): narrow the assignment node before reading its value
mypy's attr-defined: the conditional pulled .targets and .value off a bare
ast.stmt. Same check, narrowed per node type.
2026-11-06 22:04:16 -08:00
..
2026-10-25 07:04:11 -07:00
2026-10-12 12:01:51 +08:00
2026-09-24 19:36:59 -07:00
2026-06-30 16:13:26 +07:00
2026-10-12 14:12:59 +08:00
2026-11-02 09:39:51 -08:00
2026-11-02 12:52:10 -08:00
2026-10-22 12:28:28 +07:00
2026-06-30 16:13:26 +07:00
2026-09-29 04:29:47 -07:00
2026-09-21 23:02:20 -07:00
2026-09-23 23:09:14 -07:00
2026-09-24 19:36:59 -07:00
2026-09-24 08:08:57 -07:00
2026-09-24 19:36:59 -07:00
2026-09-24 19:36:59 -07:00
2026-09-24 19:36:59 -07:00
2026-11-06 01:33:06 -08:00
2026-11-03 16:44:50 -08:00
2026-09-26 11:27:55 -07:00
2026-11-02 17:53:00 -08:00
2026-09-24 19:36:59 -07:00
2026-10-08 23:48:47 +05:30
2026-09-27 05:18:33 -07:00
2026-10-11 15:21:21 +05:30
2026-10-11 15:21:21 +05:30
2026-11-01 21:22:08 -08:00
2026-11-06 02:09:25 -08:00
2026-09-24 08:08:57 -07:00
2026-09-30 22:10:51 -07:00
2026-11-06 01:33:06 -08:00
2026-11-02 20:17:50 -08:00
2026-09-29 19:02:26 -07:00
2026-10-11 10:05:40 +05:30
2026-11-02 12:52:10 -08:00
2026-11-03 09:20:38 -08:00
2026-10-27 19:52:24 -07:00
2026-10-27 10:08:02 -07:00
2026-09-24 19:36:59 -07:00
2026-11-01 11:09:36 -08:00
2026-09-24 19:36:59 -07:00
2026-11-02 17:53:00 -08:00
2026-11-05 06:22:13 -08:00
2026-11-06 04:16:00 -08:00
2026-11-02 16:04:17 -08:00
2026-10-01 18:57:59 -07:00
2026-11-02 21:50:08 -08:00
2026-09-28 18:06:03 -07:00
2026-10-09 08:58:13 +05:30
2026-09-24 16:31:22 -07:00
2026-09-28 09:53:31 -07:00
2026-09-28 13:24:09 -07:00
2026-09-25 10:47:09 -07:00
2026-09-29 04:29:47 -07:00
2026-11-06 03:10:09 -08:00
2026-09-30 17:51:17 -07:00
2026-11-06 01:33:06 -08:00
2026-11-03 16:44:50 -08:00
2026-11-02 17:53:00 -08:00
2026-11-02 17:53:00 -08:00
2026-11-01 17:41:03 -08:00
2026-11-04 15:28:39 -08:00
2026-09-25 11:00:48 -07:00
2026-10-09 00:44:26 +05:30
2026-11-01 17:41:03 -08:00
2026-09-28 10:52:11 -07:00
2026-09-24 19:36:59 -07:00
2026-09-24 19:36:59 -07:00
2026-10-03 14:43:55 -07:00
2026-10-04 03:26:56 -07:00
2026-11-02 17:53:00 -08:00
2026-09-24 08:08:57 -07:00
2026-09-24 08:08:57 -07:00
2026-10-04 18:29:43 -07:00
2026-09-24 19:36:59 -07:00
2026-10-09 13:48:27 +05:30
2026-09-27 12:32:01 -07:00
2026-09-27 10:03:20 -07:00
2026-11-06 10:01:18 -08:00
2026-09-25 11:16:58 -07:00
2026-10-08 04:32:32 +05:30
2026-11-06 06:46:50 -08:00
2026-09-27 05:18:33 -07:00
2026-09-27 10:28:06 -07:00
2026-11-01 04:13:01 -08:00
2026-09-30 20:45:46 -07:00
2026-11-02 10:24:43 -08:00
2026-09-28 10:47:38 -07:00
2026-09-28 20:27:44 -07:00
2026-09-24 13:22:31 -07:00
2026-11-03 15:19:47 -08:00
2026-09-24 05:46:06 -07:00
2026-10-11 14:54:42 +05:30
2026-11-05 10:59:54 -08:00
2026-09-28 00:25:24 -07:00
2026-10-22 03:55:00 +07:00
2026-09-27 03:30:08 -07:00
2026-10-11 10:02:11 +05:30
2026-09-27 04:29:48 -07:00
2026-10-27 13:53:16 -07:00
2026-11-06 10:01:18 -08:00
2026-10-01 19:46:07 -07:00
2026-11-06 15:05:11 +02:00
2026-09-24 20:07:03 -07:00
2026-11-02 20:17:50 -08:00
2026-11-01 15:17:44 -08:00
2026-10-04 19:11:54 -07:00
2026-11-06 22:04:16 -08:00
2026-09-28 08:46:25 -07:00
2026-11-04 11:27:27 -08:00
2026-11-03 09:20:38 -08:00
2026-11-01 18:51:41 -08:00
2026-11-03 06:58:19 -08:00
2026-10-04 11:22:26 -07:00
2026-11-03 08:33:48 -08:00
2026-11-02 22:42:57 -08:00
2026-11-06 06:47:23 -08:00
2026-09-29 04:37:28 -07:00
2026-11-04 18:57:08 -08:00
2026-09-29 01:47:36 -07:00
2026-09-28 11:58:46 -07:00
2026-11-03 23:43:13 -08:00
2026-11-01 17:41:03 -08:00
2026-10-10 18:13:54 +05:30
2026-09-26 22:10:21 -07:00
2026-09-24 19:36:59 -07:00
2026-11-05 06:58:22 -08:00
2026-10-12 12:53:08 +08:00
2026-11-02 09:39:51 -08:00
2026-09-24 19:36:59 -07:00
2026-10-05 08:08:00 -07:00
2026-11-02 19:09:29 -08:00
2026-11-03 22:22:26 -08:00
2026-10-01 18:57:59 -07:00
2026-09-27 01:47:18 -07:00
2026-11-03 22:22:26 -08:00
2026-11-03 14:05:21 -08:00
2026-09-24 19:36:59 -07:00
2026-11-02 20:17:50 -08:00
2026-09-26 19:51:57 -07:00
2026-10-18 09:05:12 +11:00
2026-11-02 17:53:00 -08:00
2026-10-08 23:37:48 +05:30
2026-09-25 09:07:38 -07:00
2026-09-28 08:46:11 -07:00
2026-10-08 05:52:00 +05:30
2026-09-24 17:23:54 -07:00
2026-10-04 03:26:56 -07:00
2026-11-02 17:53:00 -08:00
2026-10-09 10:01:15 +05:30
2026-09-24 08:08:57 -07:00
2026-11-06 02:08:23 -08:00
2026-10-12 12:53:08 +08:00
2026-10-11 06:59:54 +05:30
2026-09-24 19:36:59 -07:00
2026-10-09 13:47:07 +05:30
2026-11-03 22:22:26 -08:00
2026-09-27 06:36:58 -07:00
2026-10-11 03:39:25 +05:30
2026-11-03 03:57:18 -08:00
2026-10-25 00:57:45 -07:00
2026-09-24 19:36:59 -07:00
2026-09-27 09:33:57 -07:00
2026-11-02 16:04:17 -08:00
2026-10-04 03:26:56 -07:00
2026-10-08 04:40:19 +05:30
2026-10-31 19:29:34 -07:00
2026-10-07 19:33:06 +05:30
2026-10-09 11:45:30 +05:30
2026-09-28 17:17:22 -07:00
2026-10-02 21:32:26 -07:00
2026-09-23 23:47:41 -07:00
2026-10-09 03:06:07 +05:30
2026-11-03 16:44:50 -08:00
2026-09-24 08:08:57 -07:00
2026-09-26 11:06:25 -07:00
2026-09-26 13:26:09 -07:00
2026-05-04 04:19:51 -07:00
2026-06-30 16:13:26 +07:00
2026-11-02 17:53:00 -08:00
2026-11-02 17:53:00 -08:00
2026-10-28 14:26:38 -07:00
2026-11-01 16:21:16 -08:00
2026-09-24 04:22:30 -07:00
2026-10-10 08:36:49 +05:30
2026-10-09 11:45:30 +05:30
2026-10-28 14:26:38 -07:00
2026-09-24 04:22:30 -07:00
2026-10-11 10:46:23 +05:30
2026-11-02 17:53:00 -08:00
2026-11-05 09:47:42 -08:00
2026-10-03 11:40:41 -07:00
2026-10-09 10:01:15 +05:30
2026-11-03 15:19:47 -08:00
2026-11-01 18:51:41 -08:00
2026-10-04 03:26:56 -07:00
2026-09-24 19:36:59 -07:00
2026-09-24 19:33:21 -07:00
2026-11-02 17:53:00 -08:00
2026-10-11 04:25:33 +05:30
2026-10-04 09:12:15 -07:00
2026-10-11 09:01:01 +05:30
2026-11-01 04:13:01 -08:00
2026-11-02 15:57:16 -08:00
2026-09-24 10:02:04 -07:00
2026-09-24 19:36:59 -07:00
2026-09-24 13:01:01 -07:00
2026-11-04 06:57:14 -08:00
2026-10-31 15:36:49 -07:00
2026-09-24 08:08:57 -07:00
2026-10-28 14:26:38 -07:00
2026-11-01 04:13:01 -08:00
2026-10-03 11:40:41 -07:00
2026-10-09 14:46:42 +05:30
2026-05-08 22:39:13 -07:00
2026-11-03 08:33:48 -08:00
2026-09-24 19:36:59 -07:00
2026-09-24 19:36:59 -07:00
2026-11-02 15:57:16 -08:00
2026-09-29 02:49:35 -07:00
2026-10-03 11:40:41 -07:00
2026-11-01 04:13:01 -08:00
2026-10-22 18:39:13 +07:00
2026-09-24 08:08:57 -07:00
2026-09-24 19:36:59 -07:00
2026-11-06 06:46:50 -08:00
2026-10-29 17:24:40 -07:00
2026-11-03 00:30:20 -08:00
2026-09-24 08:08:57 -07:00
2026-11-06 01:33:06 -08:00
2026-11-06 01:33:06 -08:00
2026-11-02 17:53:00 -08:00
2026-10-12 12:01:51 +08:00
2026-09-24 19:36:59 -07:00
2026-10-25 04:18:00 -07:00
2026-10-22 18:39:13 +07:00
2026-11-06 01:33:06 -08:00
2026-10-09 11:45:30 +05:30
2026-10-03 14:43:55 -07:00
2026-09-27 10:03:20 -07:00
2026-10-31 19:29:34 -07:00
2026-10-12 11:59:05 +08:00
2026-10-31 19:29:34 -07:00
2026-10-11 12:12:45 +05:30
2026-10-31 19:29:34 -07:00
2026-11-02 05:25:26 -08:00
2026-09-24 19:36:59 -07:00
2026-10-22 13:21:29 +07:00
2026-09-23 23:09:14 -07:00
2026-09-26 11:06:25 -07:00
2026-10-09 10:01:15 +05:30
2026-09-26 11:06:25 -07:00
2026-09-29 04:37:53 -07:00
2026-09-24 19:36:59 -07:00
2026-10-12 23:15:05 +08:00
2026-11-03 02:22:34 -08:00
2026-11-02 05:31:32 -08:00
2026-11-03 16:44:50 -08:00
2026-10-10 17:09:38 +05:30
2026-11-01 11:09:36 -08:00
2026-11-01 11:09:36 -08:00
2026-11-06 02:09:25 -08:00
2026-09-26 22:10:21 -07:00
2026-09-26 23:07:14 -07:00
2026-10-01 19:46:07 -07:00
2026-11-01 04:13:01 -08:00
2026-09-30 20:45:46 -07:00
2026-09-24 19:33:21 -07:00
2026-09-24 19:36:59 -07:00
2026-09-24 08:08:57 -07:00
2026-10-02 15:28:01 -07:00
2026-09-24 08:08:57 -07:00
2026-11-03 00:30:13 -08:00
2026-09-27 00:26:21 -07:00
2026-09-24 08:08:57 -07:00
2026-10-04 11:22:26 -07:00
2026-10-09 02:55:15 +05:30
2026-10-12 15:17:22 +08:00
2026-09-24 19:36:59 -07:00
2026-11-02 17:53:00 -08:00
2026-10-21 11:57:10 +07:00
2026-09-24 19:36:59 -07:00
2026-09-24 19:36:59 -07:00
2026-10-22 12:01:41 +07:00
2026-10-28 14:26:38 -07:00