I’m trying to better understand hosting a Lemmy Instance. Lurking discussions it seems like some people are hosting from the Cloud or VPS. My understanding is that it’s better to futureproof by running your own home server so that you have the data and the top most control of hardware, software etc. My understanding is that by hosting an instance via Cloud or VPS you are offloading the data / information to a 3rd party.

Are people actually running their own actual self-hosted servers from home? Do you have any recommended guides on running a Lemmy Instance?

  • aard@kyu.de
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 months ago

    Well with bare metal yes, but when your architecture is virtual, configuration rises in importance as the first line of defense

    You’ll have all the virtualization management functions in a separate, properly secured management VLAN with limited access. So the exposed attack surface (unless you’re selling VM containers) is pretty much the same as on bare metal: Somebody would need to exploit application or OS issues, and then in a second stage break out of the virtualization. This has the potential to cause more damage than small applications on bare metal - and if you don’t have fail over the impact of rebooting the underlying system after applying patches is more severe.

    On the other hand, already for many years - and way before container stuff was mature - hardware was too powerful for just running a single application, so it was common to have lots of unrelated stuff there, which is a maintenance nightmare. Just having that split up into lots of containers probably brings more security enhancements than the risk of having to patch your container runtime.

    Encryption is interesting, there really is no practical difference between cloud vs self hosted encryption offerings other than an emotional response.

    Most of the encryption features advertised for cloud are marketing bullshit.

    “Homomorphic encryption” as a concept just screams “side channel attacks” - and indeed as soon as a team properly looked at it they published a side channel paper.

    For pretty much all the technologies advertised from both AMD and intel to solve the various problems of trying to make people trust untrustworthy infrastructure with their private keys sidechannel attacks or other vulnerabilities exist.

    As soon as you upload a private key into a cloud system you lost control over it, no matter what their marketing department will tell you. Self hosted you can properly secure your keys in audited hardware storage, preventing key extraction.

    Regarding security issues, it will depend on the provider but one wonders if those are real or imagined issues?

    Just look at the Microsoft certificate issue I’ve mentioned - data was compromised because of that, they tried to deny the claim, and it was only possible to show that the problem exists because some US agencies paid extra for receiving error logs. Microsofts solution to keep you calm? “Just pay extra as well so you can also audit our logs to see if we lose another key”

    • PuppyOSAndCoffee@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      The azure breach is interesting in that it is vs MSFT SaaS. We’re talking produce, ready to eat meals are in the deli section!

      The encryption tech in many cloud providers is typically superior to what you run at home to the point I don’t believe it is a common attack vector.

      Overall, hardened containers are more secure vs bare metal as the attack vectors are radically diff.

      A container should refuse to execute processes that have nothing to do with container function. For ex, there is no reason to have a super user in a container, and the underlying container host should never be accessible from the devices connecting to the containers that it hosts.

      Bare metal is an emotional illusion of control esp with consumer devices between ISP gateway and bare metal.

      It’s not that self hosted can’t run the same level of detect & reject cfg, it’s just that I would be surprised if it was. Securing self hosted internet facing home labs could almost be its own community and is definitely worth a discussion.

      My point is that it is simpler imo to button up a virtual env and that includes a virtual network env (by defn, cloud hosting).

      • aard@kyu.de
        link
        fedilink
        English
        arrow-up
        2
        ·
        10 months ago

        The encryption tech in many cloud providers is typically superior to what you run at home to the point I don’t believe it is a common attack vector.

        They rely on hardware functionality in Epyc or Xeon CPUs for their stuff - I have the same hardware at home, and don’t use that functionality as it has massive problems. What I do have at home is smartcard based key storage for all my private keys - keys can’t be extracted from there, and the only outside copy is a passphrase encrypted based64 printout on paper in a sealed envelope in a safe place. Cloud operators will tell you they can also do the equivalent - but they’re lying about that.

        And the homomorphic encryption thing they’re trying to sell is just stupid.

        Overall, hardened containers are more secure vs bare metal as the attack vectors are radically diff.

        Assuming you put the same single application on bare metal the attack vectors are pretty much the same - but anybody sensible stopped doing that over a decade ago as hardware became just too powerful to justify that. So I assume nowadays anything hosted at home involves some form of container runtime or virtualization (or if not whoever is running it should reconsider their life choices).

        My point is that it is simpler imo to button up a virtual env and that includes a virtual network env

        Just like the container thing above, pretty much any deployment nowadays (even just simple low powered systems coming close to the old bare metal days) will contain at least some level of virtual networking. Traditionally we were binding everything to either localhost or world, and then going from there - but nowadays even for a simple setup it’s way more sensible to have only something like a nginx container with a public IP, and all services isolated in separate containers with various host only network bridges.

        • PuppyOSAndCoffee@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          10 months ago

          I like how you have a home smartcard. I can’t believe many do.

          Why do you think cloud operators are lying?