Repository navigation
feat(launcher): enforced optional RoE controls in the scope wizard - #1191
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
TimeWindowMiddleware.How
A
scopeOptionsvalue threads throughcollectScope → buildRoeDocument / createDirectEngagement / writeDraftScopeintomachine_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 viareadScopeOptions.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,omitemptyof defaults, andreadScopeOptionsround-trip.Follow-ups
compile_openshell_policy).