build: restricted bash to durther prevent force merges or sudo escalation

This commit is contained in:
clever-agent
2026-05-07 23:17:32 -04:00
parent f84150ea8d
commit 0ce32a88fc
40 changed files with 112 additions and 11 deletions
+2 -1
View File
@@ -119,7 +119,8 @@ permission:
"*api/v1/repos/*/labels*": deny
"*https://git.cleverthis.com/api/v1/repos/cleveragents/cleveragents-core/labels*": deny
"sudo *": deny
"*force_merge": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
+3
View File
@@ -125,6 +125,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
# All agents should start with deny and only enable what you need
@@ -123,6 +123,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
# All agents should start with deny and only enable what you need
+2 -1
View File
@@ -114,7 +114,8 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"sudo *": deny
"*force_merge*": deny
"*sudo*": deny
task:
"*": deny
+2 -1
View File
@@ -114,7 +114,8 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"sudo *": deny
"*force_merge*": deny
"*sudo*": deny
task:
"*": deny
+2 -1
View File
@@ -122,7 +122,8 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"sudo *": deny
"*force_merge*": deny
"*sudo*": deny
task:
"*": deny
+2 -1
View File
@@ -113,7 +113,8 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"sudo *": deny
"*force_merge*": deny
"*sudo*": deny
task:
"*": deny
+3
View File
@@ -124,6 +124,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
# All agents should start with deny and only enable what you need
+2 -1
View File
@@ -116,7 +116,8 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"sudo *": deny
"*force_merge*": deny
"*sudo*": deny
task:
"*": deny
+2 -1
View File
@@ -113,7 +113,8 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"sudo *": deny
"*force_merge*": deny
"*sudo*": deny
task:
"*": deny
@@ -113,7 +113,8 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"sudo *": deny
"*force_merge*": deny
"*sudo*": deny
task:
"*": deny
+3
View File
@@ -129,6 +129,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
# All agents should start with deny and only enable what you need
+2 -1
View File
@@ -114,7 +114,8 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"sudo *": deny
"*force_merge*": deny
"*sudo*": deny
task:
"*": deny
+2 -1
View File
@@ -115,7 +115,8 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"sudo *": deny
"*force_merge*": deny
"*sudo*": deny
task:
"*": deny
+3
View File
@@ -129,6 +129,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
# All agents should start with deny and only enable what you need
+2 -1
View File
@@ -115,7 +115,8 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"sudo *": deny
"*force_merge*": deny
"*sudo*": deny
task:
"*": deny
@@ -126,6 +126,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
# All agents should start with deny and only enable what you need
@@ -128,6 +128,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
# All agents should start with deny and only enable what you need
+4
View File
@@ -118,6 +118,10 @@ permission:
# CRITICAL: No direct HTTP calls to the OpenCode server
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
# All agents should start with deny and only enable what you need
+4
View File
@@ -127,6 +127,10 @@ permission:
# CRITICAL: No direct HTTP calls to the OpenCode server
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
# All agents should start with deny and only enable what you need
+4
View File
@@ -121,6 +121,10 @@ permission:
# CRITICAL: No direct HTTP calls to the OpenCode server
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
# All agents should start with deny and only enable what you need
+3
View File
@@ -137,6 +137,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
# All agents should start with deny and only enable what you need
@@ -118,6 +118,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
task:
"*": deny
@@ -118,6 +118,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
task:
"*": deny
+3
View File
@@ -118,6 +118,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
task:
"*": deny
"session-health-quick-util": allow
+3
View File
@@ -124,6 +124,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
# All agents should start with deny and only enable what you need
+3
View File
@@ -137,6 +137,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
# All agents should start with deny and only enable what you need
+3
View File
@@ -122,6 +122,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# target_agent is caller-controlled but is required by convention to be a
# `task-*` agent (the final inner work agent in the tiered dispatch flow).
# Restricting the wildcard to `task-*` enforces that contract while keeping
+3
View File
@@ -130,6 +130,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# All the subagents you want this agent to have access to
task:
# All agents should start with deny and only enable what you need
+3
View File
@@ -121,6 +121,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# target_agent is caller-controlled but is required by convention to be a
# `task-*` agent (the final inner work agent in the tiered dispatch flow).
# Restricting the wildcard to `task-*` enforces that contract while keeping
+3
View File
@@ -121,6 +121,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# target_agent is caller-controlled but is required by convention to be a
# `task-*` agent (the final inner work agent in the tiered dispatch flow).
# Restricting the wildcard to `task-*` enforces that contract while keeping
+3
View File
@@ -121,6 +121,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# target_agent is caller-controlled but is required by convention to be a
# `task-*` agent (the final inner work agent in the tiered dispatch flow).
# Restricting the wildcard to `task-*` enforces that contract while keeping
+3
View File
@@ -120,6 +120,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# target_agent is caller-controlled but is required by convention to be a
# `task-*` agent (the final inner work agent in the tiered dispatch flow).
# Restricting the wildcard to `task-*` enforces that contract while keeping
+3
View File
@@ -121,6 +121,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# target_agent is caller-controlled but is required by convention to be a
# `task-*` agent (the final inner work agent in the tiered dispatch flow).
# Restricting the wildcard to `task-*` enforces that contract while keeping
+3
View File
@@ -122,6 +122,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# target_agent is caller-controlled but is required by convention to be a
# `task-*` agent (the final inner work agent in the tiered dispatch flow).
# Restricting the wildcard to `task-*` enforces that contract while keeping
+3
View File
@@ -120,6 +120,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# target_agent is caller-controlled but is required by convention to be a
# `task-*` agent (the final inner work agent in the tiered dispatch flow).
# Restricting the wildcard to `task-*` enforces that contract while keeping
+3
View File
@@ -121,6 +121,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# target_agent is caller-controlled but is required by convention to be a
# `task-*` agent (the final inner work agent in the tiered dispatch flow).
# Restricting the wildcard to `task-*` enforces that contract while keeping
+3
View File
@@ -121,6 +121,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# target_agent is caller-controlled but is required by convention to be a
# `task-*` agent (the final inner work agent in the tiered dispatch flow).
# Restricting the wildcard to `task-*` enforces that contract while keeping
+3
View File
@@ -121,6 +121,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# target_agent is caller-controlled but is required by convention to be a
# `task-*` agent (the final inner work agent in the tiered dispatch flow).
# Restricting the wildcard to `task-*` enforces that contract while keeping
+3
View File
@@ -129,6 +129,9 @@ permission:
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
# No subagents needed
task:
"*": deny