jif
b5ea64a203
Add a symlink-safe reader for sensitive files ( #39200 )
...
## What changed
- Export `read_sensitive_file_to_string` from `codex-exec-server`.
- Require the opened path to be a regular disk file and avoid following its
final symlink component on Unix or reparse point on Windows.
- Read valid UTF-8 file contents asynchronously and return I/O errors for
unsupported inputs.
## Testing
Add tests covering regular files, directories, and symlinks.
GitOrigin-RevId: 68809e94c0d3719e5685c064f9610a0455ffd8d7
2026-08-18 13:36:16 +00:00
..
2026-08-17 22:53:55 +00:00
2026-08-17 22:53:55 +00:00
2026-08-15 03:00:35 +00:00
2026-07-23 23:25:53 +00:00
2026-08-17 22:53:55 +00:00
2026-07-21 08:59:41 +00:00
2026-08-13 19:14:30 +00:00
2026-07-30 10:01:06 +00:00
2026-08-05 20:08:41 +00:00
2026-08-13 19:14:30 +00:00
2026-08-17 22:53:55 +00:00
2026-07-24 00:16:42 +00:00
2026-08-17 20:36:10 +00:00
2026-08-14 23:42:40 +00:00
2026-08-17 22:53:55 +00:00
2026-07-24 00:16:42 +00:00
2026-07-24 00:16:42 +00:00
2026-08-07 08:32:30 +00:00
2026-07-24 00:16:42 +00:00
2026-06-17 17:20:53 -07:00
2026-06-17 17:20:53 -07:00
2026-07-31 21:37:56 +00:00
2026-08-17 20:51:38 +00:00
2026-06-16 09:50:55 -07:00
2026-08-13 11:11:26 +00:00
2026-08-13 11:11:26 +00:00
2026-08-17 21:49:30 +00:00
2026-08-18 13:36:16 +00:00
2026-06-11 18:44:18 +00:00
2026-08-13 11:11:26 +00:00
2026-08-14 23:42:40 +00:00
2026-07-25 16:03:00 +00:00
2026-07-25 16:03:00 +00:00
2026-06-15 17:39:00 -07:00
2026-07-21 13:39:33 +00:00
2026-08-14 23:42:40 +00:00
2026-08-14 23:42:40 +00:00
2026-07-30 19:23:33 +00:00
2026-08-18 13:36:16 +00:00
2026-08-18 13:36:16 +00:00
2026-08-15 03:00:35 +00:00
2026-06-15 17:39:00 -07:00
2026-08-17 22:53:55 +00:00
2026-06-16 09:50:55 -07:00
2026-07-30 16:35:20 +00:00
2026-08-17 21:49:30 +00:00
2026-07-30 19:23:33 +00:00
2026-08-17 20:36:10 +00:00
2026-07-20 13:45:29 +00:00
2026-07-22 15:22:21 +00:00
2026-07-25 16:03:00 +00:00
2026-08-17 22:53:55 +00:00
2026-04-12 18:36:03 -07:00
2026-08-13 11:11:26 +00:00
2026-06-11 18:44:18 +00:00
2026-08-13 11:11:26 +00:00
2026-08-04 22:28:15 +00:00
2026-08-17 22:53:55 +00:00
2026-06-25 13:42:40 -07:00
2026-08-17 20:36:10 +00:00
2026-07-01 14:15:34 -07:00
2026-07-01 14:15:34 -07:00