-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
[syncthing] GUI authentication warnings #340
Comments
Additional question: The Ingress doc also says that
(cf. nginx example config) But the currently configured address |
I will try both suggestions 😉 But it may take a while |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
We can't hard code the IP to "172.30.32.2", but we can obviously get it from the system (something like
This is presuming the necessary tools are in the container, of course... Would that be necessarily limiting? Presumably, forwarding/exposing 8384 (in the config, not done by default) still work on the HA IP? |
This config option can be set via the following CLI command while Syncthing is running: syncthing cli config gui insecure-admin-access set true This always overwrites a possibly existing So I guess we could simply run that command right after launching syncthing. What do you think @Poeschl? Footnotes
|
Which addon?
syncthing
Problem description
After startup, Syncthing displays a big red non-dismissable "Danger!" banner saying its admin interface would be configured "to allow remote access without a password" and asking to set up a username and password.
This banner was added to Syncthing in syncthing/syncthing#2478 and is displayed whenever the Syncthing admin interface (GUI) is configured to listen on an address other than
127.0.0.1
(this add-on configures Syncthing to listen on0.0.0.0:8384
and the normal GUI port is disabled and thus not reachable from outside the Home Assistant host).As far as I understand, the danger banner is
incorrect in case of this add-on since the Syncthing GUI is only accessible from within the Home Assistant host and securely embedded into Home Assistant's GUI via Ingress.
The Ingress doc explicitly states:
So there should be really no need to further secure access.
potentially dangerous since web browsers (at least Firefox) get confused and fail to properly load the Syncthing GUI embedded into Home Assistant's GUI if Syncthing GUI credentials are set (they mess up credentials caching or the like). At least this is what I experienced when I first set up a username and password for the Syncthing GUI: After reloading the Home Assistant GUI, the Syncthing GUI wasn't loaded anymore, but no password prompt was displayed either. Others apparently ran into the same issue.
Possible solution
There's an advanced config option
insecureAdminAccess
in Syncthing that disables the red danger banner and instead triggers a lower severity dismissable yellow warning about this option being enabled. We could setinsecureAdminAccess="true"
by default. The yellow warning would still be annoying (and confusing) but less dangerous since users are not inclined to configure another pointless layer of credentials which has the potential to (temporarily) lock them out of the Syncthing GUI.In the medium term, Syncthing devs might even be open to add the possibility to completely suppress the warning. Maybe we should ask politely?
The text was updated successfully, but these errors were encountered: