Question about the Gladys update and security vulnerabilities

Hello
I finally took the step from V3 to V4 and thanks to Node-red I recreated all my scenarios.

My question is about updating Gladys on my raspberry with the Gladys raspberry image.
So when a new update is sent, it is automatically downloaded and then installed by Gladys, but does this include the packages corrected by Debian and then taken over by Raspi OS to fix security vulnerabilities?

In doubt, I always do

sudo apt update
and
sudo apt upgrade

I also changed the SSH password to avoid ending up with a zombie raspberry pi.

As I didn’t find an answer in the documentation, that’s why I’m asking the question.
Thanks

On will correct me if I’m wrong, but:

  • with each new version, Gladys and its dependencies are updated

  • Gladys runs in Docker, so this only applies to the container and not to the Raspberry Pi OS, which is not automatically updated

However, if you haven’t tampered with your operator’s box, your Raspberry Pi is not exposed to the internet. So, no one is supposed to be able to connect to it via SSH outside your local network.
After that, it’s still a good idea to have changed the default password :blush:

In summary, Gladys is updated but not the Raspberry Pi system, and this represents a risk that remains low as it is not directly exposed to the internet.

The Raspberry Pi OS image provided applies the maximum security best practices :slight_smile:

As mentioned by @lmilcent in the Docker Gladys container, with each deployment of a new version, Gladys is redeployed with a fresh container based on a fully up-to-date system, and all dependencies are updated when security vulnerabilities are reported.

However, this is not entirely true!

We use the « unattended-upgrade Â» package at the system image level, which runs every night to automatically update system packages that have security vulnerabilities and can be patched without a reboot, and only those to avoid breaking the system.

The only thing this package does not do is in case of a critical vulnerability at the kernel level, it is impossible to apply the patch without a reboot. On the Gladys side, we cannot decide when to perform the reboot because home automation is a critical program. If you use Gladys as an alarm and Gladys starts rebooting at the moment you are being burglarized at night, that’s not ideal!

However, Linux kernel vulnerabilities are rarer, generally we hear about them and we can communicate with the community and say that you need to reboot your system.

Super interesting. I’m in favor of creating a dedicated section in the documentation to reassure everyone.

And by the way, when I see this kind of topic in the documentation, it reassures me:

  • Who to contact in case of a vulnerability?
  • How are security updates managed?
  • What are the security-level development practices?

For the vulnerability, you can communicate on the forum / create a ticket in my opinion.

Otherwise, good development practices: https://owasp.org/
It’s a bit of a bible in terms of security :slight_smile:

Hello @pierre-gilles,

Perhaps add an additional parameter in « Operations Â» that would propose by default to automatically reboot 24 hours or more after a kernel update, so the user would be informed by the team that an update is necessary and can at their discretion perform the reboot themselves within a given time frame or let Gladys handle the reboot! :wink:

I work in cybersecurity, I’m a bit aware of it :sweat_smile:
But marking it clearly in the documentation would be ideal.

oops, bad read :smiley:

I was tired this morning, no worries :wink:

Thank you for all this information.