feat(auth): explicit transport modes

ACAUA_TRANSPORT (local, tls, proxy) is now required; a missing or invalid
value stops the daemon. local refuses a non-loopback ACAUA_PUBLISHED, tls
serves HTTPS via axum-server/rustls, proxy needs ACAUA_TRUSTED_PROXIES.
HSTS is sent in tls and proxy modes. The image defaults to local.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-04 20:03:00 -03:00
1 parent 5ad89d5be5
commit dc8c7fa248
8 files changed
+430 -19

No files matched your search

+8
View File
@@ -27,6 +27,14 @@ services:
acaua:
image: ${ACAUA_IMAGE:-git.lucasrguerra.dev.br/ciberfauna/acaua}:${ACAUA_VERSION:-latest}
build: .
environment:
ACAUA_TRANSPORT: ${ACAUA_TRANSPORT:-local}
# Informs the daemon where the port is published; `local` refuses a
# non-loopback address.
ACAUA_PUBLISHED: ${ACAUA_PUBLISH:-127.0.0.1:8787}
ACAUA_TLS_CERT: ${ACAUA_TLS_CERT:-}
ACAUA_TLS_KEY: ${ACAUA_TLS_KEY:-}
ACAUA_TRUSTED_PROXIES: ${ACAUA_TRUSTED_PROXIES:-}
ports:
- "${ACAUA_PUBLISH:-127.0.0.1:8787}:8787"
volumes: