You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2df3362
Browse filesBrowse the repository at this point in the historyBrowse files
feat(launcher): enforced optional RoE controls in the scope wizard (#1191)
* feat(launcher): expose enforced optional RoE controls in the scope wizard
The create + draft-edit wizard now collects the optional controls the runtime
actually enforces, beyond in/out scope:
- Authorized window length (days) — was hardcoded to 7; now operator-set and
enforced by TimeWindowMiddleware.
- Forbidden destinations — extra always-denied hosts (coverage guard).
- Allow cloud-metadata endpoints? (default: blocked).
- Allow sensitive TLDs .gov/.mil/.edu/.int? (default: blocked).
scopeOptions threads through collectScope → buildRoeDocument/createDirectEngagement
/writeDraftScope and into machine_enforcement (omitempty so defaults stay absent,
matching the runtime). The preview shows window + forbidden + toggles. Draft edit
seeds the current values via readScopeOptions. Non-enforced keys (rate limit,
command patterns) are deliberately not offered — the runtime warns them unenforced.
Verified on sec-dev: go build / vet / test (engagement + cmd) green; new test
covers options written + omitempty + readScopeOptions round-trip.
* docs(changelog): link RoE field-depth PR #1191
---------
Co-authored-by: mschoi <mschoi@elicer.com>
Copy file name to clipboardExpand all lines: CHAGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ Keep proposed and unmerged changes out of released sections.
15
15
16
16
## [Unreleased]
17
17
18
+
- Added [enforced optional RoE controls in the scope wizard #1191](https://github.com/BitterSecurity/Decepticon/pull/1191), not released. The launcher's engagement scope wizard (create + draft-edit) now collects the optional RoE controls the runtime actually enforces: authorized **window length (days)** (was hardcoded to 7; enforced by `TimeWindowMiddleware`), **forbidden destinations** (coverage guard), and the **allow cloud-metadata** / **allow sensitive-TLD** toggles (default blocked). A `scopeOptions` value threads into `machine_enforcement` with `omitempty` so defaults stay absent; the preview shows them and the draft-edit form seeds current values. Non-enforced keys (rate limits, command patterns) are intentionally not offered. Verified on sec-dev (`go build`/`vet`/`test` green). Follow-ups: compiled-policy preview; passive-discovery depth + postgres asset inventory.
19
+
18
20
- Added [engagement draft→started scope lifecycle #1190](https://github.com/BitterSecurity/Decepticon/pull/1190), not released. The launcher now treats a not-yet-started engagement as a **draft** whose scope stays editable, and **locks the scope when the engagement starts** (the launcher→session handoff: TUI/desktop/background). `MarkStarted`/`IsStarted` manage a `plan/.started` marker; `writeDraftScope` is the only `roe.json` overwrite path and refuses once started; the picker labels engagements `draft — scope editable` vs `locked` and offers an Edit step on drafts (re-runs the scope wizard seeded with current targets + passive suggestions). Official stance: a different scope needs a new engagement. Verified on sec-dev (full launcher `go build`/`vet`/`test` green). Follow-ups: RoE field depth, compiled-policy preview, passive-discovery depth + postgres asset inventory.
19
21
20
22
- Added [launcher brings up the OpenShell gateway on start #1189](https://github.com/BitterSecurity/Decepticon/pull/1189), not released. `decepticon start` now stands up the standing OpenShell gateway (profile `openshell`, #1187) alongside the stack, so the default `openshell` sandbox provider admits the engagement out of the box — previously `start` only activated `cli` and the resolver stayed unbound. New `internal/openshell.PrepareGateway` picks the compute engine from the detected container runtime (podman → rootless, else docker), renders the engine's embedded gateway TOML into `DECEPTICON_HOME` (the launcher owns it — `SyncConfigFiles` ships only compose+litellm, not `containers/`), creates the podman data dir, and exports the `OPENSHELL_*` env the compose service reads; `start` prints a boundary banner and activates the `openshell` profile. Engine is auto-selected (no new prompt). Verified on ra-trial: a guarded live test (`OPENSHELL_LIVE=1`) runs the real `PrepareGateway` path → `compose --profile openshell up` → gateway healthy via `host.containers.internal` with the podman driver connected; `go build`/`vet`/`test` green on sec-dev. Follow-ups (separate): engagement draft/lock + asset inventory (postgres); full stack E2E.
0 commit comments