An unofficial, read-only Hacker News reader. Join the beta →

AI made self-hosting fun again (opens external site)

1106 points by jlelse 1 day ago | janlukas.blog | 509 comments on HN

View full thread · View on Hacker News

Comment thread (12)

  1. Replies (2)
    1. I have a public ip VPS proxying to my home lab and I’m wondering where to go for the least attack surface if I’m just running caddy and wireguard.

      Fedora CoreOS is an interesting offering, and Debian with unattended updates sounds good too. I like what SELinux can do for hardening the filesystem. Seems like even if a subprocess gets owned you get isolation from siblings.

      Replies (2)
      1. Same setup. I went with Debian. Non standard ssh port, no pass, key only and wireguard. So far so good.
        Replies (1)
        1. You're not gonna get pwned through SSH. You'll get pwned through some random dependency one of your things is using.
          Replies (1)
          1. Is that possible if there are only 2 open ports on the whole machine? Everything else is on the VPN. I think either SSH or WireGuard must have a vulnerability to get pwned.
            Replies (1)
            1. A recent CVE in GhostScript was responsible for an RCE in imagemagick. That means a box processing those files can get pwned without any open ports.
      2. Fedora IOT on a Raspberry Pi with automatic updates works pretty well too for internal network services (pihole, jellyfin etc)
    2. Unattended upgrades will only patch system packages installed via apt-get. You still need to patch node, python packages, or random software you downloaded and installed (via curl piped to sh).
      Replies (4)
      1. And for some reason these days everyone and their cat wants you to install their software with `curl http://some-sketchy-site.com/install | bash`, even if building packages is easier than ever with LLMs and free Github Actions.
      2. cron + topgrade -y will handle most of the userspace updates.

        `curl | sh` is a whole other ballpark though. that's not managed software, so of course you're going to have to manually update it. do you even remember what you've installed? i don't know how people think this is an acceptable way to install software.

      3. For my needs, to minimize the manual effort, I limit my dependencies to those that come with the default distro repositories. I know it's not possible for each single application one may want to self-host, but there's already a lot that is possible by sticking to the default repos.
      4. If you install these things you lost already…