DOMAIN causes unexpected behaviour #2

Open
opened 2023-11-17 12:19:55 +00:00 by 3wordchant · 3 comments
Owner

The DOMAIN environment variable has a special meaning for traefik-forward-auth: it establishes a list of allowed email domains for SSO https://github.com/thomseddon/traefik-forward-auth#user-restriction

This means that abra's default behaviour of setting DOMAIN causes unexpected behaviour. If DOMAIN=auth.example.com, only users with emails like user@auth.example.com will be allowed in 😞

The `DOMAIN` environment variable has a special meaning for `traefik-forward-auth`: it establishes a list of allowed email domains for SSO https://github.com/thomseddon/traefik-forward-auth#user-restriction This means that `abra`'s default behaviour of setting `DOMAIN` causes unexpected behaviour. If `DOMAIN=auth.example.com`, only users with emails like `user@auth.example.com` will be allowed in 😞
Member

If the DOMAIN variable is already used by a container, I would suggest to rename the variable. Use an env like TRAEFIK_DOMAIN and place DOMAIN=${TRAEFIK_DOMAIN} in the compose file under environment.

If the `DOMAIN` variable is already used by a container, I would suggest to rename the variable. Use an env like `TRAEFIK_DOMAIN` and place `DOMAIN=${TRAEFIK_DOMAIN}` in the compose file under `environment`.
Author
Owner

@moritz thanks for the suggestion! Maybe I'm misunderstanding your suggestion, but the problem seems to be that, if DOMAIN is set in the container, traefik-forward-auth behaves unexpectedly – and I can't find a way to unset it.

@moritz thanks for the suggestion! Maybe I'm misunderstanding your suggestion, but the problem seems to be that, if `DOMAIN` is set in the container, `traefik-forward-auth` behaves unexpectedly – and I can't find a way to unset it.
Member

If you set DOMAIN=${TRAEFIK_DOMAIN} in the compose file and set TRAEFIK_DOMAIN="" in your .env file you unset the DOMAIN variable for the container. If you never need the DOMAIN variable you could also directly set DOMAIN="" in the compose file.

If you set `DOMAIN=${TRAEFIK_DOMAIN}` in the compose file and set `TRAEFIK_DOMAIN=""` in your .env file you unset the `DOMAIN` variable for the container. If you never need the `DOMAIN` variable you could also directly set `DOMAIN=""` in the compose file.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/traefik-forward-auth#2
No description provided.