-
Notifications
You must be signed in to change notification settings - Fork 638
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
Hardcoded settings, for ease of deployment and improved security #1839
Comments
...which is already possible by using |
@ibdroid this is why I use USE_CUSTOM_H, look for it and define your values inside custom.h, they will override system defines. |
@PieBru , @mcspr : For example; dczRelayIdxX Other settings are supposedly available, but don't work. |
Then we can add those? What would those be, 8d009a6 fixes the ifndefs btw |
That's only the tip of the iceberg though. |
Likely to happen, and would help documentation too. But how would you expect to modify / override it? What format this would be exactly? Some examples from before: |
Referencing #2048 When WebUI does parse the data, it is simply comparing string values based on key.If I am not overthinking the process, just as there is a key prefix checker there could be a module-specific method() accepting key as argument to retrieve default value. This complicates stuff b/c then there needs to be a specific "map"-like structure to have the same API as Embedis settings do. And this somehow needs to be stored at compile-time, not runtime and probably each setting needs to become a string too. Aand this somehow needs to also contain flash-strings, which either need to have fixed length of reference another pointer variable. The main issue with that approach is that now we need a pre-defined structure format to deal with dynamic nature of settings. That is, I am not aware of any non-centralized way to have such a "variant"-type structure per-module and also have multiple types at the same time. So this poses another question - if Embedis allows to read arbitrary data blobs as simple maps, why not encode string kv pairs at compilation time into an Embedis-compatible structure (which is simply |
Given that it is now becoming possible to secure MQTT; #1829
I would like to be able to pre-configure all user settings in the firmware prior to deploying to a device. My goal is to be able to write the firmware onto a device, plug it in, and not have to make any configurations to the device at all.
In achieving this, it would be possible to entirely disable both WEB and TELNET interfaces. This provides the double benefit of reducing the size of the firmware, as well as minimizing the attack surface.
Some configurations are already possible via custom.h, but nowhere near all and not enough to avoid having to make manual configurations (or "restore" a json encoded backup).
The text was updated successfully, but these errors were encountered: