fix(deploy): let the staging container confine extensions in user and network namespaces

Docker's default seccomp profile refuses the clone the extension host
confines with, so a connector that declares egress couldn't start. The profile
is Docker's default plus that clone, limited to the user and network
namespace flags.
This commit is contained in:
sam committed 2026-11-15 22:21:03 +11:00
1 parent e787a79af4
commit 93c9eb51f3
3 files changed
+1277 -1

No files matched your search

+4
View File
@@ -23,6 +23,10 @@ services:
image: gcr.io/distroless/static-debian12:nonroot
restart: unless-stopped
command: ["/archie/archie", "-config", "/archie/config.toml"]
# Docker's default seccomp profile plus the one clone the extension host
# needs to confine an extension in its own user and network namespace.
security_opt:
- seccomp=./seccomp.json
volumes:
- ./bin/archie:/archie/archie:ro
- ./config.toml:/archie/config.toml:ro
+2 -1
View File
@@ -16,6 +16,7 @@ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -C "$repo" -trimpath \
ssh "$target" "mkdir -p $dir/bin $dir/initdb $dir/extensions"
scp -q "$here/compose.yml" "$target:$dir/compose.yml"
scp -q "$here/seccomp.json" "$target:$dir/seccomp.json"
scp -q "$here/initdb/01-roles.sh" "$target:$dir/initdb/01-roles.sh"
scp -q "$here/.build/archie" "$target:$dir/bin/archie.new"
@@ -60,6 +61,6 @@ if ! grep -q '^age_identity' config.toml; then
chown 65532:65532 config.toml
fi
docker compose up -d --remove-orphans
docker compose restart archie
docker compose up -d --force-recreate archie
REMOTE
echo "deployed $version to $target"
File diff suppressed because it is too large. Load diff