From now on, whenever you set up a service, you’ll use a subdomain, and you’ll point it in dns as a CNAME record at your apex domain (usually just an @ symbol in the input box). You’ll then (if it’s a web service) create a proxy in NPM pointed at whatever port you give it.
So now you wanna create a WireGuard vpn, so you can securely access your own stuff from your own devices outside your house. (I’d recommend not opening every service up to the internet.)
github.com/linuxserver/docker-wireguard
That one can be tricky, but ultimately you should have a file (or QR code) that you can put on your phone in the WireGuard app that will give you vpn access. Remember to set up a CNAME for your subdomain (something like vpn.example.com). Although, for this, it would be fine to use the apex domain.
So now you can set up a Nextcloud and an Immich stack. Put them on an unused port, then point a proxy for their subdomain at that port (127.0.0.1:2201 or whatever), add your SSL cert, and you’re good.
[continued…]
moldy_rice@piefed.keyboardvagabond.com 5 weeks ago
This comment is suggesting doing many things extremely vulnerable to supply chain attacks. Please don’t upvote or do this.
Bane_Killgrind@lemmy.dbzer0.com 5 weeks ago
He’s describing literal best practices.
Seralth@piefed.seralth.com 5 weeks ago
Literally everything is vulnerable to supply chain attacks…
Your comment is basically saying don’t go in the sun you will get sunburned so you should always avoid the sun forever.
You HAVE to accept some level of risk if your using literally any software that you don’t make, host, and maintain yourself.
So unless you have actually decent suggestions on ways to prevent issues, improve security or some tips for a new user for best practices.
All your doing is fear mongering and being extremely unhelpful.
moldy_rice@piefed.keyboardvagabond.com 5 weeks ago
Apt and most package managers have cryptographic verifications on all packaged by default since the 1990s.
Docker pull does not, so it will happily download a maliciously modified image, without checking.
You can go in the sun, but wear sunscreen. You can have sex with a stranger, but wear a condom. You can download software, but check the cryptographic signature.
hperrin@lemmy.ca 5 weeks ago
Why do you say that? Docker Hub is, of course, susceptible to supply chain attacks, as are the official containers of each of these projects, but how is that all that different from installing these projects on bare metal? And how are any of them “extremely” vulnerable?
I didn’t suggest anything that isn’t either an official build from the project maintainers, or a very well supported community build from a reputable source.
moldy_rice@piefed.keyboardvagabond.com 5 weeks ago
Apt and most package managers have cryptographic verifications on all packaged by default since the 1990s.
Docker pull does not, so it will happily download a maliciously modified image, without checking.
hperrin@lemmy.ca 5 weeks ago
That’s because package managers are designed to use mirrors. You have to verify a digital signature because the package isn’t necessarily coming from the package maintainer’s repo.
Docker pulls come from the registry, not a mirror. There is no such thing as a mirror in docker. The registry is something you decide on, and if you don’t trust it, you shouldn’t use it. If the registry itself is compromised, that’s essentially like the private key of a package manager getting compromised. Same risk.
The two biggest registries are Docker Hub and GitHub. If either of them were compromised, it wouldn’t take very long for them to mitigate it. The damage would likely be very small.