-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
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
[FR] WIFI_SSID
and WIFI_PWD
etc. should be moved to e.g. Configuration_secrets.h
#16588
Comments
@felixstorm If you are using the ESP3DLib, I think @luc-github has made it such that you can set up the WiFi credentials over the webUI. If you compile with the default SSID and password in Configuration_adv.h, ESP3DLib should ignore them, and try to see if any credentials are stored in SPIFFs. If so, it will use those; if not, it will start up an AP. You can then connect to the AP, and configure the WiFi credentials using the webUI. @luc-github can probably share more about how it actually works. |
WiFi settings can be ignored with ESP3DLib, they can be defined for convenience but they are not mandatory, WiFi credential are stored in NVS for ESP3DLib. |
WIFI_SSID
and WIFI_PWD
etc. be moved to e.g. Configuration_secrets.h
?WIFI_SSID
and WIFI_PWD
etc. should be moved to e.g. Configuration_secrets.h
i have rephrashed the title as this is a FR and the title suggested it was a question, the former is allowed on the issue list the later is not |
@vivian-ng, @luc-github Yes, you are right and I am aware that you do not need to use the defines in But I would still consider it bad practice to encourage users to potentially put secret information inside a file that may get pushed to their public GitHub repository. |
@felixstorm Maybe the current WiFi portion can be commented to:
Then, add What do you think? |
@vivian-ng Yes, that sounds even better than trying to provide an almost blank file to everybody - I will probably post a corresponding PR within the next few days. |
This issue is stale because it has been open 30 days with no activity. Remove stale label / comment or this will be closed in 5 days. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
As WiFi on the ESP32 now gets more and more functional, it feels a bit unpleasant to put my WiFi credentials inside
Configuration_adv.h
and then to accidentally push them to my public Marlin repo on GitHub.My suggestion would be to put them inside a separate config file which only gets included if needed (so the file would not even have to exist for users not using WiFi etc.). Users could then either ignore it completely in Git (or mark as
skip-worktree
) to not accidentally publish their secrets. I did not choose the nameConfiguration_WiFi.h
butConfiguration_secrets.h
as I already saw that there might be more secrets to come, e.g. website authentication credentials (luc-github/ESP3DLib@8fc6354) etc.I will be happy to provide a corresponding PR, I just wanted to check the general opinion on this first before investing more time on it.
The text was updated successfully, but these errors were encountered: