Skip to content

feat(launcher): enforced optional RoE controls in the scope wizard - #1191

Merged
PurpleCHOIms merged 2 commits into
mainfrom
feat/roe-field-depth
Nov 13, 2026
Merged

PurpleCHOIms merged 2 commits into
mainfrom
feat/roe-field-depth

Conversation

@PurpleCHOIms

Copy link
Copy Markdown
Member

What

Extends the launcher's engagement scope wizard (create and draft-edit) to collect the optional RoE controls the runtime actually enforces, beyond in/out scope:

  • Authorized window (days) — previously hardcoded to 7; now operator-set, enforced by TimeWindowMiddleware.
  • Forbidden destinations — extra always-denied hosts (compile-time coverage guard).
  • Allow cloud-metadata endpoints? — default blocked.
  • Allow sensitive TLDs (.gov/.mil/.edu/.int)? — default blocked.

How

A scopeOptions value threads through collectScope → buildRoeDocument / createDirectEngagement / writeDraftScope into machine_enforcement (omitempty, so defaults stay absent and the runtime default holds). The review preview shows window + forbidden + toggles; the draft-edit form seeds current values via readScopeOptions.

Non-enforced keys (rate limits, command patterns) are deliberately not offered — the runtime treats them as "set but not enforced", so surfacing them would mislead.

Verified

go build / go vet ./... / go test (engagement + cmd) green on sec-dev. New test covers options written, omitempty of defaults, and readScopeOptions round-trip.

Follow-ups

  • Compiled kernel-policy preview (cross-language bridge to compile_openshell_policy).
  • Passive-discovery depth + postgres asset inventory.

mschoi added 2 commits November 13, 2026 14:36
…zard

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.
@PurpleCHOIms
PurpleCHOIms merged commit 2df3362 into main Nov 13, 2026
24 checks passed
@PurpleCHOIms
PurpleCHOIms deleted the feat/roe-field-depth branch November 13, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant