Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Best Practices / Internal Only? #98

Open
RefineryX opened this issue Jan 13, 2022 · 1 comment
Open

Question: Best Practices / Internal Only? #98

RefineryX opened this issue Jan 13, 2022 · 1 comment

Comments

@RefineryX
Copy link

Not an issue as such although I was not sure where to post. I have just installed this today and so far seems like it is working great.

  1. I soon would like to expose my HA to the internet and conscious about security and if I have not configured it correctly. What are the main things to look out for when exposing this in a live PROD instance?
  2. Another thought I had, is there a way that I can use this script only internally? And, if my HA is exposed to the web, it will prompt the user to login twice (once if Authelia and the other with HA)?
    /
  3. Separately, I had to add username_header: Remote-User (auth_header) to my HA config file. From my understanding, it passes and allows access to HA for anyone with the same username? Whats to stop someone being able to pass this header by using my username? Bare with as my understanding is super patchy and still trying to figure it out! Thanks for your guidance
@BeryJu
Copy link
Owner

BeryJu commented Jan 16, 2022

  1. Make sure http.trusted_proxies is set correctly, I think HA requires this nowadays anyways, but make sure to set that to the IP/subnet of your internal reverse proxy. Thats about all you have ensure really.
  2. Not sure if you can do it that way around, allthough this component will continue with the next auth method if the Header is not set.
  3. Thats limited by the first setting, the header will only be used when the request comes from one of those IPs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants