BaaRai
ed70ea3220
security: promote company scope egress only when approved by the operator
...
An operator company approval froze the company's whole inventory into
task_scope_egress: every company_scope domain and IP/CIDR row plus the
root_domain, domain and ip of every asset attributed to the company. The
agent writes both (insert_assets, add_company_scope), so the next operator
selection or re-approval promoted worker-chosen hosts into the sandbox
egress allowlist for the life of the task.
The snapshot now reads only company_scope domain and IP/CIDR rules with
approved_by_operator = TRUE; the asset branches are gone. Migration 0025
adds the column and backfills existing rows as approved. The flag is an
explicit parameter of insertScopeRulesTx and the CompanyStore scope
writers: the operator company API passes true, add_company_scope and the
ScopeSentry sync pass false. An operator write of a rule the agent stored
first approves the existing row.
AddOperatorScope outside a transaction now commits the task_scope row and
the egress snapshot together.
Existing task_scope_egress rows are not purged.
2026-12-01 20:44:37 +01:00
..
2026-10-12 06:26:51 +02:00
2026-11-28 10:00:55 +01:00
2026-11-27 22:19:40 +01:00
2026-11-27 22:19:40 +01:00
2026-11-14 14:19:13 +01:00
2026-11-26 20:42:19 +07:00
2026-11-20 22:18:53 +01:00
2026-11-20 05:35:54 +01:00
2026-11-14 01:02:16 +01:00
2026-11-20 05:35:54 +01:00
2026-11-12 12:35:06 +01:00
2026-11-22 23:00:41 +01:00
2026-11-14 01:02:16 +01:00
2026-11-28 09:33:24 +01:00
2026-11-28 09:33:24 +01:00
2026-12-01 20:44:37 +01:00
2026-11-30 22:38:54 +01:00
2026-11-30 22:38:54 +01:00
2026-11-28 03:03:19 +01:00
2026-11-27 22:19:40 +01:00
2026-11-27 22:19:43 +01:00
2026-11-27 22:20:09 +01:00
2026-11-29 01:02:27 +01:00
2026-10-08 23:14:34 +02:00
2026-11-28 03:19:30 +01:00
2026-11-18 22:40:21 +01:00
2026-11-26 21:35:20 +01:00
2026-11-21 19:54:18 +00:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-11-27 01:08:45 +01:00
2026-11-27 01:08:45 +01:00
2026-11-27 01:08:46 +01:00
2026-10-08 23:14:34 +02:00
2026-11-20 22:18:53 +01:00
2026-11-12 20:48:34 +01:00
2026-11-28 03:03:19 +01:00
2026-11-25 13:24:45 +07:00
2026-11-30 03:16:35 +01:00
2026-11-30 03:16:35 +01:00
2026-10-12 07:30:27 +02:00
2026-07-26 04:27:45 -04:00
2026-11-21 22:00:22 +03:00
2026-11-28 03:19:30 +01:00
2026-11-28 03:03:19 +01:00
2026-11-28 03:19:30 +01:00
2026-11-28 19:24:53 +01:00
2026-11-20 10:03:52 +00:00
2026-11-17 06:14:31 +00:00
2026-11-28 10:00:55 +01:00
2026-11-20 18:48:06 +01:00
2026-11-27 09:57:23 -05:00
2026-11-30 03:16:35 +01:00
2026-11-23 23:12:41 +01:00
2026-11-28 10:00:55 +01:00
2026-11-22 23:00:41 +01:00
2026-11-22 23:00:41 +01:00
2026-11-22 23:00:41 +01:00
2026-11-22 23:00:41 +01:00
2026-11-22 23:00:41 +01:00
2026-11-22 23:00:41 +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-30 19:09:32 +01:00
2026-10-12 07:29:59 +02:00
2026-11-27 01:08:46 +01:00
2026-11-27 01:08:46 +01:00
2026-11-27 01:08:45 +01:00
2026-10-12 06:25:35 +02:00
2026-11-20 22:18:53 +01:00
2026-11-21 21:30:58 +03:00
2026-11-20 22:18:53 +01:00
2026-11-21 21:30:58 +03:00
2026-11-21 20:58:25 +03:00
2026-11-28 10:00:55 +01:00
2026-11-28 03:19:30 +01:00
2026-11-28 03:03:19 +01:00
2026-11-28 03:19:30 +01:00
2026-11-30 03:16:35 +01:00
2026-11-27 01:39:33 +01:00
2026-11-26 21:35:20 +01:00
2026-11-27 22:19:43 +01:00
2026-11-28 03:19:30 +01:00
2026-11-19 14:23:29 -03:00
2026-11-30 03:16:35 +01:00
2026-11-30 03:16:35 +01:00
2026-11-24 01:13:15 +01:00
2026-11-24 01:13:15 +01:00
2026-11-28 03:03:19 +01:00
2026-11-28 10:00:55 +01:00
2026-11-15 22:26:21 +01:00
2026-11-15 22:26:21 +01:00
2026-11-25 13:24:45 +07:00
2026-11-26 21:35:20 +01:00
2026-11-15 01:23:56 +01:00
2026-10-12 06:45:21 +02:00
2026-11-26 21:35:20 +01:00
2026-11-30 03:16:35 +01:00
2026-11-21 08:10:52 +01:00
2026-11-28 10:00:55 +01:00
2026-11-30 03:16:35 +01:00
2026-11-30 03:16:35 +01:00
2026-11-30 03:16:35 +01:00
2026-11-30 03:16:35 +01:00
2026-11-30 22:38:54 +01:00
2026-11-30 22:38:54 +01:00
2026-11-30 03:16:35 +01:00
2026-11-30 03:16:35 +01:00
2026-11-14 14:19:13 +01:00
2026-11-14 14:19:13 +01:00
2026-11-14 14:19:13 +01:00
2026-11-14 14:19:13 +01:00
2026-11-26 21:35:20 +01:00
2026-08-25 09:40:05 -04:00
2026-11-08 17:11:43 +01:00
2026-11-22 18:27:43 +08:00
2026-11-29 00:01:51 +01:00
2026-10-08 23:14:34 +02:00
2026-12-01 02:55:22 +01:00
2026-08-25 11:39:24 -04:00
2026-11-17 12:56:13 +00:00
2026-12-01 02:55:22 +01:00
2026-11-18 00:41:18 -06:00
2026-11-18 00:41:18 -06:00
2026-11-15 00:57:13 +01:00
2026-11-20 10:03:52 +00:00
2026-10-12 06:26:51 +02:00
2026-11-19 14:23:29 -03:00
2026-11-20 05:35:55 +01:00
2026-11-30 23:20:40 +01:00
2026-11-30 19:09:32 +01:00
2026-11-30 19:09:32 +01:00
2026-11-21 08:10:52 +01:00
2026-11-20 22:54:57 +01:00
2026-11-22 23:00:41 +01:00
2026-11-14 01:02:16 +01:00
2026-09-07 11:21:50 -04:00
2026-11-15 15:32:07 +01:00
2026-11-15 15:32:07 +01:00
2026-11-20 05:35:54 +01:00
2026-09-10 21:42:25 +08:00
2026-11-21 22:00:22 +03:00
2026-11-26 20:42:19 +07:00
2026-11-20 05:35:55 +01:00
2026-11-25 13:24:45 +07:00
2026-10-21 14:46:56 +02:00
2026-11-11 00:34:55 +01:00
2026-11-28 03:03:19 +01:00
2026-11-28 03:03:19 +01:00
2026-11-28 03:03:19 +01:00
2026-11-10 17:45:11 +01:00
2026-11-27 22:19:40 +01:00
2026-11-20 06:38:10 +01:00
2026-11-26 11:38:19 +00:00
2026-11-10 09:46:49 +01:00
2026-11-30 03:16:35 +01:00
2026-11-14 13:46:03 +01:00
2026-11-28 03:03:19 +01:00
2026-11-02 09:05:03 +03:00
2026-10-08 23:14:34 +02:00
2026-11-29 21:47:40 +01:00
2026-11-29 21:47:40 +01:00
2026-12-01 20:44:37 +01:00
2026-10-08 23:14:34 +02:00
2026-11-21 08:50:26 +01:00
2026-11-30 03:16:35 +01:00
2026-11-23 17:22:16 +03:00
2026-11-23 17:22:16 +03:00
2026-11-23 22:24:53 +01:00
2026-11-25 13:24:45 +07:00
2026-11-12 14:46:44 +01:00
2026-11-19 14:23:29 -03:00
2026-11-11 21:59:09 +01:00
2026-11-08 18:15:33 +01:00
2026-11-26 21:35:20 +01:00
2026-11-14 23:30:06 +01:00
2026-11-26 21:35:20 +01:00
2026-11-30 19:09:32 +01:00
2026-11-21 08:10:52 +01:00
2026-08-29 21:55:27 +08:00
2026-11-30 03:16:35 +01:00
2026-11-14 14:19:13 +01:00