this post was submitted on 15 Aug 2023
41 points (100.0% liked)

Selfhosted

39158 readers
421 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Just wondering what tools and techniques people are using to keep on top of updates, particularly security-related updates, for their self-hosting fleet.

I'm not talking about docker containers - that's relatively easy. I have Watchtower pull (not update) latest images once per week. My Saturday mornings are usually spent combing through Portainer and hitting the recreate button for those containers with updated images. After checking the service is good, I manually delete the old images.

But, I don't have a centralised, automated solution for all my Linux hosts. I have a few RasPis and a bunch of LXCs on a pair of Proxmox nodes, all running their respective variation of Debian.

Not a lot of this stuff is exposed direct to the internet - less than a handful of services, with the rest only accessible over Wireguard. I'm also running OPNsense with IPS enabled, so this problem isn't exactly keeping me up at night right now. But, as we all know, security is about layers.

Some time ago, on one of my RasPis, I did setup Unattended Upgrades and it works OK, but there was a little bit of work involved in getting it setup just right. I don't relish the idea of doing that another 40 or so times for the rest of my fleet.

I also don't want all of those hosts grabbing updates at around the same time, smashing my internet link (yes, I could randomise the cron job within a time range, but I'd rather not have to).

I have a fledgling Ansible setup that I'm just starting to wrap my head around. Is that the answer? Is there something better?

Would love to hear how others are dealing with this.

Cheers!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (1 children)

I consolidated everything on to one a bit beefier VPS so that if I update that one VPS 90% of stuf updates itself. The rest are 3 RPis which run Home Assistant in different places, those I go throuch manually and update when I see that there is a new update.

[–] [email protected] 1 points 1 year ago (1 children)

Wow. No concerns an update will bork that 90% of your fleet that sits on the VPS? That's one reason I'm loving LXCs - anything that screws with one specific service doesn't pose a risk to any other service.

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago) (2 children)

It hasn't in the last 10 or so years, but if it does it's not a problem I have backups which I can get up and running within half an hour.

I'm not running anything mission critical, just single user instances of Mastodon, Lemmy, Nextcloud, PeerTube, Matrix, my website, Firefox Sync, some old static websites of mine and my sister which are basically archived. So even if it's down for a week, nobody but me cares.

[–] [email protected] 1 points 1 year ago (1 children)

That’s actually insanely cool! I‘m on a similar path rn. 10+ containers running services, thinking of adding peertube, lemmy and co as well as my webpages. But its still a honeserver so I‘d need to go vps at some point.

Did you start at home or directly go to vps? How was your journey?

In any case, thanks for sharing and have a good one. :)

[–] [email protected] 1 points 1 year ago (1 children)

Actually my goal is to move everything to a home lab server, but my last one broke a year ago and I didn't want to spent all the money at once to buy a new one so i just moved everything to the VPS where I already had my website.

[–] [email protected] 1 points 1 year ago (1 children)

Hrhr thats actually very funny. You are basically the other car in the meme driving in the opposite direction. How did you keep it from being hacked?

[–] [email protected] 1 points 1 year ago (1 children)

Just normal, keep everything up to date and don't fuck with scriptkiddies.

[–] [email protected] 1 points 1 year ago (1 children)

How does one fuck with scriptkiddies? You mean provoke them or allow them on your server?

[–] [email protected] 2 points 1 year ago (1 children)

Yeah mostly provoke then, I mean it mostly jokingly ^^

[–] [email protected] 1 points 1 year ago

Okay thanks :)

[–] [email protected] 1 points 1 year ago

Yep, understood. My setup is a little more "mission" critical, if you consider availability of my Plex, *arrs, Home Assistant and Pi-holes being the mission, and the critical bit being that I have impatient teenagers in the house.