You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have been trying to set up Authelia for the first time since a few days, with the aim to access it from https://mydomain.tld/auth.
However, I found that the configMap.session.cookies[].path key was not taken into account when filling the values file. I am using a modified version of the values.local.yaml file, with many defaults but the specific key configMap.session.cookies set to:
However, I was getting the following error whenever trying to access an application behind a Traefik v2 reverse proxy (the default with k3s):
time="2024-08-04T22:12:01Z" level=info msg="Access to https://mydomain.tld/myapplication/index.html (method GET) is not authorized to user <anonymous>, responding with status code 302 with location redirect to https://mydomain.tld/?rd=https%3A%2F%2Fmydomain.tld%2Fmyapplication%2Findex.html&rm=GET" method=GET path=/api/authz/forward-auth remote_ip=10.42.0.1
Notice the redirection URL being https://mydomain.tld/?rd=..., not taking into account the auth subpath that should be there.
Fortunately, I have solved the problem by manually editing the configuration.yaml ConfigMap to add the missing subpath to the session.cookies[].authelia_url key, going from the original:
I decided to create this issue because I have seen others getting the same error, so hopefully this can help someone. Even if it’s a configuration issue on my end, I’d be glad to know that it is one. If needed, I can provide the whole values file.
Thank you for your time.
The text was updated successfully, but these errors were encountered:
Hello, I have been trying to set up Authelia for the first time since a few days, with the aim to access it from
https://mydomain.tld/auth
.However, I found that the
configMap.session.cookies[].path
key was not taken into account when filling the values file. I am using a modified version of thevalues.local.yaml
file, with many defaults but the specific keyconfigMap.session.cookies
set to:However, I was getting the following error whenever trying to access an application behind a Traefik v2 reverse proxy (the default with k3s):
Notice the redirection URL being
https://mydomain.tld/?rd=...
, not taking into account theauth
subpath that should be there.Fortunately, I have solved the problem by manually editing the
configuration.yaml
ConfigMap to add the missing subpath to thesession.cookies[].authelia_url
key, going from the original:To the working:
I have no knowledge in writing Helm charts so I couldn't make a pull request, but I believe this line is to blame:
chartrepo/charts/authelia/templates/configMap.yaml
Line 205 in 7c554d6
I decided to create this issue because I have seen others getting the same error, so hopefully this can help someone. Even if it’s a configuration issue on my end, I’d be glad to know that it is one. If needed, I can provide the whole values file.
Thank you for your time.
The text was updated successfully, but these errors were encountered: