fix(workspace): LAN exposure via host firewall — the Supabase CLI forces 0.0.0.0, so PostgreSQL / Studio / raw Mailpit close by UFW rules on the LAN interface; gateway reduced to Mailpit behind basic auth on 54325
Owner run: the CLI prints 'All services bind to 0.0.0.0' and ignored the rootless daemon's default address; the gateway could not share 54321/54324 with 0.0.0.0 listeners. Now: Kong serves the API directly; the DEV gateway serves only Mailpit with basic auth on <DEV host>:54325; ENVIRONMENTS.md §3 gives the exact UFW rules (interface-scoped deny on 54322-54324, two cases by current UFW state), rollback and impact; dev:net-check proves the allowed surfaces from a distinct Docker network (5/5 OK) and prints the refusal checks to run from another device, since a rootless container's traffic to the host is delivered locally and cannot see the LAN firewall. LRN-053 corrects LRN-052.
This commit is contained in:
1 parent
a8edd59059
commit
e633169a00
11 files changed
+143
-111
No files matched your search
+5
-7
@@ -40,11 +40,10 @@ services:
|
||||
- supabase
|
||||
restart: unless-stopped
|
||||
|
||||
# DEV gateway (docs/development/ENVIRONMENTS.md §3): with the rootless daemon binding
|
||||
# published ports on loopback by default, this is the only entry of the private
|
||||
# network into the stack: the Supabase API on <DEV host>:54321 and Mailpit behind
|
||||
# basic auth on <DEV host>:54324. Started by `pnpm dev:gateway` (profile `dev`),
|
||||
# which exports FAUNOSTEO_DEV_HOST and generates docker/dev-gateway/htpasswd.
|
||||
# DEV gateway (docs/development/ENVIRONMENTS.md §3): Mailpit behind basic auth on
|
||||
# <DEV host>:54325, the only LAN entry to the DEV mails (the CLI's raw Mailpit port
|
||||
# 54324 is closed to the LAN by the host firewall rule). Started by `pnpm dev:gateway`
|
||||
# (profile `dev`), which exports FAUNOSTEO_DEV_HOST and generates the htpasswd.
|
||||
dev-gateway:
|
||||
container_name: faunosteo_dev_gateway
|
||||
profiles: ["dev"]
|
||||
@@ -53,8 +52,7 @@ services:
|
||||
- ./docker/dev-gateway/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- ./docker/dev-gateway/htpasswd:/etc/nginx/htpasswd:ro
|
||||
ports:
|
||||
- "${FAUNOSTEO_DEV_HOST:-127.0.0.1}:54321:54321"
|
||||
- "${FAUNOSTEO_DEV_HOST:-127.0.0.1}:54324:54324"
|
||||
- "${FAUNOSTEO_DEV_HOST:-127.0.0.1}:54325:54325"
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
networks:
|
||||
|
||||
Reference in new issue
Block a user