239
submitted 5 months ago* (last edited 5 months ago) by mfat@lemdro.id to c/linux@lemmy.ml

I have been thinking about self-hosting my personal photos on my linux server. After the recent backdoor was detected I'm more hesitant to do so especially because i'm no security expert and don't have the time and knowledge to audit my server. All I've done so far is disabling password logins and changing the ssh port. I'm wondering if there are more backdoors and if new ones are made I can't respond in time. Appreciate your thoughts on this for an ordinary user.

you are viewing a single comment's thread
view the rest of the comments
[-] possiblylinux127@lemmy.zip 7 points 5 months ago

Fun fact, you can use let's encrypt certs on a internal environment. All you need is a domain.

[-] delirious_owl@discuss.online 5 points 5 months ago

Just be aware that its an information leakage (all your internal DNS names will be public)

[-] amju_wolf@pawb.social 3 points 5 months ago

...which shouldn't be an issue in any way. For extra obscurity (and convenience) you can use wildcard certs, too.

[-] delirious_owl@discuss.online 0 points 5 months ago

Are wildcard certs supported by LE yet?

[-] amju_wolf@pawb.social 2 points 5 months ago

Have been for a long time. You just have to use the DNS validation. But you should do that (and it's easy) if you want to manage "internal" domains anyway.

[-] delirious_owl@discuss.online 1 points 5 months ago

Oh, yeah, idk. Giving API access to a system to modify DNS is too risky. Or is there some provider you recommend with a granular API that only gives the keys permission to modify TXT and .well-known (eg so it can't change SPF TXT records or, of course, any A records, etc)

[-] amju_wolf@pawb.social 2 points 5 months ago

What you can (and absolutely should) do is DNS delegation. On your main domain you delegate the _acme-challenge. subdomains with NS records to your DNS server that will do cert generation (and cert generation only). You probably want to run Bind there (since it has decent and fast remote access for changing records and other existing solutions). You can still split it with separate keys into different zones (I would suggest one key per certificate, and splitting certificates by where/how they will be used).

You don't even need to allow remote access beyond the DNS responses if you don't want to, and that server doesn't have anything to do with anything else in your infrastructure.

[-] delirious_owl@discuss.online 1 points 5 months ago

Ok, so no API at all. Its the internal DNS server itself that runs certbot and makes the changes locally?

[-] amju_wolf@pawb.social 2 points 5 months ago

Yes, that's one option. Then you only have to distribute the certificates and keys.

Or you allow remote access to that DNS server (Bind has a secure protocol for this), do the challenge requests and cert generation on some other machine. Depends on what is more convenient for you (the latter is better if you have lots of machines/certs).

Worst case if someone compromises that DNS server they can only generate certificates but not change your actual valuable records because these are not delegated there.

[-] possiblylinux127@lemmy.zip 2 points 5 months ago

Not if you setup a internal dns

[-] delirious_owl@discuss.online 1 points 5 months ago

How would that prevent this? To avoid cert errors, you must give the DNS name to let's encrypt. And let's encrypt will add it to their public CT log.

[-] possiblylinux127@lemmy.zip 0 points 5 months ago

Sorry I though you were referring to IP leakage. Apologizes

[-] gerdesj@lemmy.ml 1 points 5 months ago

I do use it quite a lot. The pfSense package for ACME can run scripts, which might use scp. Modern Windows boxes can run OpenSSH daemons and obviously, all Unix boxes can too. They all have systems like Task Scheduler or cron to pick up the certs and deploy them.

this post was submitted on 07 Apr 2024
239 points (95.8% liked)

Linux

47223 readers
793 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS