News for hackers. Stuff that matters.
Re:Google Cloud’s Secrets Manager by Jonnax on Friday January 24, 2020 @06:45AM (#22137264)
What are people's favoured ways of managing secrets these days?

Does this look appealing?

Re:Google Cloud’s Secrets Manager by peterwwillis on Friday January 24, 2020 @09:49AM (#22138720)
If you have an enterprise, HashiCorp Vault has the best features and integrations that I know of (everyone should be using short lived credentials, but who actually does if they're not using Vault?). If you can't use that, AWS Secrets Manager for its simpler integration of secret rotation, and if that's too expensive, AWS SSM PS. Google Cloud Secrets Manager would be analogous to AWS Secrets Manager.

The benefit of AWS Secrets Manager has been that it integrates directly with other services. In ECS/Fargate, you can create a task definition and list secrets to be injected at run time. It also has features like secret rotation so you don't have to roll your own (well, you kinda do w/Lambda, but they have samples), and you can use things like IAM to lock down access per-secret or per-IAM-ARN-hierarchy.

Like everything in AWS, it'll cost you more, but it'll also eliminate a lot of engineering time. If you're trying to pinch pennies, use Vault or something hokey like pulling a token from AWS SSM PS or S3 and rely on IAM roles/profiles/etc for access control.

Re:Google Cloud’s Secrets Manager by Lunatic666 on Friday January 24, 2020 @07:31AM (#22137500)
I'm using the SSM Parameter Store [0] a lot, because of its easy integration in applications – many services can directly pull secrets from it and provide them as environment variables. The secrets can be KMS encrypted and cost a fraction of the Secrets Manager, which I think is just the parameter store with secrets being rotated by a Lambda.

[0] https://docs.aws.amazon.com/systems-manager/latest/userguide...

Re:Google Cloud’s Secrets Manager by WaxProlix on Friday January 24, 2020 @08:17AM (#22137860)
It also has a pretty generous free tier, so if you're not using very ephemeral creds and you don't need auto rotation, it's a fantastic option (disclaimer though I work at SSM and am biased - glad to hear you also like the product :)
Re:Google Cloud’s Secrets Manager by dijit on Friday January 24, 2020 @06:47AM (#22137272)
Hashicorp vault is basically industry standard I believe. But there are various cloud APIs too, which have varying degrees of integration with kubernetes.
Re:Google Cloud’s Secrets Manager by candiddevmike on Friday January 24, 2020 @08:03AM (#22137751)
I wish this wasnt the case. An open core product shouldn't be the industry standard as it's not truly open source (I doubt HashiCorp would allow a PR that brings enterprise functionality to open core) and the open core/give it away for free model stiffes competition (see Vaults pricing for an example, they know they own the market).
Re:Google Cloud’s Secrets Manager by jjeaff on Friday January 24, 2020 @04:43PM (#22142754)
How is open core not truly open source? Of course they wouldn't accept a pull request that makes their pay product obsolete. But open source does not dictate that you must accept all pull requests.

There is nothing stopping you from forking the project and adding all the enterprise functionality you want.

https://github.com/hashicorp/vault/blob/master/LICENSE

Re:Google Cloud’s Secrets Manager by bmurphy1976 on Friday January 24, 2020 @11:03AM (#22139380)
Vault is also operationally complex and does a lot more than you need most of the time.
Re:Google Cloud’s Secrets Manager by ithkuil on Friday January 24, 2020 @08:46AM (#22138152)
(shameless plug) For simple secret management use cases here is an alternative, "gitops" friendly, low "config footprint" tool: https://github.com/bitnami-labs/sealed-secrets
Re:Google Cloud’s Secrets Manager by tamalsaha001 on Friday January 24, 2020 @07:11AM (#22137378)
We have been trying to simplify Vault + Kubernetes integration in our KubeVault project. https://github.com/kubevault . I would love to hear if you have any thoughts.
Re:Google Cloud’s Secrets Manager by Axsuul on Friday January 24, 2020 @06:52AM (#22137292)
Unfortunately Vault doesn't have a plugin yet for Docker Swarm still :(
Re:Google Cloud’s Secrets Manager by Jonnax on Friday January 24, 2020 @07:02AM (#22137342)
Swarm is on its way out. Mirantis bought that part of Docker and they said this:

"The primary orchestrator going forward is Kubernetes. Mirantis is committed to providing an excellent experience to all Docker Enterprise platform customers and currently expects to support Swarm for at least two years, depending on customer input into the roadmap. Mirantis is also evaluating options for making the transition to Kubernetes easier for Swarm users."

https://www.mirantis.com/blog/mirantis-acquires-docker-enter...

Re:Google Cloud’s Secrets Manager by peterwwillis on Friday January 24, 2020 @09:41AM (#22138653)
This is sad. Swarm is simple and effective, like Nomad but easier.
Re:Google Cloud’s Secrets Manager by notduncansmith on Saturday January 25, 2020 @02:35PM (#22148144)
Agreed. I’ve been working a lot with Swarm over the past year and while it’s not perfect, it has been an overall great experience. I really enjoy the simplicity and tight integration with Docker, and I feel that the ecosystem around Swarm was just starting to mature. Hopefully it remains an option for a while.

Also, I haven’t needed to integrate something like Vault because the Swarm secrets feature covers my use case perfectly.

Re:Google Cloud’s Secrets Manager by Axsuul on Sunday January 26, 2020 @02:23PM (#22154096)
I'm also using the secrets feature but it's very brittle. If your swarm gets destroyed or you want to migrate servers, it's a huge pain to get those secrets back up and running. Unless I'm missing a better way to do this, I'd love to know!

I currently have my secrets stored in an encrypted text file in case I need to bring them back up.

Re:Google Cloud’s Secrets Manager by notduncansmith on Monday January 27, 2020 @01:55AM (#22157332)
I do something similar, using Ansible Vault (not to be confused with Hashicorp Vault!) to store the encrypted secrets in my ops directory (separate from the application source code). They’re stored as YAML so very easy to upload/regenerate with Ansible.
Re:Google Cloud’s Secrets Manager by fapjacks on Friday January 24, 2020 @12:06PM (#22140156)
But there's no money in enterprise support contracts for things which are simple and effective.
Re:Google Cloud’s Secrets Manager by bliteben on Friday January 24, 2020 @02:30PM (#22141620)
I feel like so much in the cloud space is actually getting worse because of this. Its like all the old server shufflers and netops guys have taken over.
Re:Google Cloud’s Secrets Manager by ensignavenger on Friday January 24, 2020 @01:16PM (#22140936)
Since Swarm is Open Source, it is possible the community will maintain it even after Mirantis/Docker have stopped developing it completely.
Re:Google Cloud’s Secrets Manager by darkwater on Friday January 24, 2020 @06:59AM (#22137328)
But is Swarm a valuable target? My feeling is that Swarm is going to be EOL'ed in not a so distant future.
Re:Google Cloud’s Secrets Manager by discordance on Friday January 24, 2020 @07:01AM (#22137332)
Re:Google Cloud’s Secrets Manager by sgnnseven on Friday January 24, 2020 @10:25AM (#22139022)
(shameless plug as well) Try out CyberArk DAP (formerly Conjur): https://hub.docker.com/r/cyberark/conjur. OSS, powerful RBAC, has k8s-native workload ident auth, works on OCP and w/ PCF, lots of tooling integrations (https://github.com/cyberark/summon, https://github.com/cyberark/secretless-broker, etc), and there's a relatively straightforward path up to "enterprise"-y stuff if you think you want the bells and whistles (replication, auto-deployable followers, multi-zone failover, etc).
Re:Google Cloud’s Secrets Manager by andoma on Friday January 24, 2020 @11:35AM (#22139771)
As others have mentioned, also using SSM Parameter Store (if you're in AWS) + KMS. Running most of our micro services using ECS (Fargate) which can populate environment variables directly from secrets in SSM Parameter Store.
Re:Google Cloud’s Secrets Manager by davedx on Friday January 24, 2020 @07:39AM (#22137559)
AWS Secrets Manager is fine if you're in that cloud. We inject all our secrets into the API containers' environments when they're deployed. For some things that have refresh tokens and access tokens with shorter lifetimes, we use the Secrets Manager API to fetch them when necessary at runtime.
Re:Google Cloud’s Secrets Manager by grogenaut on Friday January 24, 2020 @09:43AM (#22138672)
What do you use for per customer keys?
Re:Google Cloud’s Secrets Manager by wbl on Friday January 24, 2020 @09:35AM (#22138603)
Salt+gpg works, although there are a lot of assumptions baked into that.