News for hackers. Stuff that matters.
Re:Mozilla SOPS with KMS and Git is underrated (2019) by mitchellh on Thursday April 30, 2020 @12:13PM (#23032499)
I'm one of the creators of Vault. I read this back when it was posted and I'd be happy to share my thoughts. I'll note its worth reading through to the last paragraph and into the comments, the title is a bit bait-y and the article does a better job than the title gives itself credit for.

Broadly speaking, if you're looking at Vault to solve a specific problem X for a specific consumption type Y on a specific platform Z, then it _probably is overkill_ (I wouldn't say "overhyped" :)). i.e. "encrypted key/value via env vars on AWS Lambda". "X via Y on Z." The power of Vault is: multiple use cases, multiple consumption modes, and multiple platforms supported with a single consistent way to do access control, audit logging, operations, etc.

I can't stress that "single consistent way to do access control, audit logging, operations, etc." enough. Multiple security use cases dangling off that consistency is really important as soon as you hit N=2 or N=3 security use cases.

If you need say... encrypted KV and encryption-as-a-service and dynamic just-in-time credentials and a PKI system (certificate), and you need this as files and as env vars, and you need this on Kubernetes and maybe also on EC2, then Vault is -- in my totally biased opinion -- going to blow any other option out of the water.

That's a somewhat complex use case but its something Vault excels at. For simpler use cases, Vault is making more and more sense as we continue to make Vault easier to use. For example, we now provide a Helm chart and official K8S integration so you can run Vault on K8S very easily. And in this mode, developers don't even need to know Vault is there cause their secrets show up as env vars and files just like normal K8S secrets would.

Also, this article is from June 2019 and in 10 short months we've made a ton of progress on simplifying Vault so it gets closer to that "X via Y on Z" use case. Here are some highlights I can think of off the top of my head but there are definitely more, this is just from memory:

* We have integrated storage as an option now, so you don't need separate storage mechanisms.

* Our learn guides went from basically zero to lots of content which makes it much easier to learn how to use Vault: https://learn.hashicorp.com/vault

* We have an official, feature-packed Kubernetes integration to do stuff like secret injection and rotation automatically. We also publish a Helm chart to run Vault on Kubernetes. https://learn.hashicorp.com/vault?track=getting-started-k8s#...

We're looking at ways to make running Vault much, much easier. More on that later this year. :)

Re:Mozilla SOPS with KMS and Git is underrated (2019) by rad_gruchalski on Thursday April 30, 2020 @12:33PM (#23032786)
Vault is awesome. Thank you for creating it. We use it at Klarrio for issuing Kafka client certificates on demand in a multi-tenat DC/OS cluster. It sits right in the core of the platform and it just never fails us.
Re:Mozilla SOPS with KMS and Git is underrated (2019) by NovemberWhiskey on Thursday April 30, 2020 @12:23PM (#23032647)
> We have integrated storage as an option now, so you don't need separate storage mechanisms.

Off topic, but seeing as you mentioned it - do you see the integrated Raft storage becoming the preferred solution? Without it, there's (IMHO) a bit of a chicken-and-egg bootstrapping problem between Vault and Consul.

Re:Mozilla SOPS with KMS and Git is underrated (2019) by mitchellh on Thursday April 30, 2020 @12:31PM (#23032760)
Yes it will become the preferred solution. We just went GA with it (after a year of testing) in our last release. We’re now recommending this to customers. We’ll continue to provide support for Consul indefinitely and aren’t forcing customers to switch over.

(Note “support” above is literal human support. “Support” in terms of enabling that use case will be around indefinitely but planned forever, we’ll always support different storage backends. But for our paying customers, we only support Consul and integrated storage for the sake of providing good service.)

Re:Mozilla SOPS with KMS and Git is underrated (2019) by 1cvmask on Thursday April 30, 2020 @05:51PM (#23036587)
GA? And what kind of customers?
Re:Mozilla SOPS with KMS and Git is underrated (2019) by dzelzs on Friday May 01, 2020 @07:36AM (#23041050)
GA = general availability
Re:Mozilla SOPS with KMS and Git is underrated (2019) by polskibus on Thursday April 30, 2020 @01:32PM (#23033519)
Would you mind comparing Vault to Keycloak?

https://www.keycloak.org/

I need an equivalent to Windows' Active Directory in Linux world that ideally can also federate with/masquerade as AD. Can Vault be such thing?

Re:Mozilla SOPS with KMS and Git is underrated (2019) by jsiepkes on Thursday April 30, 2020 @03:24PM (#23035001)
> I need an equivalent to Windows' Active Directory in Linux world that ideally can also federate with/masquerade as AD. Can Vault be such thing?

Vault is not such a thing.

AD is basically LDAP + Kerberos. Neither Vault nor Keycloak can fill that role. You would need Samba 4 setup as a domain controller [1] for that.

If you need AD but for Linux desktops you could take a look at FreeIPA [2].

If your feeling brave you can combine an LDAP server (like Wren:DS, 389 or OpenLDAP) with a Kerberos implementation like MIT Kerberos and create an AD like experience yourself. Though I would not recommend that.

[1] https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Acti...

[2] https://www.freeipa.org/

Re:Mozilla SOPS with KMS and Git is underrated (2019) by dharmab on Thursday April 30, 2020 @02:31PM (#23034342)
Vault and Keycloak serve entirely separate use cases. Vault is for storing secrets (passwords, API keys, keypairs and the like).

If you can use public cloud, have you considered Azure Active Directory? We're a Linux shop using it very successfully for on-prem and cloud systems.

Re:Mozilla SOPS with KMS and Git is underrated (2019) by polskibus on Thursday April 30, 2020 @02:56PM (#23034664)
I need a self sufficient component, that can be deployed on prem alongside other components, without public cloud dependency.
Re:Mozilla SOPS with KMS and Git is underrated (2019) by nisa on Thursday April 30, 2020 @03:49PM (#23035279)
keycloak is pretty nice for that. You can just drop some docker-compose somewhere (or k8s) or plain wildfly/tomcat and you have saml idp + oauth2 (openid connect) out of the box including ui and self-service for users - it's also completly themeable (that's what I'm doing at the moment for a project)...

you don't even need a ldap/ad in the background but you can connect to one.

however it's strictly for authentication and authorization - basically users + roles

vault is different usecase but can probably be connected.

Re:Mozilla SOPS with KMS and Git is underrated (2019) by yrro on Friday May 01, 2020 @05:29AM (#23040434)
You might find FreeIPA useful. Its CA component (dogtag) has a KRA component that FreeIPA exposes as 'vaults' for secret storage.

You can even do cross-forest trust to AD, log into your Linux systems as users who live in AD...

Re:Mozilla SOPS with KMS and Git is underrated (2019) by weitzj on Thursday April 30, 2020 @02:25PM (#23034244)
Thanks for vault. Thievish why we use it.

Only for bootstrapping the TLS key of the vault servers we needed another tool.

Sure there is sops.

We opted for google/tink

This gives us asymmetric encryption with KMS for bootstrapping the vault AMIs on AWS.

We create Vault AMIs with Packer and put encrypted TLS keys inside the AMIs. This way we have immutable machine images, which can crash/restart using an Autoscaling group and we can attach all decryption processes to the instance role of the EC2 machines