teknium1
3ed40556ce
fix(profiles): a child spawned for another profile no longer inherits the spawner's authorization gates
...
A `hermes -p B` child built from a process that loaded profile A's env (a gateway, the
dashboard, the post-update fleet restart) started with A's `DISCORD_ALLOWED_CHANNELS`,
`TELEGRAM_GROUP_ALLOWED_CHATS`, `GATEWAY_ALLOW_ALL_USERS`... and enforced them as its
own: gates are not credentials (no secret scrub sees them), a unit-file `Environment=`
or operator export is in no dotenv (no name-list strip sees them), and B's own `.env`
rarely defines the key (its dotenv load never overwrites the inherited value). Observed
as profile B's gateway rejecting every message in B's own channel after a per-profile
restart issued from A (#113270 ).
- `local_env_policy.is_profile_gate_env` / `strip_profile_gate_env`: gates matched by
shape (`_ALLOWED_`, `_ALLOW_ALL_`, `_ALLOW_FROM`, `_ALLOW_BOTS`, `_IGNORED_CHANNELS`,
...), never `HERMES_*`, so a gate added to any adapter is covered without a second edit.
- `strip_launch_profile_env` drops them on its existing routed-home branch: the seam
`served_profile_child_env`, the kanban dispatcher, cron workers and the dashboard
action env already funnel through (the dashboard site now calls it for its target).
Same-home children keep an operator export.
- `update_restart_recovery._child_environment(profile)`: the one site that bypassed
every helper (bare `os.environ.copy()` relaunching EVERY profile) strips gates when
the profile is not the one the updater runs as; the module stays stdlib-only at
import time.
Live: fresh-process `hermes_cli.update_restart_recovery --stdin` with three gates in
the updater env — base hands all three to profile b's relaunch, fixed hands none and
keeps them for the launch profile.
Refs #113270 ; supersedes #113308 (@yashraj4, static key list + always-strip; this keeps
same-profile children intact and covers the per-adapter gate set).
2026-09-18 15:11:47 -07:00
..
2026-09-15 18:49:29 -07:00
2026-09-18 10:12:59 -07:00
2026-09-13 21:04:45 -07:00
2026-09-15 21:46:37 -07:00
2026-09-07 14:30:41 -07:00
2026-09-17 09:04:38 -07:00
2026-09-15 18:44:46 -07:00
2026-09-17 20:38:43 +05:30
2026-09-15 04:12:13 -07:00
2026-09-17 20:38:43 +05:30
2026-09-11 06:24:54 -07:00
2026-09-17 00:34:50 -05:00
2026-09-16 11:06:06 -07:00
2026-09-15 18:43:56 -07:00
2026-09-11 11:19:53 +05:30
2026-09-17 21:17:26 +05:30
2026-09-18 09:19:04 -07:00
2026-09-13 21:13:23 -07:00
2026-09-18 10:39:50 -07:00
2026-09-16 22:25:33 -07:00
2026-09-18 10:39:50 -07:00
2026-09-16 17:19:58 -07:00
2026-09-18 10:44:29 -07:00
2026-09-15 04:13:13 -07:00
2026-09-16 16:57:03 -07:00
2026-09-13 14:41:26 -07:00
2026-09-17 09:02:55 -07:00
2026-09-15 06:16:38 -07:00
2026-09-18 10:29:47 -07:00
2026-09-18 10:29:47 -07:00
2026-09-15 04:13:13 -07:00
2026-09-18 09:19:04 -07:00
2026-09-08 05:10:57 -07:00
2026-09-16 16:53:40 -07:00
2026-09-10 10:35:07 -07:00
2026-09-18 10:28:40 -07:00
2026-09-18 10:28:40 -07:00
2026-09-16 17:57:22 -07:00
2026-09-15 04:56:01 -07:00
2026-09-15 12:06:08 -07:00
2026-09-16 21:15:09 +05:30
2026-09-18 10:16:14 -07:00
2026-09-12 21:50:30 -07:00
2026-09-12 21:50:30 -07:00
2026-09-17 18:36:22 +05:30
2026-09-14 16:13:51 -07:00
2026-09-16 17:14:28 -07:00
2026-09-16 17:14:28 -07:00
2026-09-16 17:58:39 -07:00
2026-09-15 03:45:41 -07:00
2026-09-13 09:18:02 -07:00
2026-09-14 21:18:47 +05:30
2026-09-13 05:21:02 -07:00
2026-09-13 05:21:02 -07:00
2026-09-13 05:21:02 -07:00
2026-09-13 05:21:02 -07:00
2026-09-14 07:21:18 -07:00
2026-09-17 13:52:36 +05:30
2026-09-18 09:24:54 -07:00
2026-09-15 00:41:13 +05:30
2026-09-18 09:24:54 -07:00
2026-09-15 00:41:13 +05:30
2026-09-15 00:41:13 +05:30
2026-09-15 00:41:14 +05:30
2026-09-15 00:41:13 +05:30
2026-09-14 22:01:32 +00:00
2026-09-15 00:41:14 +05:30
2026-09-15 00:41:14 +05:30
2026-09-15 00:41:14 +05:30
2026-09-15 00:41:14 +05:30
2026-09-15 00:41:14 +05:30
2026-09-14 22:01:32 +00:00
2026-09-11 19:39:12 -07:00
2026-09-15 05:33:41 -07:00
2026-09-15 03:56:17 -07:00
2026-09-15 04:13:47 -07:00
2026-09-09 12:17:13 +05:30
2026-09-09 12:17:13 +05:30
2026-09-15 03:56:17 -07:00
2026-09-15 03:57:24 -07:00
2026-09-15 18:41:46 -07:00
2026-09-18 10:37:36 -07:00
2026-09-10 02:21:15 +05:30
2026-09-09 10:55:32 -07:00
2026-09-13 21:31:57 -07:00
2026-09-15 18:40:52 -07:00
2026-09-15 04:12:13 -07:00
2026-09-08 02:26:05 +05:30
2026-09-08 13:38:18 -07:00
2026-09-13 21:05:42 -07:00
2026-09-18 12:46:28 -07:00
2026-09-13 20:13:12 -07:00
2026-09-15 18:41:19 -07:00
2026-09-16 16:56:46 -07:00
2026-09-18 01:43:35 +05:30
2026-09-16 16:41:54 -07:00
2026-09-18 09:52:36 -07:00
2026-09-15 00:41:13 +05:30
2026-09-09 02:36:00 -07:00
2026-09-18 21:47:13 +05:30
2026-09-13 05:07:11 -07:00
2026-09-18 10:04:57 -07:00
2026-09-18 12:49:13 -07:00
2026-09-09 11:46:36 -07:00
2026-09-18 09:54:45 -07:00
2026-09-12 20:52:49 -07:00
2026-09-18 09:54:45 -07:00
2026-09-12 20:52:49 -07:00
2026-09-19 00:33:58 +05:30
2026-09-15 03:57:24 -07:00
2026-09-18 10:10:40 -07:00
2026-09-18 09:30:16 -07:00
2026-09-15 06:26:29 -07:00
2026-09-14 16:13:51 -07:00
2026-09-08 02:26:39 +05:30
2026-09-10 05:02:41 -07:00
2026-09-12 21:55:07 -07:00
2026-09-14 09:19:25 -07:00
2026-09-15 03:45:41 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 16:42:47 -07:00
2026-09-13 21:03:11 -07:00
2026-09-16 16:42:47 -07:00
2026-09-18 10:37:36 -07:00
2026-09-13 09:18:54 -07:00
2026-09-16 17:21:14 -07:00
2026-09-16 10:43:48 -07:00
2026-09-18 09:29:44 -07:00
2026-09-15 03:45:41 -07:00
2026-09-18 09:29:11 -07:00
2026-09-18 09:29:44 -07:00
2026-09-12 12:32:55 -07:00
2026-09-18 12:49:13 -07:00
2026-09-15 03:57:24 -07:00
2026-09-18 09:54:45 -07:00
2026-09-16 16:48:42 -07:00
2026-09-07 14:10:46 -07:00
2026-09-18 10:37:36 -07:00
2026-09-16 14:34:59 -07:00
2026-09-18 10:37:36 -07:00
2026-09-12 09:05:56 -07:00
2026-09-13 20:45:25 -07:00
2026-09-18 09:45:32 -07:00
2026-09-18 10:25:46 -07:00
2026-09-18 10:37:36 -07:00
2026-09-18 10:37:36 -07:00
2026-09-17 19:06:29 -04:00
2026-09-18 10:12:59 -07:00
2026-09-16 16:52:05 -07:00
2026-09-15 19:05:57 -07:00
2026-09-15 19:06:54 -07:00
2026-09-16 21:15:37 +05:30
2026-09-18 12:47:49 -07:00
2026-09-18 12:47:49 -07:00
2026-09-13 20:43:33 -07:00
2026-09-18 10:37:36 -07:00
2026-09-18 10:37:36 -07:00
2026-09-18 10:12:59 -07:00
2026-09-13 06:29:12 -07:00
2026-09-18 12:47:49 -07:00
2026-09-13 06:29:12 -07:00
2026-09-18 12:48:42 -07:00
2026-09-16 17:01:11 -07:00
2026-09-17 08:51:30 -07:00
2026-09-18 12:48:42 -07:00
2026-09-15 06:29:50 -07:00
2026-09-15 04:12:41 -07:00
2026-09-09 11:27:29 -07:00
2026-09-15 19:02:39 -07:00
2026-09-15 19:04:29 -07:00
2026-09-15 19:02:39 -07:00
2026-09-18 10:03:40 -07:00
2026-09-15 19:06:27 -07:00
2026-09-14 16:16:08 -07:00
2026-09-16 17:56:58 -07:00
2026-09-18 10:37:36 -07:00
2026-09-15 06:29:50 -07:00
2026-09-12 01:35:05 -07:00
2026-09-11 15:26:46 -07:00
2026-09-11 15:44:00 -07:00
2026-09-11 19:39:12 -07:00
2026-09-18 09:23:48 -07:00
2026-09-14 20:44:56 -07:00
2026-09-13 20:46:22 -07:00
2026-09-12 21:13:40 -07:00
2026-09-12 22:03:19 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 14:43:04 -07:00
2026-09-16 17:01:30 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-12 22:06:03 -07:00
2026-09-18 12:49:13 -07:00
2026-09-07 12:50:29 -07:00
2026-09-12 21:25:00 -07:00
2026-09-18 15:11:47 -07:00
2026-09-12 22:09:19 -07:00
2026-09-18 09:23:48 -07:00
2026-09-11 19:50:46 -07:00
2026-09-15 00:41:13 +05:30
2026-09-13 19:58:33 -07:00
2026-09-15 18:39:09 -07:00
2026-09-16 17:19:31 -07:00
2026-09-19 01:46:29 +05:30
2026-09-16 17:55:07 -07:00
2026-09-10 18:17:22 -07:00
2026-09-08 17:51:35 +10:00
2026-09-18 10:02:30 -07:00
2026-09-11 11:54:49 -07:00
2026-09-18 10:11:14 -07:00
2026-09-18 10:30:57 -07:00
2026-09-11 15:29:15 -07:00
2026-09-17 08:47:01 -07:00
2026-09-17 08:47:01 -07:00
2026-09-09 12:19:13 +05:30
2026-09-15 19:03:33 -07:00
2026-09-19 00:33:58 +05:30
2026-09-14 14:41:50 -07:00
2026-09-15 19:01:39 -07:00
2026-09-18 12:51:49 -07:00
2026-09-18 12:51:49 -07:00
2026-09-11 11:54:49 -07:00
2026-09-16 17:05:08 -07:00
2026-09-17 23:47:17 +05:30
2026-09-16 16:17:51 +05:30
2026-09-13 11:22:08 -07:00
2026-09-07 12:50:29 -07:00
2026-09-14 06:12:19 -07:00
2026-09-15 02:22:22 -05:00
2026-09-13 09:18:02 -07:00
2026-09-18 09:30:16 -07:00
2026-09-11 11:54:49 -07:00
2026-09-15 04:12:13 -07:00
2026-09-11 15:29:15 -07:00
2026-09-12 20:55:04 -07:00
2026-09-18 09:35:16 -07:00
2026-09-15 19:09:29 -07:00
2026-09-16 17:56:08 -07:00
2026-09-11 15:29:15 -07:00
2026-09-17 08:53:48 -07:00
2026-09-15 03:52:24 -07:00
2026-09-11 15:44:00 -07:00
2026-09-15 18:58:30 -07:00
2026-09-17 08:52:27 -07:00
2026-09-14 16:16:08 -07:00
2026-09-13 09:18:02 -07:00
2026-09-18 09:59:54 -07:00
2026-09-13 05:09:43 -07:00
2026-09-15 03:41:43 -07:00
2026-09-18 09:24:54 -07:00
2026-09-18 09:24:54 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 05:07:50 -07:00
2026-09-16 17:21:37 -07:00
2026-09-13 05:07:50 -07:00
2026-09-13 05:07:50 -07:00
2026-09-13 05:07:50 -07:00
2026-09-13 05:07:50 -07:00
2026-09-13 05:07:50 -07:00
2026-09-18 09:47:06 -07:00
2026-09-13 05:07:50 -07:00
2026-09-16 17:12:11 -07:00
2026-09-18 09:30:16 -07:00
2026-09-12 13:44:52 -07:00
2026-09-18 10:37:36 -07:00
2026-09-17 09:02:55 -07:00
2026-09-17 09:02:55 -07:00
2026-09-13 12:35:36 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 14:39:29 -07:00
2026-09-16 17:43:40 -07:00
2026-09-12 21:30:38 -07:00
2026-09-15 18:43:28 -07:00
2026-09-15 18:43:05 -07:00
2026-09-18 10:37:36 -07:00
2026-09-14 13:04:39 -07:00
2026-09-15 18:42:38 -07:00
2026-09-18 11:03:57 -07:00
2026-09-18 09:19:04 -07:00
2026-09-18 10:08:58 -07:00
2026-09-15 03:57:24 -07:00
2026-09-15 03:57:24 -07:00
2026-09-13 05:07:50 -07:00
2026-09-13 05:07:50 -07:00
2026-09-18 09:22:45 -07:00