• PlexSheep@infosec.pub
    link
    fedilink
    arrow-up
    8
    ·
    8 months ago

    Security is not a binary variable, but managed in terms of risk. Update your stuff, don’t expose it to the open Internet if it doesn’t need it, and so on. If it’s a server, it should probably have unattended upgrades.

    • qaz@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      8 months ago

      If it’s a server, it should probably have unattended upgrades.

      Interesting opinion, I’ve always heard that unattended upgrades were a terrible option for servers because it might randomly break your system or reboot when an important service is running.

      • taladar@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        8 months ago

        There are two schools of thought here. The “never risk anything that could potentially break something” school and the “make stuff robust enough that it will deal with broken states”. Usually the former doesn’t work so well once something actually breaks.

      • exu@feditown.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 months ago

        Not having automated updates can quickly lead to not doing updates at all. Same goes for backups.

        Whenever possible, one should automate tedious stuff.

      • PlexSheep@infosec.pub
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        8 months ago

        Both my Debian 12 servers run with unattended upgrades. I’ve never had anything break from the changes in packages, I think. I tend to use docker and on one even lxc containers (proxmox), but the lxc containers also have unattended upgrades running.

        Do you just update your stuff manually or do you not update at all? I’m subscribed to the Debian security mailing list, and they frequently find something that means people should upgrade, recently something with the glibc.

        Debian especially is focused on being very stable, so updating should never break anything that wasn’t broken before. Sometimes docker containers don’t like to restart so they refuse, but then I did something stupid.

        • qaz@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          8 months ago

          I used to check the cockpit web interface every once in a while, but I’ve tried to enable unattended updates today. It doesn’t actually seem to work, but I planned on switching to Nix anyway.

          • PlexSheep@infosec.pub
            link
            fedilink
            arrow-up
            1
            ·
            8 months ago

            I don’t use Cockpit, I just followed the Debian wiki guide to enabling unattended upgrades. As fast as I remember you have to apt install something and change a few lines in the config file.

            It’s also good to have SMTP set up, so your server will notify you when something happens, you can configure what exactly.