Skip to content

Commit 7847627

Browse files
authored
fix: disable bwrap sandboxing on codegen service (Fargate workaround) (#116)
ECS Fargate doesn't support unprivileged user namespaces which bwrap requires. This caused /api/v1/loader/html/* endpoints to return empty HTML. DISABLE_BWRAP=1 bypasses the bubblewrap sandbox. This is a temporary fix until the codegen service is migrated to EC2 launch type with user namespaces enabled.
1 parent 57eb5dc commit 7847627

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

terraform/services/codegen/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ module "codegen_service" {
4545
GENERIC_WORKER_POOL_SIZE = tostring(var.generic_worker_pool_size)
4646
LOADER_ASSETS_BUCKET = local.loader_assets_bucket
4747
DEBUG = "connect:typeorm"
48+
DISABLE_BWRAP = "1" # Disable bubblewrap sandboxing (not supported on Fargate)
4849
}
4950

5051
# Secrets - DATABASE_URI contains the full PostgreSQL connection string

0 commit comments

Comments
 (0)