Anso
9aaa8573c0
fix(mesh): gate Trigger 2 re-bootstrap on actual api_token change ( #1076 )
...
The PUT /api/nodes/:id handler closed and re-dialed the mesh callback
bridge on every save that included api_token in the body, even when the
token was unchanged. The frontend always sends the full formData on
Save, so renames and compose_dir edits against a mesh-enabled proxy
remote produced a wasted closeBridge + ensureBridge round-trip and a
spurious manager_rejected entry in the activity log.
Gate the re-bootstrap on a real value diff against the persisted token.
Adds an existing-node lookup (returns 404 on missing id, which the
handler previously lacked) so the comparison has the pre-update value.
Reorders the guards so resource-not-found beats payload validation.
Adds one integration test for the same-token path; the existing three
trigger-2 cases continue to assert close + ensure firing on a real
rotation, no-token-in-payload, and mesh-disabled.
2026-05-17 01:48:02 -04:00
..
2026-05-15 18:21:28 -04:00
2026-04-23 21:22:39 -04:00
2026-04-13 22:17:03 -04:00
2026-05-15 18:21:28 -04:00
2026-05-15 18:21:28 -04:00
2026-04-18 18:24:27 -04:00
2026-04-25 17:26:04 -04:00
2026-04-05 18:45:57 -04:00
2026-05-15 18:21:28 -04:00
2026-05-14 10:20:57 -04:00
2026-05-14 10:20:57 -04:00
2026-04-26 13:05:19 -04:00
2026-05-01 18:57:44 -04:00
2026-05-12 15:49:19 -04:00
2026-05-06 21:58:45 -04:00
2026-05-12 15:49:19 -04:00
2026-04-10 10:05:05 -04:00
2026-04-10 10:05:05 -04:00
2026-05-16 14:58:19 -04:00
2026-05-14 10:21:08 -04:00
2026-04-26 15:42:21 -04:00
2026-04-26 15:42:21 -04:00
2026-05-12 19:30:49 -04:00
2026-05-14 10:21:18 -04:00
2026-04-14 14:37:28 -04:00
2026-04-15 20:23:12 -04:00
2026-04-13 09:49:11 -04:00
2026-05-07 13:41:10 -04:00
2026-05-07 12:53:13 -04:00
2026-05-04 13:36:01 -04:00
2026-05-07 13:48:11 -04:00
2026-04-24 22:28:25 -04:00
2026-05-07 13:26:00 -04:00
2026-04-17 07:57:08 -04:00
2026-04-17 14:06:23 -04:00
2026-05-14 10:20:57 -04:00
2026-04-05 18:45:57 -04:00
2026-05-09 00:11:09 -04:00
2026-04-14 13:47:48 -04:00
2026-04-25 13:55:07 -04:00
2026-04-14 08:23:05 -04:00
2026-05-12 15:58:30 -04:00
2026-04-26 13:05:19 -04:00
2026-04-10 21:35:31 -04:00
2026-05-07 05:41:53 -04:00
2026-05-14 10:21:08 -04:00
2026-05-07 13:16:24 -04:00
2026-05-07 16:18:19 -04:00
2026-05-07 13:41:10 -04:00
2026-05-09 01:55:56 -04:00
2026-04-15 11:31:29 -04:00
2026-05-13 03:02:21 -04:00
2026-05-13 03:02:21 -04:00
2026-05-02 18:01:06 -04:00
2026-04-14 10:06:59 -04:00
2026-05-08 22:54:58 -04:00
2026-04-16 20:32:38 -04:00
2026-05-06 11:21:37 -04:00
2026-04-25 08:21:50 -04:00
2026-04-24 10:20:08 -04:00
2026-05-13 11:56:22 -04:00
2026-05-13 11:56:22 -04:00
2026-04-13 12:49:03 -04:00
2026-05-02 00:39:41 -04:00
2026-04-24 16:26:36 -04:00
2026-04-12 21:19:08 -04:00
2026-05-16 14:58:19 -04:00
2026-05-16 14:58:19 -04:00
2026-05-09 00:11:09 -04:00
2026-05-08 11:38:35 -04:00
2026-05-08 15:51:39 -04:00
2026-05-08 11:12:29 -04:00
2026-05-16 14:58:19 -04:00
2026-05-10 04:01:39 -04:00
2026-05-14 20:51:42 -04:00
2026-05-16 14:58:19 -04:00
2026-05-16 14:58:19 -04:00
2026-05-16 22:32:35 -04:00
2026-05-16 14:58:19 -04:00
2026-05-15 14:33:57 -04:00
2026-05-14 20:51:42 -04:00
2026-05-16 14:58:19 -04:00
2026-05-16 18:28:16 -04:00
2026-05-16 14:58:19 -04:00
2026-05-14 20:51:42 -04:00
2026-05-17 01:48:02 -04:00
2026-05-16 14:58:19 -04:00
2026-04-23 21:49:58 -04:00
2026-04-26 16:24:03 -04:00
2026-05-07 19:23:11 -04:00
2026-05-07 19:23:11 -04:00
2026-05-14 10:20:49 -04:00
2026-04-14 10:59:11 -04:00
2026-05-01 18:57:44 -04:00
2026-05-14 10:21:08 -04:00
2026-04-24 22:23:31 -04:00
2026-04-25 14:58:50 -04:00
2026-04-30 19:53:23 -04:00
2026-05-16 20:11:31 -04:00
2026-05-08 11:59:02 -04:00
2026-05-08 03:48:35 -04:00
2026-05-08 10:00:15 -04:00
2026-05-14 20:51:42 -04:00
2026-05-08 09:03:22 -04:00
2026-05-14 20:51:42 -04:00
2026-05-07 21:28:35 -04:00
2026-05-08 16:21:34 -04:00
2026-05-07 23:45:16 -04:00
2026-05-07 21:28:35 -04:00
2026-05-07 21:28:35 -04:00
2026-05-16 14:58:19 -04:00
2026-05-08 16:21:34 -04:00
2026-04-17 20:31:43 -04:00
2026-05-16 14:58:19 -04:00
2026-05-08 09:02:59 -04:00
2026-05-07 23:51:52 -04:00
2026-05-17 01:16:21 -04:00
2026-05-16 14:58:19 -04:00
2026-05-12 19:30:49 -04:00
2026-04-24 10:20:08 -04:00
2026-04-09 17:56:58 -04:00
2026-04-14 17:58:57 -04:00
2026-05-15 18:21:28 -04:00
2026-05-12 19:30:49 -04:00
2026-05-13 09:40:45 -04:00
2026-05-05 12:54:26 -04:00
2026-05-14 10:31:20 -04:00
2026-04-25 13:55:07 -04:00
2026-05-13 09:40:45 -04:00
2026-05-07 06:03:39 -04:00
2026-04-23 21:22:39 -04:00
2026-04-16 20:32:38 -04:00
2026-05-15 18:21:28 -04:00
2026-04-25 10:50:21 -04:00
2026-05-12 15:49:51 -04:00
2026-04-12 05:43:15 -04:00
2026-04-25 17:26:04 -04:00
2026-05-14 10:21:18 -04:00
2026-05-13 09:40:45 -04:00
2026-05-07 16:18:19 -04:00
2026-05-07 16:18:19 -04:00
2026-05-16 14:58:19 -04:00
2026-04-24 22:23:31 -04:00
2026-05-08 03:50:03 -04:00
2026-05-08 15:24:25 -04:00
2026-05-07 19:23:11 -04:00
2026-04-17 07:57:08 -04:00
2026-04-16 20:32:38 -04:00
2026-05-07 19:23:11 -04:00
2026-04-24 23:37:32 -04:00
2026-05-15 18:21:28 -04:00
2026-05-15 18:21:28 -04:00
2026-04-24 22:23:31 -04:00
2026-05-05 00:09:40 -04:00
2026-04-16 20:32:38 -04:00
2026-05-13 03:02:21 -04:00