CLAUDE.md already requires an explicit request before committing or opening a PR, so the extra permission prompt only repeated that approval.
103 lines
2.7 KiB
JSON
103 lines
2.7 KiB
JSON
{
|
|
"permissions": {
|
|
"defaultMode": "plan",
|
|
"disableAutoMode": "disable",
|
|
"allow": [
|
|
"Bash(pulumi preview *)",
|
|
"Bash(pulumi stack ls *)",
|
|
"Bash(pulumi whoami *)",
|
|
"Bash(pulumi version *)",
|
|
"Bash(pulumi stack output *)",
|
|
"Bash(pulumi stack history *)",
|
|
"Bash(pulumi config)",
|
|
"Bash(pulumi config get *)",
|
|
"Bash(npm ci)",
|
|
"Bash(npm install)",
|
|
"Bash(npm run typecheck *)",
|
|
"Bash(npx tsc *)",
|
|
"Bash(kubectl get *)",
|
|
"Bash(kubectl describe *)",
|
|
"Bash(kubectl logs *)",
|
|
"Bash(kubectl top *)",
|
|
"Bash(kubectl config get-contexts *)",
|
|
"Bash(git add *)",
|
|
"Bash(git switch *)",
|
|
"Bash(.claude/scripts/gitea.sh GET *)",
|
|
"Bash(.claude/scripts/gitea.sh POST *)",
|
|
"Bash(git commit *)",
|
|
"Bash(git push *)",
|
|
"WebFetch(domain:www.pulumi.com)",
|
|
"WebFetch(domain:github.com)",
|
|
"WebFetch(domain:raw.githubusercontent.com)",
|
|
"WebFetch(domain:kube-vip.io)",
|
|
"WebFetch(domain:longhorn.io)",
|
|
"WebFetch(domain:registry.terraform.io)"
|
|
],
|
|
"ask": [
|
|
"Bash(pulumi up *)",
|
|
"Bash(pulumi destroy *)",
|
|
"Bash(pulumi refresh *)",
|
|
"Bash(pulumi import *)",
|
|
"Bash(pulumi state *)",
|
|
"Bash(pulumi config set *)",
|
|
"Bash(pulumi config rm *)",
|
|
"Bash(kubectl get secret*)",
|
|
"Bash(kubectl config set*)",
|
|
"Bash(kubectl config use-context *)",
|
|
"Bash(kubectl config delete*)",
|
|
"Bash(kubectl config rename-context *)",
|
|
"Bash(kubectl apply *)",
|
|
"Bash(kubectl delete *)",
|
|
"Bash(kubectl patch *)",
|
|
"Bash(kubectl drain *)",
|
|
"Bash(kubectl exec *)",
|
|
"Bash(ssh *)",
|
|
"Bash(scp *)",
|
|
"Bash(curl *)",
|
|
"Bash(.claude/scripts/gitea.sh PATCH *)",
|
|
"Bash(.claude/scripts/gitea.sh PUT *)",
|
|
"Bash(.claude/scripts/gitea.sh DELETE *)"
|
|
],
|
|
"deny": [
|
|
"Bash(env)",
|
|
"Bash(printenv *)",
|
|
"Bash(pulumi stack export *)",
|
|
"Bash(pulumi *--show-secrets*)",
|
|
"Read(**/.env)",
|
|
"Edit(**/Pulumi.dev.yaml)",
|
|
"Edit(~/.kube/**)",
|
|
"Edit(~/.config/homelab-agent/**)",
|
|
"Read(~/.config/homelab-agent/token)",
|
|
"Bash(*homelab-agent/token*)"
|
|
]
|
|
},
|
|
"attribution": {
|
|
"commit": "",
|
|
"pr": ""
|
|
},
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/guard-live-infra.sh"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/check-on-stop.sh",
|
|
"timeout": 300
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|