norunners
d799a3994f
fix(doctor): reconcile gateway service token drift after re-pair
...
`openclaw doctor` audited gateway service runtime/path settings but did not
check whether the daemon's `OPENCLAW_GATEWAY_TOKEN` matched
`gateway.auth.token` in `openclaw.json`.
After re-pairing or token rotation, the config token and service env token can
drift. The daemon may keep running with a stale service token, leading to
unauthorized handshake failures for cron/tool clients.
Add a gateway service audit check for token drift and pass
`cfg.gateway.auth.token` into service audits so doctor treats config as the
source of truth when deciding whether to reinstall the service.
Key design decisions:
- Use `gateway.auth.token` from `openclaw.json` as the authority for service
token drift detection
- Only flag mismatch when an authoritative config token exists
- Keep fix in existing doctor service-repair flow (no separate migration step)
- Add focused tests for both audit mismatch behavior and doctor wiring
Fixes #18175
2026-02-16 23:51:16 +01:00
..
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-15 04:04:33 +00:00
2026-02-16 16:48:55 +00:00
2026-02-15 14:21:28 +00:00
2026-02-16 16:48:55 +00:00
2026-02-15 04:04:33 +00:00
2026-02-16 16:48:55 +00:00
2026-02-14 22:03:45 -08:00
2026-02-16 14:59:30 +00:00
2026-02-16 16:48:55 +00:00
2026-02-15 11:50:16 -05:00
2026-02-16 16:52:53 +00:00
2026-02-01 10:03:47 +09:00
2026-02-16 14:59:30 +00:00
2026-02-13 04:25:05 +01:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:28:22 +00:00
2026-02-16 16:52:53 +00:00
2026-02-01 10:03:47 +09:00
2026-01-19 10:44:18 +00:00
2026-02-14 05:58:26 +01:00
2026-02-16 18:25:04 +00:00
2026-02-14 13:25:54 +01:00
2026-02-10 07:31:02 -05:00
2026-01-31 16:19:20 +09:00
2026-02-15 13:46:13 +00:00
2026-02-13 04:25:05 +01:00
2026-02-15 06:04:47 +00:00
2026-01-18 16:35:52 +00:00
2026-02-01 10:03:47 +09:00
2026-01-18 16:35:52 +00:00
2026-01-18 16:35:52 +00:00
2026-02-16 16:10:18 +00:00
2026-02-15 13:46:13 +00:00
2026-02-14 13:37:47 +01:00
2026-02-01 10:03:47 +09:00
2026-02-15 06:52:58 +00:00
2026-02-13 16:18:16 +01:00
2026-02-14 01:07:35 +01:00
2026-01-18 16:35:52 +00:00
2026-02-13 15:48:37 +01:00
2026-02-14 15:39:46 +00:00
2026-02-15 13:46:13 +00:00
2026-02-05 16:54:44 -05:00
2026-02-16 16:48:55 +00:00
2026-02-01 10:03:47 +09:00
2026-02-16 16:48:55 +00:00
2026-02-14 13:37:47 +01:00
2026-01-14 05:39:47 +00:00
2026-01-31 16:19:20 +09:00
2026-02-16 16:03:22 +00:00
2026-02-16 16:03:22 +00:00
2026-02-16 14:59:30 +00:00
2026-01-18 01:00:24 +00:00
2026-02-16 14:59:30 +00:00
2026-02-15 02:53:39 +00:00
2026-02-15 17:49:30 +00:00
2026-02-16 00:18:27 +00:00
2026-02-15 17:09:12 +00:00
2026-02-16 14:59:30 +00:00
2026-02-01 10:03:47 +09:00
2026-02-15 14:20:06 +00:00
2026-02-01 10:03:47 +09:00
2026-02-16 16:32:37 +00:00
2026-02-14 12:32:17 +01:00
2026-02-16 16:32:37 +00:00
2026-02-15 18:06:48 +00:00
2026-02-15 04:42:00 +00:00
2026-02-15 14:20:06 +00:00
2026-02-13 14:28:22 +00:00
2026-02-15 06:19:12 +00:00
2026-02-16 16:32:37 +00:00
2026-02-01 10:03:47 +09:00
2026-01-14 15:02:19 +00:00
2026-02-16 16:52:53 +00:00
2026-02-14 15:00:58 -05:00
2026-02-14 15:00:58 -05:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-02-04 19:51:06 +00:00
2026-02-16 23:50:53 +01:00
2026-02-16 23:50:53 +01:00
2026-02-14 15:39:45 +00:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-16 23:51:16 +01:00
2026-02-16 23:51:16 +01:00
2026-02-01 10:03:47 +09:00
2026-02-16 16:32:37 +00:00
2026-02-14 21:04:27 +01:00
2026-02-16 16:48:55 +00:00
2026-02-16 23:50:11 +01:00
2026-02-14 12:40:47 +01:00
2026-02-14 12:40:47 +01:00
2026-02-01 10:03:47 +09:00
2026-02-02 16:18:09 +09:00
2026-02-13 16:43:39 +01:00
2026-02-13 16:43:39 +01:00
2026-02-08 16:20:13 -05:00
2026-02-16 16:48:55 +00:00
2026-01-28 00:16:00 +00:00
2026-02-06 01:14:00 -05:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-16 22:47:26 +00:00
2026-02-16 16:32:37 +00:00
2026-02-14 21:04:27 +01:00
2026-02-16 16:32:37 +00:00
2026-02-16 23:50:37 +01:00
2026-02-16 16:32:37 +00:00
2026-02-16 16:32:37 +00:00
2026-02-15 04:04:33 +00:00
2026-02-16 14:59:30 +00:00
2026-02-01 10:03:47 +09:00
2026-02-15 17:41:14 +00:00
2026-01-31 16:19:20 +09:00
2026-02-16 16:48:55 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 16:48:55 +00:00
2026-02-14 15:39:45 +00:00
2026-02-01 10:03:47 +09:00
2026-02-16 14:59:30 +00:00
2026-02-01 10:03:47 +09:00
2026-02-05 16:54:44 -05:00
2026-02-15 17:41:14 +00:00
2026-02-16 16:48:55 +00:00
2026-02-15 18:32:18 +00:00
2026-02-14 00:54:46 +01:00
2026-02-16 16:52:53 +00:00
2026-02-16 16:48:55 +00:00
2026-01-16 00:42:28 +00:00
2026-02-01 10:03:47 +09:00
2026-01-18 07:46:00 +00:00
2026-01-17 18:19:55 +00:00
2026-02-14 23:33:56 +01:00
2026-02-15 18:35:09 +00:00
2026-02-15 18:35:09 +00:00
2026-02-15 06:33:37 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-14 13:37:47 +01:00
2026-02-16 16:48:55 +00:00
2026-02-14 13:25:54 +01:00
2026-02-14 13:25:54 +01:00
2026-02-16 16:48:55 +00:00
2026-02-13 16:43:39 +01:00
2026-02-15 14:21:28 +00:00
2026-02-16 16:48:55 +00:00
2026-02-15 03:34:14 +00:00
2026-02-13 17:04:41 +01:00
2026-02-13 17:04:41 +01:00
2026-02-16 16:48:55 +00:00
2026-02-14 13:05:37 +01:00
2026-02-16 16:52:53 +00:00
2026-02-14 20:47:00 +01:00
2026-02-14 20:47:00 +01:00
2026-02-16 16:03:22 +00:00
2026-02-16 16:03:22 +00:00
2026-02-16 16:03:22 +00:00
2026-02-01 10:03:47 +09:00
2026-02-14 05:58:26 +01:00
2026-02-14 17:18:14 +01:00
2026-02-16 14:59:30 +00:00
2026-02-09 13:27:21 -06:00
2026-02-14 13:25:54 +01:00
2026-02-14 05:58:26 +01:00
2026-02-05 16:54:44 -05:00
2026-02-13 17:18:49 +00:00
2026-02-13 17:18:49 +00:00
2026-02-16 16:32:37 +00:00
2026-02-05 16:54:44 -05:00
2026-02-15 17:41:14 +00:00
2026-02-14 01:07:35 +01:00
2026-02-15 17:49:30 +00:00
2026-02-08 04:53:31 -08:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:28:22 +00:00
2026-02-08 04:53:31 -08:00
2026-02-16 16:48:55 +00:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:28:22 +00:00
2026-02-15 16:40:49 +00:00
2026-02-01 10:03:47 +09:00
2026-02-14 14:42:08 +01:00
2026-02-14 14:42:08 +01:00
2026-02-15 06:40:04 +00:00
2026-02-01 10:03:47 +09:00
2026-02-15 04:49:56 +00:00
2026-02-01 10:03:47 +09:00
2026-02-16 16:48:55 +00:00
2026-02-16 14:59:30 +00:00
2026-02-15 04:04:33 +00:00
2026-02-01 10:03:47 +09:00
2026-02-14 15:42:02 -08:00
2026-02-16 16:48:55 +00:00
2026-02-16 14:59:30 +00:00
2026-01-14 05:39:47 +00:00
2026-02-12 23:52:19 -05:00
2026-02-16 02:54:06 +00:00
2026-02-16 02:41:30 +00:00
2026-02-01 10:03:47 +09:00
2026-02-16 15:19:11 +00:00
2026-02-16 16:10:18 +00:00
2026-02-15 17:49:30 +00:00
2026-02-14 15:39:46 +00:00
2026-02-13 14:28:22 +00:00
2026-02-12 19:16:04 +01:00