ellio_traefik_forward_auth
Traefik Forward Auth container to be used with forwardauth middleware.
601
Secure forward authentication middleware for Traefik that integrates with ELLIO EDL Management Platform.
Docker Hub: elliotechnology/ellio_traefik_forward_auth
Log in to platform.ellio.tech and generate a bootstrap token for your deployment.
Add the ForwardAuth service to your existing docker-compose.yml:
version: '3.8'
services:
traefik:
image: traefik:v3.0
command:
- "--providers.docker=true"
- "--entrypoints.web.address=:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- web
forwardauth:
image: elliotechnology/ellio_traefik_forward_auth:latest
environment:
- ELLIO_BOOTSTRAP=your_bootstrap_token_here # Replace with your token
# Optional: Override IP header (defaults to X-Forwarded-For)
# - IP_HEADER_OVERRIDE=X-Real-IP
labels:
# Define the middleware
- "traefik.http.middlewares.ellio-auth.forwardAuth.address=http://forwardauth:8080/auth"
networks:
- web
# Your protected service
your-app:
image: your-app:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.your-app.rule=Host(`app.example.com`)"
- "traefik.http.routers.your-app.middlewares=ellio-auth" # Apply the middleware
networks:
- web
networks:
web:
driver: bridge
That's it! Your services are now protected by ELLIO EDL.
The ForwardAuth middleware is configured through Traefik labels:
traefik.http.middlewares.ellio-auth.forwardAuth.addresstraefik.http.routers.your-app.middlewares=ellio-authThe ForwardAuth middleware adapts its behavior based on your EDL deployment configuration in the ELLIO platform:
The EDL supports multiple IP address formats:
192.168.1.1)2001:db8::1)10.0.0.0/8, 2001:db8::/32)In the event of deployment issues:
X-Forwarded-For header (or custom header if configured)Apache License 2.0 - see LICENSE file for details.
Copyright © ELLIO Technology s.r.o. | Part of the ELLIO EDL Management Platform
Content type
Image
Digest
sha256:b77d5a058…
Size
7.4 MB
Last updated
11 months ago
docker pull elliotechnology/ellio_traefik_forward_auth:26487ab