-
Notifications
You must be signed in to change notification settings - Fork 2k
docs(network-policy): fix incorrect CLI usage for presets and dynamic policy updates #1036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
12736be
99154aa
2b7eb0e
6883867
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,13 +75,14 @@ Dynamic changes apply a policy update to a running sandbox without restarting it | |
|
|
||
| Create a YAML file with the endpoints to add. | ||
| Follow the same format as the baseline policy in `nemoclaw-blueprint/policies/openclaw-sandbox.yaml`. | ||
| The file must include the mandatory `version` field (e.g., `version: 1`) to be accepted by the OpenShell parser. | ||
|
|
||
| ### Apply the Policy | ||
|
|
||
| Use the OpenShell CLI to apply the policy update: | ||
|
|
||
| ```console | ||
| $ openshell policy set <policy-file> | ||
| $ openshell policy set --policy <policy-file> <name> | ||
| ``` | ||
|
|
||
| The change takes effect immediately. | ||
|
|
@@ -111,14 +112,31 @@ Available presets: | |
| | `slack` | Slack API and webhooks | | ||
| | `telegram` | Telegram Bot API | | ||
|
|
||
| To apply a preset to a running sandbox, pass it as a policy file: | ||
| To apply a preset to a running sandbox: | ||
|
|
||
| ```console | ||
| $ openshell policy set nemoclaw-blueprint/policies/presets/pypi.yaml | ||
| $ nemoclaw <name> policy-add <preset> | ||
| ``` | ||
|
|
||
| For example, to add PyPI access to a running sandbox: | ||
|
|
||
| ```console | ||
| $ nemoclaw my-assistant policy-add pypi | ||
| ``` | ||
|
||
|
|
||
| To list which presets are applied to a sandbox: | ||
|
|
||
| ```console | ||
| $ nemoclaw <name> policy-list | ||
| ``` | ||
|
|
||
| To include a preset in the baseline, merge its entries into `openclaw-sandbox.yaml` and re-run `nemoclaw onboard`. | ||
|
|
||
| :::{note} | ||
| The `openshell policy set --policy <file> <name>` command operates on raw policy files and does not accept the `preset:` metadata block used in preset YAML files. | ||
| Use `nemoclaw <name> policy-add` for presets. | ||
| ::: | ||
|
|
||
| ## Related Topics | ||
|
|
||
| - [Approve or Deny Agent Network Requests](approve-network-requests.md) for real-time operator approval. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.