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-11-27 22:19:40 +01:00
2026-11-20 05:35:56 +01:00
2026-11-28 10:00:56 +01:00
2026-11-28 10:00:56 +01:00
2026-11-30 19:09:32 +01:00
2026-11-23 18:29:58 +08:00
2026-11-30 23:52:32 +01:00
2026-11-30 23:52:32 +01:00
2026-12-01 20:44:37 +01:00
2026-12-01 20:44:37 +01:00
2026-11-19 14:23:29 -03:00
2026-11-19 14:23:29 -03:00
2026-11-28 23:07:48 +01:00
2026-11-30 17:41:46 +01:00
2026-11-30 23:54:02 +01:00
2026-07-26 04:27:45 -04:00
2026-11-28 10:16:00 +01:00
2026-11-28 10:16:00 +01:00
2026-11-18 00:07:50 +01:00
2026-12-01 15:42:43 +00:00
2026-11-19 14:23:29 -03:00
2026-11-20 22:18:53 +01:00
2026-11-19 14:23:29 -03:00
2026-10-08 23:14:34 +02:00
2026-11-28 23:07:52 +01:00
2026-11-30 19:13:50 +01:00
2026-11-30 19:13:50 +01:00
2026-11-28 23:07:52 +01:00
2026-11-28 23:07:52 +01:00
2026-11-28 23:07:52 +01:00
2026-11-28 23:07:52 +01:00
2026-11-17 02:03:57 +00:00
2026-11-21 19:33:22 +00:00
2026-11-30 23:55:39 +01:00
2026-11-30 23:55:39 +01:00
2026-11-10 17:45:11 +01:00
2026-08-28 14:03:07 +08:00
2026-12-01 20:44:37 +01: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-30 23:20:40 +01:00
2026-11-20 22:54:57 +01:00
2026-11-28 23:19:40 +01:00
2026-12-01 00:52:33 +06:00
2026-11-27 00:54:34 +05:30
2026-11-29 22:35:38 +01:00
2026-11-11 20:20:16 +01:00
2026-11-30 23:24:19 +01:00
2026-11-30 23:51:22 +01:00
2026-11-26 11:47:42 +00:00
2026-11-30 23:51:22 +01:00
2026-11-18 11:43:40 +00:00
2026-11-26 23:40:10 +01:00
2026-11-30 03:16:35 +01:00
2026-11-30 22:39:55 +01:00
2026-11-30 22:38:54 +01: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-30 22:38:54 +01:00
2026-11-30 22:38:54 +01:00
2026-11-23 11:13:40 +08:00
2026-11-23 11:13:40 +08:00
2026-11-23 11:13:40 +08:00
2026-11-20 05:35:53 +01:00
2026-11-20 05:35:53 +01:00
2026-11-21 17:49:22 +00:00
2026-11-23 12:42:43 +01:00
2026-11-23 12:42:43 +01:00
2026-11-30 23:26:11 +01:00
2026-11-23 19:27:26 +00:00
2026-11-23 19:27:26 +00:00
2026-11-23 19:27:26 +00:00
2026-11-22 23:00:41 +01:00
2026-11-22 23:00:41 +01:00
2026-11-23 12:39:32 +08:00
2026-11-23 22:28:50 +00:00
2026-11-20 05:35:53 +01:00
2026-11-30 23:26:11 +01:00
2026-11-28 10:00:56 +01:00
2026-11-20 18:48:06 +01:00
2026-11-20 18:48:06 +01:00
2026-11-20 20:07:50 +01:00
2026-11-20 10:03:52 +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-30 23:20:40 +01:00
2026-10-08 23:14:34 +02:00
2026-11-17 03:49:25 +00:00
2026-11-30 23:20:40 +01:00
2026-12-01 00:52:33 +06:00
2026-11-30 23:20:40 +01:00
2026-11-30 23:20:40 +01:00
2026-11-20 22:54:57 +01:00
2026-11-22 09:44:37 +00: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-11-27 01:39:33 +01:00
2026-11-30 22:38:54 +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-30 19:09:32 +01:00
2026-12-01 15:59:18 +00:00
2026-11-30 21:13:50 +01:00
2026-11-30 17:41:46 +01:00
2026-11-30 21:13:50 +01:00
2026-12-01 15:42:43 +00:00
2026-11-30 17:41:46 +01:00
2026-11-30 17:41:46 +01:00
2026-12-01 04:08:32 +01:00
2026-12-01 04:08:32 +01:00
2026-11-30 17:41:46 +01:00
2026-12-01 04:08:32 +01:00
2026-11-20 22:18:53 +01:00
2026-11-17 18:03:10 +00:00
2026-11-20 18:15:23 +01:00
2026-11-20 18:15:23 +01:00
2026-11-28 23:07:50 +01:00
2026-11-30 23:54:02 +01:00
2026-11-30 23:54:02 +01:00
2026-11-21 07:34:30 +01:00
2026-11-30 23:54:02 +01:00
2026-11-20 02:35:39 +01:00
2026-11-30 23:54:02 +01:00
2026-11-29 22:35:38 +01:00
2026-11-30 23:54:02 +01:00
2026-11-30 23:54:02 +01:00
2026-11-30 23:54:02 +01:00
2026-12-01 02:42:42 +01:00
2026-10-08 23:14:34 +02:00
2026-11-25 17:33:52 +05:30
2026-11-20 22:54:57 +01:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-11-21 07:34:30 +01:00
2026-11-28 23:07:44 +01:00
2026-11-18 22:41:00 +01:00
2026-11-17 22:54:16 +01:00
2026-11-23 22:25:32 +01:00
2026-11-21 19:32:38 +00:00
2026-11-23 22:25:32 +01:00
2026-11-18 22:42:38 +01:00
2026-11-20 22:18:53 +01:00
2026-08-24 19:29:00 +08:00
2026-11-19 15:47:36 +01:00
2026-11-30 03:16:35 +01:00
2026-10-11 22:50:00 +02:00
2026-11-29 22:35:38 +01:00
2026-11-30 21:18:09 +01:00
2026-11-30 21:18:09 +01:00
2026-11-19 14:23:29 -03:00
2026-11-29 01:02:28 +01: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-20 22:18:53 +01:00
2026-11-10 16:05:31 +01:00
2026-11-30 23:20:40 +01:00
2026-11-26 21:35:20 +01:00
2026-11-30 17:41:46 +01:00
2026-11-23 20:09:03 +05:30
2026-11-19 16:10:02 +01:00
2026-11-30 03:16:35 +01:00
2026-11-30 03:16:35 +01:00
2026-11-20 22:18:53 +01:00
2026-07-26 04:27:45 -04:00
2026-11-30 21:18:09 +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 22:18:53 +01:00
2026-12-01 06:32:21 +03:00
2026-11-27 22:19:40 +01:00
2026-11-28 19:50:16 +05:30
2026-11-27 22:19:40 +01:00
2026-11-20 05:35:56 +01:00
2026-12-01 20:44:37 +01:00
2026-12-01 20:44:37 +01:00
2026-12-01 20:44:37 +01:00
2026-12-01 02:51:19 +01:00
2026-11-28 23:07:45 +01:00
2026-11-23 01:33:19 -08:00
2026-11-28 23:07:45 +01:00
2026-11-29 22:35:38 +01:00
2026-11-22 20:48:49 +08:00
2026-11-30 23:54:02 +01:00
2026-12-01 06:32:21 +03:00
2026-11-28 10:00:56 +01:00
2026-11-28 10:00:56 +01:00
2026-11-28 10:00:56 +01:00
2026-11-30 19:09:32 +01:00
2026-11-28 10:00:56 +01:00
2026-11-28 10:00:56 +01:00
2026-11-28 10:00:56 +01:00
2026-11-28 10:00:56 +01:00
2026-11-28 10:00:56 +01:00
2026-11-28 10:00:56 +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-11-23 02:13:03 +00: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-27 00:13:09 +01:00
2026-11-20 22:30:08 +01:00
2026-11-20 23:16:52 +01:00
2026-12-01 20:44:37 +01:00
2026-11-20 05:35:55 +01:00
2026-11-20 05:35:55 +01:00
2026-11-28 03:03:19 +01:00
2026-11-28 03:03:19 +01:00
2026-11-19 16:10:02 +01:00
2026-11-20 21:13:55 +01:00
2026-11-20 21:13:55 +01:00
2026-11-20 21:13:55 +01:00
2026-12-01 20:44:37 +01:00
2026-11-30 23:54:02 +01:00
2026-11-28 03:19:30 +01:00
2026-11-30 23:54:02 +01:00
2026-11-30 17:41:46 +01:00
2026-11-26 21:35:20 +01:00
2026-11-17 17:22:35 +01:00
2026-11-11 17:07:35 +01:00
2026-11-20 22:18:53 +01:00
2026-11-20 14:26:07 +00:00
2026-11-30 23:55:39 +01:00
2026-11-20 21:13:55 +01:00
2026-11-20 05:35:55 +01:00
2026-12-01 00:30:03 +01:00
2026-11-20 21:13:55 +01:00
2026-11-18 02:05:18 +00:00
2026-11-26 20:47:31 +05:30
2026-12-01 00:30:03 +01:00
2026-11-23 04:34:29 +00:00
2026-11-20 21:45:15 +01:00
2026-11-19 14:23:29 -03:00
2026-11-20 21:13: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-11-30 03:16:35 +01:00
2026-11-20 22:54:57 +01:00
2026-11-30 03:16:35 +01:00
2026-11-19 14:23:29 -03:00
2026-11-19 14:23:29 -03:00
2026-11-20 22:54:57 +01:00
2026-11-28 03:03:19 +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 22:54:57 +01:00
2026-11-20 22:18:53 +01:00
2026-11-19 14:23:29 -03:00
2026-11-28 10:00:55 +01:00
2026-11-19 14:23:29 -03:00
2026-11-17 15:57:43 -05:00
2026-11-20 22:18:53 +01:00
2026-11-25 17:33:52 +05:30
2026-11-20 22:54:57 +01:00
2026-11-30 03:16:35 +01:00
2026-11-20 21:43:43 +01:00
2026-11-30 03:16:35 +01:00
2026-11-14 13:46:03 +01:00
2026-11-20 22:18:53 +01:00
2026-10-08 23:14:34 +02:00
2026-11-23 18:29:58 +08:00
2026-11-20 06:38:10 +01:00
2026-11-14 18:21:52 +01:00
2026-11-29 01:02:28 +01:00
2026-11-20 18:11:16 +01:00
2026-11-13 21:58:19 +01:00
2026-11-29 01:02:28 +01:00
2026-11-28 19:24:53 +01:00
2026-11-17 22:23:12 +01:00
2026-11-20 14:33:57 +01:00
2026-11-20 14:19:22 +01:00
2026-11-21 00:48:27 +01:00
2026-11-25 17:33:52 +05:30
2026-11-10 16:28:26 +01:00
2026-10-11 14:53:08 +02:00
2026-11-20 05:48:34 +01:00
2026-11-20 05:25:35 +01:00
2026-11-20 22:18:53 +01:00
2026-11-17 00:12:09 +01:00
2026-11-28 23:07:44 +01:00
2026-11-23 10:26:56 +09:00
2026-11-20 22:52:51 +01:00
2026-11-23 17:22:16 +03:00
2026-11-27 00:13:09 +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-11-22 09:10:59 +01:00
2026-11-22 09:10:59 +01:00
2026-11-22 09:10:59 +01:00
2026-11-22 14:41:07 +00:00
2026-11-22 14:41:07 +00:00
2026-11-20 08:46:47 +00:00
2026-11-22 20:48:49 +08:00
2026-10-08 23:14:34 +02:00
2026-08-31 09:00:21 -04:00
2026-11-21 07:34:30 +01:00
2026-12-01 02:24:20 +01:00
2026-12-01 02:24:20 +01:00
2026-11-30 23:55:39 +01:00
2026-12-01 02:24:20 +01:00