SOCFortress WAF: new service#321
Open
ChillBill77 wants to merge 9 commits into
Open
Conversation
Removed the Include
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SOCFortress WAF: new service (Tailscale-served admin UI)
Description
Adds the SOCFortress WAF Management Platform
as a new service. Unlike the single-app template, this is a multi-container stack
(Caddy+Coraza WAF engine, FastAPI admin API, React/Nginx admin UI, PostgreSQL,
Redis, demo upstream). A Tailscale sidecar serves the admin UI privately over
the Tailnet via Tailscale Serve (Funnel disabled); the WAF data plane
(
caddy-waf) stays published on host80/443so per-site Let's Encrypt and realclient IPs keep working.
Because it is a multi-service stack,
network_mode: service:tailscaleis notusable (it collapses the namespace and breaks Docker DNS between the services).
Instead the Tailscale container runs as a normal peer on the stack's internal
network and reverse-proxies to
admin-ui:8080by container name using thehttps+insecure://scheme (the UI serves self-signed HTTPS internally; thepublic
*.ts.netcert is valid).Related Issues
Verification
docker compose config --quiet→ exit 0 (schema, interpolation, and merge valid; Compose v2).docker compose up -d: stack starts and the admin UI is reachableChecklist
Additional Context
Intentional deviations from
templates/service-template, with rationale:network_mode: service:tailscale— multi-service stack; Tailscale is apeer on the internal network proxying to
admin-ui:8080by DNS name.TS_USERSPACE=true(no/dev/net/tun, nocap_add: net_admin) — only theadmin UI is served, so kernel networking isn't needed; least privilege.
https+insecure://backend — admin UI is self-signed HTTPS internally.80/443— required; the WAF must receive realpublic traffic. Only the admin UI is Tailnet-only.
*.ts.nethostname, break per-site ACME, and hide real client IPs (degrading GeoIP).
User gotchas:
ALLOWED_ORIGINS=https://<host>.<tailnet>.ts.net(CORS, no wildcard) or login fails.GeoLite2-City.mmdb(MaxMind licensing).