Auto-login from trusted reverse-proxy Authentik headers
When SSO_GATEWAY_SECRET is set and an incoming request carries both X-Artifacto-Gateway (matching the secret) and X-Authentik-Username, the admin middleware mints a session automatically so Authentik-authenticated users skip the password form. Missing or wrong gateway header falls back to the password-login flow, so peers that can reach the container directly (bypassing the reverse proxy) cannot spoof Authentik identities.
This commit is contained in:
@@ -33,6 +33,7 @@ Then put a reverse proxy (Caddy, nginx, Traefik) in front for HTTPS.
|
||||
| `BIND_ADDR` | `:3000` | Listen address |
|
||||
| `MAX_UPLOAD_MB` | `5` | Per-artifact upload cap |
|
||||
| `LOG_LEVEL` | `info` | `info` or `debug` |
|
||||
| `SSO_GATEWAY_SECRET` | — | Optional: enables auto-login from a trusted reverse proxy forwarding Authentik headers plus a matching `X-Artifacto-Gateway` header |
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user