butlerx / wetty

Terminal in browser over http/https. (Ajaxterm/Anyterm alternative, but much better)
https://butlerx.github.io/wetty
MIT License
4.17k stars 664 forks source link

Issue with Traefik when using Authelia #440

Open danricho opened 1 year ago

danricho commented 1 year ago

Hi,

I'm having an issue where my Authelia username is pre-filled at the WeTTY login prompt (before the @) which means I'm unable to login as it differs from my user name on the Linux box. I have tried both environmental variable SSHUSER and the command --ssh-user= to over-ride this behaviour but to no avail.

I think it has something to do with remote-user propagation as described here.

I'm hoping someone more knowledgeable about Authelia and the sessions or WeTTY can give me a way to get WeTTY to ignore the Authelia user logged in.

Cheers!

github-actions[bot] commented 9 months ago

Stale issue message

dl1ch commented 8 months ago

As a workaround you can create an additional nginx container pointing to the wetty docker container with the following header: proxy_set_header remote-user "";

This will remove the remote-user header before passing it to wetty, then you can use a custom URL path to login with the custom username:

httpx://wetty-fqdn/wetty/ssh/username

Hope this helps.