Skip to content

Commit 7ffe370

Browse files
committed
fix: align default policy YAML with CRD schema
1 parent f1492a4 commit 7ffe370

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

cmd/k8sclaw/main.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -690,19 +690,11 @@ spec:
690690
action: ask
691691
- tool: write_file
692692
action: allow
693-
conditions:
694-
maxCallsPerRun: 100
695693
- tool: network_request
696694
action: deny
697-
execGating:
698-
allowShell: true
699-
allowedCommands: [git, npm, go, python, make]
700-
deniedCommands: ["rm -rf /", curl, wget]
701-
maxExecTime: "30s"
702695
subagentPolicy:
703696
maxDepth: 3
704697
maxConcurrent: 5
705-
inheritTools: true
706698
sandboxPolicy:
707699
required: false
708700
defaultImage: ghcr.io/alexsjones/k8sclaw/sandbox:latest

config/samples/clawpolicy_sample.yaml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,40 +13,17 @@ spec:
1313
action: ask
1414
- tool: write_file
1515
action: allow
16-
conditions:
17-
maxCallsPerRun: 100
1816
- tool: network_request
1917
action: deny
20-
execGating:
21-
allowShell: true
22-
allowedCommands:
23-
- git
24-
- npm
25-
- go
26-
- python
27-
- make
28-
deniedCommands:
29-
- rm -rf /
30-
- curl
31-
- wget
32-
maxExecTime: "30s"
3318
subagentPolicy:
3419
maxDepth: 3
3520
maxConcurrent: 5
36-
inheritTools: true
3721
sandboxPolicy:
3822
required: false
3923
defaultImage: ghcr.io/alexsjones/k8sclaw/sandbox:latest
4024
maxCPU: "4"
4125
maxMemory: 8Gi
42-
mountPolicy:
43-
allowHostPath: false
44-
allowedPaths:
45-
- /workspace
46-
- /tmp
4726
featureGates:
4827
browser-automation: false
4928
code-execution: true
5029
file-access: true
51-
sub-agents: true
52-
mcp-servers: false

0 commit comments

Comments
 (0)