Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

What is your favourite approach to encryption of drives in dedicated servers?

Just curious.

Comments

  • Load the ISO via VNC and setup LVM With Encrypted Volume from the benninging

    Thanked by 1ehab
  • What about Dropbear to unlock LUKS remotely?

    Thanked by 2nghialele darkmaster
  • @vitobotta said:
    What about Dropbear to unlock LUKS remotely?

    I haven't heard of it, might worth take a look at.

  • luks/clevis with tang server.

    Thanked by 2oloke nghialele
  • @Motion3549 said:
    luks/clevis with tang server.

    Multiple tang servers for redundancy but other than that spot on. I still have dropbear installed as a fallback just in case I need to do something manually too though.

    Thanked by 2oloke tentor
  • @FrankCastle said:

    @Motion3549 said:
    luks/clevis with tang server.

    Multiple tang servers for redundancy but other than that spot on. I still have dropbear installed as a fallback just in case I need to do something manually too though.

    i'm at the mercy of provider for a fallback, vnc ftw.

  • tentortentor Member, Host Rep

    @nghialele said:
    Load the ISO via VNC and setup LVM With Encrypted Volume from the benninging

    You can install any Linux distro using kexec trick the way nixos-anywhere uses it

    Thanked by 1nghialele
  • Is there a method that actually protects against provider technicians with physical access? I mean with GCP, AWS, Azure you get confidential computing, but with "regular" providers like Hetzner and all the ones discussed in this community, we don't.

    So is there a fix for this you can recommend?

  • BTW even with Dropbear, or Clevis/Tang, someone with physical access can still tamper with initramfs etc. Or use IPMI to view the console and enter commands, right?

  • ralfralf Member

    @nghialele said:

    @vitobotta said:
    What about Dropbear to unlock LUKS remotely?

    I haven't heard of it, might worth take a look at.

    This is Hetzner specific, but I followed (an older version of) this when I first got my dedi from them and there was no data to lose: https://community.hetzner.com/tutorials/install-debian-with-lvm-encrypted-nvme-software-raid

    My OVH and Fibrestate drives are currently not encrypted. I keep meaning to deal with that, but there's always something else more important to do, especially as the machines are both already in use.

    Thanked by 1nghialele
  • ralfralf Member

    @vitobotta said:
    BTW even with Dropbear, or Clevis/Tang, someone with physical access can still tamper with initramfs etc. Or use IPMI to view the console and enter commands, right?

    Yeah, sure. But probably to alter the initramfs they'd need a reboot, and I'd have noticed an unexpected reboot (because I have to explicitly ssh in to unlock the drive). If that happened, I'd do a bit of forensics before unlocking the drive, but obviously hard to be 100% sure. At that point, I just fall back to the default that at some point you have to just trust the provider. I don't know what they did to the machine before I got it either.

    Thanked by 1nghialele
  • olokeoloke Member, Host Rep

    @vitobotta said:
    Is there a method that actually protects against provider technicians with physical access? I mean with GCP, AWS, Azure you get confidential computing, but with "regular" providers like Hetzner and all the ones discussed in this community, we don't.

    Actually there are some providers here which support confidential computing.

    https://lowendtalk.com/discussion/206468/vps-with-tee-capabilities

    I'll be making an update on that thread soon.

    @vitobotta said:
    BTW even with Dropbear, or Clevis/Tang, someone with physical access can still tamper with initramfs etc. Or use IPMI to view the console and enter commands, right?

    Right. In theory you could use signed UKI with secure boot to make the initramfs modification a bit harder.

  • edited June 19

    I'm 100% boring: luks + dropbear.

    Thanked by 1oloke
  • vitobottavitobotta Member
    edited June 19

    So the reason why I am asking this question and checking what you guys do is that at the moment at work we use Hetzner Cloud instances for our Kubernetes clusters (using my tool https://github.com/vitobotta/hetzner-k3s which some of you might know) and for the databases too since the database is managed by CloudNativePG on regular cluster nodes. Hetzner Cloud instances have limited storage and also we needed to encrypt data at rest for the ISO27001 (besides security in general), so we have been using Hetzner's block storage "volumes" that can grow up to 10 TB per volume. Encrypting these volumes is very easy, because I can just use a custom storage class with LUKS enabled and the keys are stored in Kubernetes secrets.

    Problem is, these volumes are not fast in terms of IOPS and we are starting to see some issues so the next step is to move the database nodes to dedicated servers with higher specs and fast NVME drives. I have already implemented support for external nodes in hetzner-k3s so to use dedicated servers as cluster nodes, but I am looking at FDE options to see what would be the best approach.

    In the past I have been using Dropbear since it's an easy solution, but I want something more automatic for this because we use Kured in Kubernetes to automatically drain one node per time, upgrade the OS packages, reboot the node and uncordon it again. So for this to work I need the LUKS unlocking to happen automatically.

    At the moment the best candidate is to use Clevis with a couple of Tang servers for redundancy with different providers, e.g. one with Netcup since we have something there too already, and one with another provider. I might also add Dropbear as fallback just in case although I have never tried Clevis+Dropbear together.

    AFAIK, having the tang servers with other providers makes it more difficult for a rogue Hetzner technician to tamper with initramfs to inject a script that runs after Clevis but before the system fully boots so the script can store the key to file etc. This would require a reboot, right? So we'd notice some unexpected downtime. Or am I missing something?

  • @vitobotta said: makes it more difficult for a rogue Hetzner technician to tamper with initramfs to inject a script that runs after Clevis but before the system fully boots

    No Hetzner technician will touch your shit. Many crypto projects and stuff that worth way
    more than your database are hosted there and nobody complained.

  • @luckypenguin said:

    @vitobotta said: makes it more difficult for a rogue Hetzner technician to tamper with initramfs to inject a script that runs after Clevis but before the system fully boots

    No Hetzner technician will touch your shit. Many crypto projects and stuff that worth way
    more than your database are hosted there and nobody complained.

    I know! But with the ISO and stuff, we need to document risks etc.

  • When it comes to securing hard disk drives within dedicated servers, the best method is full-disk encryption with key management. Some of the best examples include the use of Microsoft BitLocker for Windows-based dedicated servers, while VeraCrypt can be used when going for an open-source route.

  • @Chester143 said:
    Some of the best examples include the use of Microsoft BitLocker for Windows-based dedicated servers,

    No.

    Thanked by 3lothos forest oloke
  • FrankCastleFrankCastle Member
    edited June 19

    @jorohe6515 said:

    @Chester143 said:
    Some of the best examples include the use of Microsoft BitLocker for Windows-based dedicated servers,

    No.

    Yellowkey

  • So I ended up with Clevis/Tang + DropBear and it works well. I set up one Tang server in Netcup and the other in Contabo since performance isn't important for this.

    Thanked by 2nghialele oloke
  • FrankCastleFrankCastle Member
    edited 4:30AM

    @vitobotta said:
    So I ended up with Clevis/Tang + DropBear and it works well. I set up one Tang server in Netcup and the other in Contabo since performance isn't important for this.

    That's about the best you can do. You can try to lock things down a little more by adding boot params that prevent a rescue shell. You can also setup scripts to monitor the integrity of your initramfs to hopefully allow you to spot anyone messing with it. Little things like that to give you slightly more peace of mind if you are really paranoid.

    As others have pointed out though if someone has physical access and a high level of skill it's almost impossible to prevent them from gaining access to this particular setup but I think what you have done is enough to protect you from most prying eyes of say some corrupt provider trying to spy on their customers.

  • networknetwork Member

    @vitobotta said:
    So I ended up with Clevis/Tang + DropBear and it works well. I set up one Tang server in Netcup and the other in Contabo since performance isn't important for this.

    How did you set up a secure network between your Hetzner servers and Netcup/Contabo?

  • @vitobotta said:
    BTW even with Dropbear, or Clevis/Tang, someone with physical access can still tamper with initramfs etc. Or use IPMI to view the console and enter commands, right?

    I'm not worried about tampering. I'm worried that providers may not properly dispose of the disks.

    Thanked by 1oloke
Sign In or Register to comment.