Docker - restrict dashboard binding interface to enable modern authentication #3484
Unanswered
FuNK3Y
asked this question in
I'm not sure
Replies: 1 comment
-
|
As this is not getting traction, I found a dirty workaround: set a very complex username & password for the dashboard and inject the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe your request
ESPHome should be considered as a sensitive infrastructure component. It exposes secrets and enables flashing arbitrary code to devices.
While it can be protected by username & password, it is cumbersome and does not align with current standards (oidc & oauth).
Modern authentication can already be deferred to a reverse proxy (like TLS termination). But because ESPHome needs direct network visibility to managed devices (such as mDNS discovery), its dashboard also ends up being exposed on the network without protection.
My proposal is to add the ability to bind the ESPHome dashboard to a specific network interface. This ensures the dashboard is only reachable through a reverse proxy, even when the container participates in multiple networks for device discovery.
Why the uncertainty?
There is no category for docker related improvement
Use cases
Expose & protect ESPHome through a reverse proxy, while having it connected to macvlan/ipvlan networks for mdns discovery. Here is a docker compose sample:
defaultis a bridge network only accessible by docker containers within the same composedevicesis an ipvlan - in the same segment as the esphome devicesWhat areas might this affect?
Docker only. ESPHome already offers the ability to restrict the dashboard listening address.
Anything else?
I already made the required PR esphome/esphome#11876 & esphome/esphome-docs#5666. There are several ways to implement this - happy to take feedbacks!
Beta Was this translation helpful? Give feedback.
All reactions