esp-link
esp-link copied to clipboard
MQTT username flash config should be longer
The MQTT username and password fields are 32 bytes in the flash config. This is too short for some providers (notably flespi.io). Suggest changing these to 64 bytes for providers which use a SHA1 or similar hash to generate a user token or password.
duplicate of #356?
@uzi18 No it isn't. #356 is a problem with the len check such that the maximum length you can set is 1 less than the real maximum length. This issue doubles the allowed length of the field.
@tclarke please check this test firmware from #356, I think it is already fixed there
@uzi18 That only appears to change the length of mqtt_password, not mqtt_username
@tclarke need to check if I'm able to compile sources once again, with fix for you.
@tclarke mqtt_username is 32 chars mqtt_password is 70 chars where did you get so long username and how long is it (example please)? my build env still works :)
flespi.io uses login tokens in the username field for access control. These are 64 bytes long, probably based on a SHA-256 random hash.
@tclarke any feedback?
It's working. Thanks!
sure it work, thanks!
Hi @tclarke ! i flashed the firmware mentioned by @uzi18, but i am still not able to set the username via esp-link webpage. It gives me the same error. How did you manage to make it work?
Check different issues commented by me to find latest builds. @alphabeta1212 Are you able to use secure paste site to check your login and password fields on my own? Maybe you can paste also screenshot with error?
Hi @uzi18 , I had flashed 3.2.47 and was getting this error:
Using flespi token