Skip to content

Commit 19cdadb

Browse files
remove unprivileged jail
1 parent 785a6d8 commit 19cdadb

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

registry/coder/modules/claude-code/main.tf

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,6 @@ variable "boundary_log_dir" {
204204
default = "/tmp/boundary_logs"
205205
}
206206

207-
variable "boundary_unprivileged" {
208-
type = bool
209-
description = "Whether to use --unprivileged flag with coder boundary (recommended for security)"
210-
default = true
211-
}
212-
213207
variable "boundary_additional_allowed_urls" {
214208
type = list(string)
215209
description = "Additional URLs to allow through boundary (in addition to default allowed URLs)"
@@ -246,12 +240,6 @@ resource "coder_env" "claude_api_key" {
246240
value = var.claude_api_key
247241
}
248242

249-
resource "coder_env" "mcp_server_port" {
250-
agent_id = var.agent_id
251-
name = "MCP_SERVER_PORT"
252-
value = "8081"
253-
}
254-
255243
locals {
256244
# we have to trim the slash because otherwise coder exp mcp will
257245
# set up an invalid claude config
@@ -304,7 +292,6 @@ module "agentapi" {
304292
ARG_AI_PROMPT='${base64encode(var.ai_prompt)}' \
305293
ARG_ENABLE_BOUNDARY='${var.enable_boundary}' \
306294
ARG_BOUNDARY_LOG_DIR='${var.boundary_log_dir}' \
307-
ARG_BOUNDARY_UNPRIVILEGED='${var.boundary_unprivileged}' \
308295
ARG_BOUNDARY_ADDITIONAL_ALLOWED_URLS='${join(" ", var.boundary_additional_allowed_urls)}' \
309296
ARG_CODER_HOST='${local.coder_host}' \
310297
/tmp/start.sh

registry/coder/modules/claude-code/scripts/start.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ ARG_WORKDIR=${ARG_WORKDIR:-"$HOME"}
1717
ARG_AI_PROMPT=$(echo -n "${ARG_AI_PROMPT:-}" | base64 -d)
1818
ARG_ENABLE_BOUNDARY=${ARG_ENABLE_BOUNDARY:-false}
1919
ARG_BOUNDARY_LOG_DIR=${ARG_BOUNDARY_LOG_DIR:-"/tmp/boundary_logs"}
20-
ARG_BOUNDARY_UNPRIVILEGED=${ARG_BOUNDARY_UNPRIVILEGED:-true}
2120
ARG_CODER_HOST=${ARG_CODER_HOST:-}
2221

2322
echo "--------------------------------"
@@ -31,7 +30,6 @@ printf "ARG_AI_PROMPT: %s\n" "$ARG_AI_PROMPT"
3130
printf "ARG_WORKDIR: %s\n" "$ARG_WORKDIR"
3231
printf "ARG_ENABLE_BOUNDARY: %s\n" "$ARG_ENABLE_BOUNDARY"
3332
printf "ARG_BOUNDARY_LOG_DIR: %s\n" "$ARG_BOUNDARY_LOG_DIR"
34-
printf "ARG_BOUNDARY_UNPRIVILEGED: %s\n" "$ARG_BOUNDARY_UNPRIVILEGED"
3533
printf "ARG_CODER_HOST: %s\n" "$ARG_CODER_HOST"
3634

3735
echo "--------------------------------"

0 commit comments

Comments
 (0)