-
Notifications
You must be signed in to change notification settings - Fork 474
[Feature]: Add openshell policy merge for incremental policy updates #768
Copy link
Copy link
Closed
Description
Description
openshell policy set replaces the entire sandbox policy. Adding a single new endpoint requires manually merging 200+ lines of existing policy YAML.
Steps to Reproduce
- Sandbox has multiple network policy groups configured for various services
- Need to add a new endpoint (e.g., Slack)
- Must create a complete YAML with ALL existing + new policies and apply it
- Accidentally omitting any existing policy silently blocks that network access
Proposal
# Add a network policy group incrementally
openshell policy add my-assistant --group slack --endpoints slack.com,api.slack.com --binaries /usr/local/bin/node
# Or from a preset file
openshell policy add my-assistant --from-file presets/slack.yaml
# Remove a policy group
openshell policy remove my-assistant --group telegram
# List active policy groups
openshell policy list my-assistant --groupsWorkaround
Manually merge YAML files. This is error-prone — it's easy to accidentally omit an existing policy group and silently lose network access for that service.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels