feat(security): Restrict sensitive services to local network

Apply local-only middleware to:
- Backrest (backup management)
- Code Server (IDE)
- Ollama (LLM API)

These services now require both SSO authentication and local network
access (10.0.0.0/16), preventing external access while maintaining
convenience on LAN.
This commit is contained in:
Eduardo Figueroa 2025-12-04 18:43:46 +00:00
parent 6ad3392056
commit 60781182f6
3 changed files with 6 additions and 6 deletions

View file

@ -26,8 +26,8 @@ services:
traefik.http.routers.backrest.tls.certresolver: letsencrypt traefik.http.routers.backrest.tls.certresolver: letsencrypt
traefik.http.services.backrest.loadbalancer.server.port: 9898 traefik.http.services.backrest.loadbalancer.server.port: 9898
# Require authentication # Require authentication and restrict to local network
traefik.http.routers.backrest.middlewares: tinyauth traefik.http.routers.backrest.middlewares: tinyauth,local-only
# Homarr Discovery # Homarr Discovery
homarr.name: Backrest Backup homarr.name: Backrest Backup

View file

@ -29,8 +29,8 @@ services:
traefik.http.routers.code-server.tls.certresolver: letsencrypt traefik.http.routers.code-server.tls.certresolver: letsencrypt
traefik.http.services.code-server.loadbalancer.server.port: 8443 traefik.http.services.code-server.loadbalancer.server.port: 8443
# SSO Protection # SSO Protection and restrict to local network
traefik.http.routers.code-server.middlewares: tinyauth traefik.http.routers.code-server.middlewares: tinyauth,local-only
# Homarr Discovery # Homarr Discovery
homarr.name: Code Server (IDE) homarr.name: Code Server (IDE)

View file

@ -43,8 +43,8 @@ services:
traefik.http.routers.ollama.tls.certresolver: letsencrypt traefik.http.routers.ollama.tls.certresolver: letsencrypt
traefik.http.services.ollama.loadbalancer.server.port: 11434 traefik.http.services.ollama.loadbalancer.server.port: 11434
# SSO Protection for API # SSO Protection for API and restrict to local network
traefik.http.routers.ollama.middlewares: tinyauth traefik.http.routers.ollama.middlewares: tinyauth,local-only
# Homarr Discovery # Homarr Discovery
homarr.name: Ollama (LLM) homarr.name: Ollama (LLM)