mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-05-17 21:27:19 +02:00
chore: update agent permissions
This commit is contained in:
@@ -44,7 +44,11 @@ These tools run without prompting:
|
|||||||
- `lsp`
|
- `lsp`
|
||||||
- `question`
|
- `question`
|
||||||
- `skill`
|
- `skill`
|
||||||
|
- `todowrite`
|
||||||
- `webfetch`
|
- `webfetch`
|
||||||
|
- `websearch`
|
||||||
|
- `codesearch`
|
||||||
|
- `edit` (covers `write` and `apply_patch`)
|
||||||
|
|
||||||
## Bash Command Permissions
|
## Bash Command Permissions
|
||||||
|
|
||||||
@@ -59,8 +63,8 @@ These tools run without prompting:
|
|||||||
- `kubectl get`, `kubectl describe`, `kubectl logs`, `kubectl top`
|
- `kubectl get`, `kubectl describe`, `kubectl logs`, `kubectl top`
|
||||||
- `kubectl api-resources`, `kubectl api-versions`
|
- `kubectl api-resources`, `kubectl api-versions`
|
||||||
- `kubectl config view`, `kubectl config get-contexts`
|
- `kubectl config view`, `kubectl config get-contexts`
|
||||||
- `kubectl kustomize`, `kustomize build`, `kustomize version`
|
|
||||||
- `kubectl explain`
|
- `kubectl explain`
|
||||||
|
- `kubectl kustomize`, `kustomize build`, `kustomize version`
|
||||||
|
|
||||||
**Terraform:**
|
**Terraform:**
|
||||||
|
|
||||||
@@ -170,18 +174,17 @@ For agents running in dedicated homelab VMs, permissions are significantly relax
|
|||||||
| Tool | Permission |
|
| Tool | Permission |
|
||||||
| -------------------- | ---------- |
|
| -------------------- | ---------- |
|
||||||
| `edit` | allow |
|
| `edit` | allow |
|
||||||
| `write` | allow |
|
|
||||||
| `task` | ask |
|
| `task` | ask |
|
||||||
| `external_directory` | ask |
|
| `external_directory` | ask |
|
||||||
| `doom_loop` | deny |
|
| `doom_loop` | deny |
|
||||||
|
|
||||||
## Summary
|
## Summary
|
||||||
|
|
||||||
|
- **Default policy**: All tools `ask` — only explicitly whitelisted tools auto-allow
|
||||||
- **File operations**: `read`, `glob`, `grep`, `edit`, `write` all allowed in workspace
|
- **File operations**: `read`, `glob`, `grep`, `edit`, `write` all allowed in workspace
|
||||||
- **Nix operations**: Build/eval/flake commands auto-allowed (writes to store only)
|
- **Nix operations**: Build/eval/flake commands auto-allowed (writes to store only)
|
||||||
- **Linting & formatting**: All check commands auto-allowed
|
- **Linting & formatting**: All check commands auto-allowed
|
||||||
- **System diagnostics**: Read-only system info auto-allowed
|
- **System diagnostics**: Read-only system info auto-allowed
|
||||||
- **Sensitive files**: Credentials, keys, and cloud configs are blocked
|
- **Sensitive files**: Credentials, keys, and cloud configs are blocked
|
||||||
- **Destructive operations**: `rm` requires explicit user confirmation
|
- **Bash commands**: Read-only ops auto-allowed; `rm` requires confirmation; `sudo` blocked
|
||||||
- **Privilege escalation**: `sudo` is completely blocked
|
|
||||||
- **Scope control**: `task` and `external_directory` require approval
|
- **Scope control**: `task` and `external_directory` require approval
|
||||||
|
|||||||
Reference in New Issue
Block a user