!agkXCfUrgbadYlQXRj:kack.it

NixOS + TPMs

168 Members
42 Servers

Load older messages


SenderMessageTime
27 May 2022
@grahamc:nixos.org@grahamc:nixos.orgthis is how we generally integrate vault with our services: https://github.com/DeterminateSystems/nixos-vault-service13:30:04
@mic92:nixos.dev@mic92:nixos.devAh, I thought aws kms unseal is only available in the enterprise edition13:30:35
@grahamc:nixos.org@grahamc:nixos.orgnope13:30:40
@mic92:nixos.dev@mic92:nixos.devWhich is why I did not use it13:30:43
@grahamc:nixos.org@grahamc:nixos.orgkms unseal + dynamodb as the backend13:31:03
@grahamc:nixos.org@grahamc:nixos.orgmakes it relatively easy to deploy using AMIs and not permit SSH access to the vault hosts13:31:25
@grahamc:nixos.org@grahamc:nixos.org(which is considered best practice for vault servers)13:31:58
@mic92:nixos.dev@mic92:nixos.devSo to update your fault server, you have to upload a new AMI?13:33:50
@mic92:nixos.dev@mic92:nixos.dev*vault13:33:54
@grahamc:nixos.org@grahamc:nixos.orgthat is the recommended best-practice for managing Vault servers, yeah13:34:05
@grahamc:nixos.org@grahamc:nixos.orghttps://learn.hashicorp.com/tutorials/vault/production-hardening13:34:41
@grahamc:nixos.org@grahamc:nixos.org"Disable ssh" and "immutable upgrades"13:35:39
@mic92:nixos.dev@mic92:nixos.devI see. Also one can run multiple vault servers on the same dynamo backend, right? https://www.vaultproject.io/docs/configuration/storage/dynamodb13:36:46
@grahamc:nixos.org@grahamc:nixos.orgas long as you setup clustering13:36:56
@grahamc:nixos.org@grahamc:nixos.orgI'd recommend spending a few days to a week playing with vault, setting up a lab, doing clustering, failovers, seal / unseal / etc.13:37:21
@mic92:nixos.dev@mic92:nixos.devI probably won't for now. I would be interested if I later on can migrate to such a setup, if required.13:38:04
@grahamc:nixos.org@grahamc:nixos.orgif you're not going to run multiple vault servers then I would probably recommend either using HCP Vault, or recommend against using vault13:38:40
@grahamc:nixos.org@grahamc:nixos.orgit tends to quickly become an incredibly important cornerstone to infrastructure and it can be somewhat catastrophic if it goes down13:39:08
@mic92:nixos.dev@mic92:nixos.devOk. So I thought that short downtimes can be handled because vault agent is also caching stuff?13:40:10
@grahamc:nixos.org@grahamc:nixos.orgthe vault agent caches some stuff but not everything13:40:29
@grahamc:nixos.org@grahamc:nixos.organd also short down times are not so problematic :)13:40:38
@grahamc:nixos.org@grahamc:nixos.organd running 3 machines is relatively cheap13:40:49
@grahamc:nixos.org@grahamc:nixos.orgwell, caveat13:41:04
@grahamc:nixos.org@grahamc:nixos.orgif this is for personal use, go to town -- I have a single-node vault machine in my basement :P13:41:14
@mic92:nixos.dev@mic92:nixos.devIt's a bit more serious in my case I think13:41:42
@grahamc:nixos.org@grahamc:nixos.orgbut for work stuff, we take the precautions13:41:43
@grahamc:nixos.org@grahamc:nixos.orgwhat's it for?13:42:06
@mic92:nixos.dev@mic92:nixos.devFor a customer13:42:31
@grahamc:nixos.org@grahamc:nixos.orgunless you're running your own Vault plugins, I would recommend using HCP Vault13:42:50
@mic92:nixos.dev@mic92:nixos.devI might actually want this in future :)13:43:33

Show newer messages


Back to Room ListRoom Version: 6