-
Notifications
You must be signed in to change notification settings - Fork 33
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
Long passwords don't allow authentication #35
Comments
Well that is certainly interesting. From some quick Googling around, it may be an issue with the base image of the container. Officially there is no limit to password or username lengths, however once things get encrypted in HTTP headers etc, memory limits start to become an issue. I'll have to leave this as open until I get some time to tinker around and see if there's something I can adjust, either by switching out the auth library or something else. |
@cstuder 👋 do you still see this issue? I tried today to repro it, but authentication succeeded OK with this configuration:
Full commands and output
|
I'm not running DockerMon at the moment, so I didn't check this issue for quite some time. (To be honest, I completely forgot about it...) |
I've configured
ha-dockermon
with a 64 character password and couldn't authenticate afterwards:(Just a sample password, don't worry...)
Any requests responded with a
401 Unauthorized
header, both from Home Assistant and Curl.Workaround: Shortening the password to 28 characters in my case allows the request to go through and everything works perfectly.
Strangely I can't see any limitation of password length in the source code of
ha-dockermon
, neither any indication of it in the used libraryexpress-basic-auth
.The text was updated successfully, but these errors were encountered: