chore: require approval for commits and guard the kubeconfig
Claude committed after a yes that was only meant for an edit, and once edited the local kubeconfig on its own. Commits now prompt, and kubeconfig/token edits are denied or prompt instead of relying on CLAUDE.md alone.
This commit is contained in:
1 parent
098c1c93c2
commit
5cd50c31ff
2 files changed
+9
-1
No files matched your search
@@ -21,7 +21,6 @@
|
||||
"Bash(kubectl top *)",
|
||||
"Bash(kubectl config get-contexts *)",
|
||||
"Bash(git add *)",
|
||||
"Bash(git commit *)",
|
||||
"Bash(git switch *)",
|
||||
"Bash(.claude/scripts/gitea.sh GET *)",
|
||||
"WebFetch(domain:www.pulumi.com)",
|
||||
@@ -40,6 +39,10 @@
|
||||
"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 *)",
|
||||
@@ -48,6 +51,7 @@
|
||||
"Bash(ssh *)",
|
||||
"Bash(scp *)",
|
||||
"Bash(curl *)",
|
||||
"Bash(git commit *)",
|
||||
"Bash(git push *)",
|
||||
"Bash(.claude/scripts/gitea.sh POST *)",
|
||||
"Bash(.claude/scripts/gitea.sh PATCH *)",
|
||||
@@ -61,6 +65,8 @@
|
||||
"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*)"
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user