BaaRai
7be765bff2
security(agent): restore group sharing for legacy task entries; resolve ask_operator paths from the run dir
...
The layout commit made tasks/<id> root:root 0755 and shared only the run
directories. Entries that sat directly in a task directory before it
(uploads/, files the main agent wrote there) were left as found and
nothing shared them any more: after an archive restore, which keeps
neither owners nor modes, the executor could not use them. ask_operator
still resolved a relative image_path from tasks/<id>, not from the
directory the agent works in.
- shareTaskDir: after the task directory is set root:root 0755, each
direct entry that is not a run directory (main, i<N>) is shared with
the executor group again (shareWithExecGroup: group owner, group
read/write, traverse and setgid on directories). Run directories are
handled as before. The task directory stays root-only, so the executor
works inside an old entry and cannot rename, remove or add one. A
symlink among the entries is not followed. The pass runs at start-up
and on archive restore (installTaskArchiveFiles calls
shareRestoredTaskDir and rolls back on failure), with no operator step.
- ask_operator: image_path is resolved inside the run directory of the
agent that asks (agent.EnsureRunDir: tasks/<id>/i<N> for a worker,
tasks/<id>/main without an intent). An absolute path outside it, "..",
and a symlink leading out are refused as before. The copy is still
staged in tasks/<id>/uploads. The tool description says so.
Tests: root-only TestShareTaskDirLegacyEntriesAsRoot (owners and modes,
an executor probe, links to a root-only directory and file left alone);
TestRunDirLayoutOnExistingTreeAsRoot now expects the old file shared;
TestTaskArchiveRestoreRunDirOwnershipAsRoot restores an entry of the task
directory; TestStageAskOperatorImage uses the i<N> and main leaves.
SECURITY.md states the sharing of the old entries and the empty main/.
2026-11-20 05:35:56 +01:00
..
2026-11-20 05:35:56 +01:00
2026-11-20 05:35:56 +01:00
2026-11-20 05:35:53 +01:00
2026-11-20 05:35:53 +01:00
2026-11-17 15:57:43 -05:00
2026-11-19 14:23:29 -03:00
2026-10-08 23:14:34 +02:00
2026-11-19 14:23:29 -03:00
2026-11-19 14:23:29 -03:00
2026-11-19 17:26:47 +05:30
2026-07-26 04:27:45 -04:00
2026-11-18 00:07:50 +01:00
2026-11-19 14:23:29 -03:00
2026-11-19 14:23:29 -03:00
2026-11-19 14:23:29 -03:00
2026-10-08 23:14:34 +02:00
2026-11-17 02:03:57 +00:00
2026-11-20 05:35:55 +01:00
2026-11-10 17:45:11 +01:00
2026-08-28 14:03:07 +08:00
2026-10-08 23:14:34 +02:00
2026-09-10 16:06:08 +08:00
2026-11-19 14:24:11 +01:00
2026-11-20 05:35:55 +01:00
2026-11-19 14:23:29 -03:00
2026-11-19 14:23:29 -03:00
2026-11-11 20:20:16 +01:00
2026-11-11 15:47:58 +01:00
2026-11-20 05:35:54 +01:00
2026-11-20 05:35:54 +01:00
2026-11-18 11:43:40 +00:00
2026-11-17 22:19:59 +01:00
2026-11-18 00:07:50 +01:00
2026-11-19 14:43:29 -03:00
2026-11-17 15:50:00 -05:00
2026-11-17 15:41:56 -05:00
2026-11-18 00:41:18 -06:00
2026-08-24 19:28:18 +08:00
2026-11-17 22:52:23 +01:00
2026-11-20 01:01:08 +01:00
2026-11-20 05:35:54 +01:00
2026-11-20 05:35:54 +01:00
2026-11-20 05:35:54 +01:00
2026-11-20 05:35:53 +01:00
2026-11-20 05:35:53 +01:00
2026-11-20 05:35:53 +01:00
2026-11-20 05:35:55 +01:00
2026-11-20 05:35:55 +01:00
2026-11-20 05:35:53 +01:00
2026-11-20 05:35:56 +01:00
2026-11-20 05:35:54 +01:00
2026-11-18 01:51:41 +00:00
2026-11-17 06:14:31 +00:00
2026-11-17 06:14:31 +00:00
2026-11-18 00:07:50 +01:00
2026-11-19 14:23:29 -03:00
2026-10-08 23:14:34 +02:00
2026-09-10 13:03:20 +08:00
2026-11-18 02:37:26 +00:00
2026-10-08 23:14:34 +02:00
2026-11-17 03:49:25 +00:00
2026-11-09 20:43:25 +01:00
2026-11-11 23:43:12 +01:00
2026-10-08 23:14:34 +02:00
2026-11-17 22:23:12 +01:00
2026-11-19 14:23:29 -03:00
2026-11-18 00:07:50 +01:00
2026-11-15 13:38:35 +01:00
2026-10-21 14:46:56 +02:00
2026-10-08 23:14:34 +02:00
2026-08-24 19:29:00 +08:00
2026-11-12 18:48:41 +01:00
2026-11-19 14:23:29 -03:00
2026-08-24 19:29:00 +08:00
2026-10-08 23:14:34 +02:00
2026-11-19 14:23:29 -03:00
2026-11-20 01:23:45 +01:00
2026-11-19 14:23:29 -03:00
2026-11-19 14:23:29 -03:00
2026-11-19 14:23:29 -03:00
2026-11-19 14:23:29 -03:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-11-17 15:57:43 -05:00
2026-11-19 14:23:29 -03:00
2026-11-17 18:03:10 +00:00
2026-11-20 03:33:50 +01:00
2026-11-20 02:35:39 +01:00
2026-11-20 03:33:50 +01:00
2026-11-19 14:23:29 -03:00
2026-11-17 22:39:53 +01:00
2026-10-08 23:14:34 +02:00
2026-11-17 22:39:53 +01:00
2026-11-19 14:23:29 -03:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-11-18 22:41:00 +01:00
2026-11-17 22:54:16 +01:00
2026-10-08 23:14:34 +02:00
2026-11-18 22:42:38 +01:00
2026-11-20 05:35:55 +01:00
2026-08-24 19:29:00 +08:00
2026-11-19 15:47:36 +01:00
2026-11-20 05:35:55 +01:00
2026-10-11 22:50:00 +02:00
2026-11-20 05:35:53 +01:00
2026-11-19 14:23:29 -03:00
2026-11-15 22:26:21 +01:00
2026-11-14 23:30:06 +01:00
2026-11-14 23:30:06 +01:00
2026-11-10 16:05:31 +01:00
2026-11-10 16:05:31 +01:00
2026-11-10 16:05:31 +01:00
2026-11-17 06:14:31 +00:00
2026-11-19 16:10:02 +01:00
2026-11-19 14:23:29 -03:00
2026-07-26 04:27:45 -04:00
2026-11-19 16:10:02 +01:00
2026-08-24 14:14:15 +08:00
2026-11-19 17:26:47 +05:30
2026-11-19 17:26:47 +05:30
2026-11-20 05:35:56 +01:00
2026-10-08 23:14:34 +02:00
2026-11-17 17:22:35 +01:00
2026-11-20 02:35:39 +01:00
2026-11-20 05:35:55 +01:00
2026-11-11 21:47:44 +01:00
2026-11-19 14:23:29 -03:00
2026-11-17 22:54:16 +01:00
2026-10-11 22:26:22 +02:00
2026-11-19 14:23:29 -03:00
2026-10-19 00:33:08 +02:00
2026-10-08 23:14:34 +02:00
2026-08-24 19:30:14 +08:00
2026-10-08 23:14:34 +02:00
2026-11-20 05:35:55 +01:00
2026-11-20 05:35:55 +01:00
2026-11-19 16:10:02 +01:00
2026-11-17 15:57:43 -05:00
2026-11-11 15:47:21 +01:00
2026-11-12 17:27:28 +01:00
2026-11-17 17:22:35 +01:00
2026-11-11 17:07:35 +01:00
2026-11-19 14:23:29 -03:00
2026-11-20 05:35:55 +01:00
2026-11-20 05:35:55 +01:00
2026-11-19 14:23:29 -03:00
2026-11-20 05:35:55 +01:00
2026-11-17 15:57:43 -05:00
2026-11-19 14:23:29 -03:00
2026-11-17 15:57:43 -05:00
2026-11-19 14:23:29 -03:00
2026-10-08 23:14:34 +02:00
2026-11-13 14:42:56 +01:00
2026-11-13 14:42:56 +01:00
2026-11-19 14:23:29 -03:00
2026-11-19 14:23:29 -03:00
2026-11-12 20:48:34 +01:00
2026-11-17 15:57:43 -05:00
2026-11-15 13:38:35 +01:00
2026-11-18 01:31:18 +01:00
2026-11-20 03:33:50 +01:00
2026-11-19 14:23:29 -03:00
2026-11-19 14:23:29 -03:00
2026-11-18 01:31:18 +01:00
2026-11-19 14:23:29 -03:00
2026-11-17 15:57:43 -05:00
2026-11-19 14:23:29 -03:00
2026-10-19 00:28:27 +02:00
2026-10-09 11:37:30 +02:00
2026-10-23 18:12:38 -03:00
2026-11-14 13:46:03 +01:00
2026-11-19 14:23:29 -03:00
2026-10-08 23:14:34 +02:00
2026-11-20 05:35:54 +01:00
2026-11-14 18:21:52 +01:00
2026-08-25 12:05:26 +08:00
2026-08-25 12:05:26 +08:00
2026-11-13 21:58:19 +01:00
2026-11-19 14:23:29 -03:00
2026-11-17 22:23:12 +01:00
2026-11-10 16:28:26 +01:00
2026-10-11 14:53:08 +02:00
2026-11-16 16:17:55 +01:00
2026-11-17 00:12:09 +01:00
2026-11-17 15:57:43 -05:00
2026-11-19 22:37:23 +01:00
2026-10-08 23:14:34 +02:00
2026-11-17 15:57:43 -05:00
2026-11-12 12:54:25 +01:00
2026-11-12 12:54:25 +01:00
2026-10-08 23:14:34 +02:00
2026-11-18 22:13:26 +01:00
2026-10-08 23:14:34 +02:00
2026-08-31 09:00:21 -04:00
2026-11-20 01:23:50 +01:00
2026-11-20 01:23:50 +01:00