I am evaluating Balena for use in an IoT project where physical access is very expensive. It seems that the only built-in way to change network settings in BalenaOS is to change a file on the boot partition, and if someone makes a mistake the device is essentially bricked… Not ideal!
I would like to have a way to change network settings with rollback. I am aware that it’s possible to do this from within a container, and thus we could implement the required functionality ourselves. This might be a viable option, but implementing the functionality to the required robustness standard will take time, and if something goes wrong there’s no way to recover.
Another idea would be to build a custom version of BalenaOS which sets the network settings at start-up and checks that they are correct, so that if the new settings don’t work we can rely on Balena to roll back to the old version. Would this be possible?
I’d love to hear from anyone who’s done anything similar, or just has more experience with the platform and knows what’s possible and not. Thanks!