Scanning archi-dev-box from OUTSIDE found five ports serving their screens with no login — lnd-ui 18083, bitcoin-ui 8334, fips-ui 8336, electrs-ui 50002 and the Fedimint Guardian 8175 — none of which appeared in the gate's unprotected list. They are host-networked, so Podman publishes nothing to pin and their manifests declared 'ports: []'; the gate builds its map from declared ports, so it neither protected them nor reported them. An audit that reports success while five screens are open is worse than no audit. Their nginx now listens on 127.0.0.1 instead of 0.0.0.0, and each port is declared 'auth: gated' so the daemon owns the outside. 'bind:' on a host-networked app is a statement of where the container listens, not a publish instruction — quadlet already skips PublishPort in host mode. Guardian 8175 is declared on the fedimint app because its companion has no manifest, and the gate keys on port, not container. Credential paths were NOT exposed and are verified so: /lnd-connect-info, the /proxy/lnd/ passthrough, container logs and every RPC method through these screens all return 401 unauthenticated. What leaked was the page shell. Also fixes the delivery gap that would have made this unshippable: only bitcoin-ui, lnd-ui and electrs-ui were ever rsynced to /opt/archipelago/docker, so edits to fips-ui and fedimint-ui reached nodes through no path at all. All five now sync; the two whose rebuilds the daemon owns are synced without being handed to container-specs. Every remaining undeclared port is now declared with a stated reason — gated: botfights 9100, router 8084, pine 10380; exempt with rationale: fedimint consensus 8173/8174, gateway 8176/9737, netbird 8086/8087 (TLS + own auth, and enrolled devices cannot hold a session), pine TLS 10381, lightning-stack REST 8091 (macaroon, mirrors lnd). Zero undeclared ports remain across all 56 manifests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
62 lines
2.0 KiB
YAML
62 lines
2.0 KiB
YAML
app:
|
|
id: lnd-ui
|
|
name: LND UI
|
|
version: 1.0.0
|
|
description: |
|
|
Archipelago-native HTTP frontend for LND. Runs nginx inside a
|
|
container and serves static assets. LND connection info is fetched
|
|
via an absolute URL that the host nginx routes to the archipelago
|
|
backend on 127.0.0.1:5678, so no upstream auth is baked in.
|
|
|
|
container:
|
|
build:
|
|
context: /opt/archipelago/docker/lnd-ui
|
|
dockerfile: Dockerfile
|
|
tag: localhost/lnd-ui:local
|
|
|
|
dependencies:
|
|
- app_id: lnd
|
|
|
|
resources:
|
|
memory_limit: 64Mi
|
|
|
|
security:
|
|
readonly_root: false
|
|
network_policy: host
|
|
|
|
# Host networking: the container's nginx listens on 18083 directly (see
|
|
# docker/lnd-ui/nginx.conf), because it has to proxy the archipelago backend
|
|
# on 127.0.0.1:5678 same-origin — a bridge container cannot reach that, and
|
|
# the cross-origin fallback broke the app on http-only nodes. `ports:` is
|
|
# intentionally empty because host networking bypasses port mapping, exactly
|
|
# as in apps/bitcoin-ui/manifest.yml.
|
|
#
|
|
# This previously declared `bridge` with 18083:80, which publishes the host
|
|
# port to a container port where nothing listens. scripts/container-specs.sh
|
|
# carried the identical mistake and was fixed alongside this; recreating from
|
|
# it on archi-dev-box left :18083 refusing connections.
|
|
# Declared so the APP GATE can see this port. Host networking means Podman
|
|
# publishes nothing (quadlet skips PublishPort in host mode), so `bind:` here
|
|
# is a statement of where the container's own nginx listens — 127.0.0.1 —
|
|
# not a publish instruction. Without this declaration the gate had no idea
|
|
# the port existed: it was neither protected nor listed as unprotected, and
|
|
# served the LND screen unauthenticated on every interface.
|
|
ports:
|
|
- host: 18083
|
|
container: 18083
|
|
protocol: tcp
|
|
bind: 127.0.0.1
|
|
auth: gated
|
|
|
|
volumes: []
|
|
|
|
environment: []
|
|
|
|
health_check:
|
|
type: http
|
|
endpoint: http://127.0.0.1:18083
|
|
path: /
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|