Vasanth T
3e7692d8f0
fix(sandbox): scrub the daemon token file pointer ( #677 ) ( #818 )
...
scrubSensitiveEnv removed ZERO_DAEMON_REMOTE_TOKEN but not its file
counterpart. TokenFromEnv accepts either form, so a sandboxed command
still inherited the path to the bridge token, and the default posture is
read-all, so it could then read the token itself.
Scrubbing the pointer is the whole fix rather than half of one: the path
comes from this variable alone and TokenFromEnv has no default location
to fall back on, so a command that never sees the variable has nothing to
guess at. This mirrors GOOGLE_APPLICATION_CREDENTIALS, which is already
scrubbed for the same reason.
Extends the existing scrub table, which compares the surviving
environment exactly, so the case fails if the entry is dropped. Verified:
without the fix the assertion reports ZERO_DAEMON_REMOTE_TOKEN_FILE
surviving into the scrubbed environment.
2026-07-28 21:56:28 +08:00
..
2026-06-21 14:01:49 +05:30
2026-07-27 09:59:33 +08:00
2026-07-27 13:21:47 +05:30
2026-07-27 13:21:47 +05:30
2026-06-26 13:20:07 +05:30
2026-07-20 11:56:36 +05:30
2026-07-27 09:59:33 +08:00
2026-07-27 13:21:47 +05:30
2026-07-27 09:59:33 +08:00
2026-07-21 18:55:13 +05:30
2026-07-24 09:04:41 +08:00
2026-07-06 18:48:28 +08:00
2026-07-06 18:48:28 +08:00
2026-07-27 12:11:35 +08:00
2026-07-27 12:11:35 +08:00
2026-07-27 12:11:35 +08:00
2026-07-27 12:11:35 +08:00
2026-06-23 17:44:46 +05:30
2026-06-19 19:50:12 +05:30
2026-07-27 09:59:33 +08:00
2026-07-27 09:59:33 +08:00
2026-07-21 18:55:13 +05:30
2026-07-21 18:55:13 +05:30
2026-06-18 12:03:10 +05:30
2026-07-21 18:55:13 +05:30
2026-07-21 18:55:13 +05:30
2026-06-19 19:50:12 +05:30
2026-06-19 19:50:12 +05:30
2026-06-19 19:50:12 +05:30
2026-07-27 15:35:04 +05:30
2026-07-21 18:55:13 +05:30
2026-06-26 08:22:56 +05:30
2026-06-25 09:47:55 +05:30
2026-06-19 19:50:12 +05:30
2026-06-19 19:50:12 +05:30
2026-07-21 18:55:13 +05:30
2026-07-28 18:31:33 +08:00
2026-07-28 18:31:33 +08:00
2026-07-21 18:55:13 +05:30
2026-07-21 18:55:13 +05:30
2026-07-14 21:46:10 +08:00
2026-07-21 18:55:13 +05:30
2026-07-21 18:55:13 +05:30
2026-06-26 08:22:56 +05:30
2026-06-26 08:22:56 +05:30
2026-07-21 18:55:13 +05:30
2026-07-28 21:56:28 +08:00
2026-07-27 13:21:47 +05:30
2026-07-28 21:56:28 +08:00
2026-07-21 18:55:13 +05:30
2026-07-21 18:55:13 +05:30
2026-07-21 18:55:13 +05:30
2026-07-27 15:35:04 +05:30
2026-07-27 15:35:04 +05:30
2026-07-20 21:01:55 +05:30
2026-07-27 13:21:47 +05:30
2026-07-24 17:37:32 +05:30
2026-06-25 09:47:55 +05:30
2026-07-24 17:37:32 +05:30
2026-07-13 21:56:10 +08:00
2026-07-21 18:55:13 +05:30
2026-07-21 18:55:13 +05:30
2026-07-21 18:55:13 +05:30
2026-07-21 18:55:13 +05:30
2026-07-03 16:38:28 +08:00
2026-07-21 13:00:29 +05:30
2026-07-21 13:00:29 +05:30
2026-06-18 12:03:10 +05:30
2026-06-18 12:03:10 +05:30
2026-06-18 12:03:10 +05:30
2026-07-13 22:17:31 +08:00
2026-06-18 12:03:10 +05:30
2026-07-03 16:38:28 +08:00
2026-06-21 14:01:49 +05:30
2026-06-23 17:44:46 +05:30
2026-06-23 17:44:46 +05:30
2026-07-27 09:59:33 +08:00
2026-06-23 17:44:46 +05:30
2026-07-05 11:36:00 +08:00
2026-07-05 11:36:00 +08:00
2026-07-21 18:55:13 +05:30
2026-06-18 12:03:10 +05:30
2026-06-21 22:49:54 +05:30
2026-06-21 22:49:54 +05:30
2026-07-24 09:04:41 +08:00
2026-06-21 22:49:39 +05:30
2026-07-13 22:17:31 +08:00
2026-07-03 19:34:56 +08:00
2026-07-14 21:46:10 +08:00
2026-06-15 11:38:14 +05:30
2026-06-15 11:38:14 +05:30
2026-06-26 13:20:07 +05:30
2026-06-18 12:03:10 +05:30