-
Notifications
You must be signed in to change notification settings - Fork 132
Improvement request: Network upload should use password entered in IDE next to Port ("Set or remove password") when no password is found in the code #1387
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
Comments
As there is no port in the upload port specified the upload can not succeed. |
Thanks for replying! When uploading I enter the IP address in the port field - it was "192.168.1.31 tcpOTA" in this case. The problem remains the same - cannot use the adjacent 'Set or remove password' dialog to provide a password for the OTA, it tries to run the esp ota tool with --auth=no-password-found-in-code or similar argument, regardless of login info entered in the IDE. Looking at the plugin code it only seems to look for network_password in the code but does not use the security_password entered in the IDE. It would be nice if it did, some deployments only have the OTA authentication available at run time. |
Seems the logon/password was only ever used to do a ssh upload (arduino yun(shield) specific code) and no where else |
I change the code so it will use the code found password; if no password found in the code it will search the secure storage for a password linked to the port name and if none is found it will use the password "no_pwd_configured_nor_found_in_code" |
Thanks! Regarding the question - in my opinion the IDE properties are more dynamic than the code - that is, if there is an entry in the IDE, use it regardless of the code. For example, if part of the code upload is changing the auth password, and we can't override the password in the IDE, we can't authenticate against the old password to perform the upload ... |
Please confirm this works on your side Note |
I will test the nightly, just interested if you would consider having the IDE properties as an override to code search - that would allow network upload that has new auth password in the code while using the current password in the IDE. |
I can confirm that entering the IP address in 'Login:' and the OTA password in 'Password:' in the 'Set or remove password' fields works - authentication succeeds and OTA upload completes. For my use cases this is sufficient without needing makefile modifications. Thanks for your help. |
thanks for the confirmation |
Do you use the Sloeber product or plugin? BOTH
Sloeber version number Sloeber 4.4.1.202109151310 (same problem in 4.4.0)
OS: windows 10
The url of the json that you used to download the platform (my 3rd party index urls)
https://downloads.arduino.cc/packages/package_index.json
https://raw.githubusercontent.com/jantje/hardware/master/package_jantje_index.json
https://raw.githubusercontent.com/jantje/ArduinoLibraries/master/library_jantje_index.json
https://arduino.esp8266.com/stable/package_esp8266com_index.json
https://downloads.arduino.cc/libraries/library_index.json
Describe the bug
The dialog for set / remove password updates security_login and security_password.
The esp TCP OTA upload only looks for network_password. If the plugin can't find the password in the main file, it fails to authenticate.
It would be very nice if the OTA upload accepted the security_password when network_password can't be found in the source file.
To Reproduce
Try to use TCP OTA upload with no password in the .ino file, setting one in the IDE with 'Set or remove password' makes no difference, authentication fails.
provide the name of the board and the platform version you are using.

NodeMCU 1.0, ESP8266 3.02
Provide the json url and a screenshot of project properties->arduino
The text was updated successfully, but these errors were encountered: