Live data from Hacker News

AWS Secrets Manager – Store, Distribute, and Rotate Credentials Securely

aws.amazon.com

61–70 of 137 posts

Re: AWS Secrets Manager – Store, Distribute, and Rotate Credentials Securely

#61
post #53
post #51

> $0.40/secret/month WOWZER. I get having a managed solution is great, but you don't have to store many secrets before running your own Vault server makes sense.

FTFU - Valut service .... You need more than one server, it'll need to have 100% uptime too, backed up and available in multiple regions. No security team want to own this infrastructure.

Not to mention the Hardware Security Module(s) behind this are very expensive, especially when scaled out for redundancy and availability.

Re: AWS Secrets Manager – Store, Distribute, and Rotate Credentials Securely

#64

Does the Secret Rotation for the RDS-integrated credential store actually update the password for the user in the SQL database? If so, thats pretty damn cool.

Oh, I misread it as a secret for Twitter (which, I guess, makes no sense, because tweets are generally public).. and I was wondering how the password got updated on the Twitter side. So I guess, naturally, secrets can only be rotated for AWS services that support it.

Re: AWS Secrets Manager – Store, Distribute, and Rotate Credentials Securely

#66

How is this different than KMS? “Key Management Service” is practically synonymous with the name of this new product, so how exactly do the two differ/interact?

Well, you can use KMS to do something similar, but without the auto-rotation.

1. Use a KMS key to encrypt a secrets file (obviously, never check this into source control)

2. Store the encrypted secrets file in an S3 bucket

3. Tie a new IAM role with kms:Decrypt and s3:GetObject policies for the relevant resources to your EC2 instance

4. On app start, get the KMS key and secrets file, decrypt, and set environment variables

In practice, rotating using this scheme just means creating a new KMS key, re-encrypting the file and pushing the updated copy to S3, and updating the IAM role's kms:Decrypt policy. It's not too bad unless you have a million services.

Re: AWS Secrets Manager – Store, Distribute, and Rotate Credentials Securely

#67
post #52
post #17

Earlier quoted context omitted.

It'd be cheaper than running Vault with a backing Consul cluster which also provides rotation and other features. There is a point where Vault is more cost effective, but I believe it'd require a ton of requests and secrets to justify min 6 machines of at least t2.micro that also need to managed and secured.

Depends on how many secrets you're storing. You can also back Vault with something other than Consul. You can back it with DynamoDB, which would be much cheaper than managing your own Consul cluster. You can even back it with S3, which would be dirt cheap (cost of the vault instance + a few cents for storage).

I wasn't aware you could use Dynamo or S3, that's pretty interesting

Re: AWS Secrets Manager – Store, Distribute, and Rotate Credentials Securely

#68
post #17

Earlier quoted context omitted.

It'd be cheaper than running Vault with a backing Consul cluster which also provides rotation and other features. There is a point where Vault is more cost effective, but I believe it'd require a ton of requests and secrets to justify min 6 machines of at least t2.micro that also need to managed and secured.

What if you're already running a nomad/consul cluster? Is vault a particularly hard thing to implement/scale at that point?

Yea it that case then it's not that hard or extra cost. But I imagine most people aren't already running Nomad or Consul and can benefit from this. Lambdas, Wordpress, etc. can now get rotating secrets which is pretty nice possibility now with a lot less operational overhead.

Re: AWS Secrets Manager – Store, Distribute, and Rotate Credentials Securely

#70
For those of us living in the service-development stone ages, is the idea that a secret-manager service replaces any number of ad-hoc local secret-storage and configuration mechanisms with a single robust mechanism that takes only a single root credential to retrieve all the individual secrets that your service needs?

You do still have to figure out a way to securely provide the root credential to your service so that it can fetch the secrets from the secret manager, correct? Otherwise this would be magic of a kind I think is impossible.

If my questions aren't too far off in the weeds, then this service sounds like a personal password manager but for a service rather than a person, though I'm sure AWS's service has finer-grained controls than just the all-or-nothing master passphrase. Similar risks apply: an attacker obtaining the master passphrase is a major issue, losing the master passphrase is devastating (though recoverable here because you probably didn't lose your personal AWS login credentials), and unavailability of the password database is catastrophic. But the usability benefits of having everything in one secure place, behind a service managed by experts, should outweigh those risks.

I have more questions about the credential-rotation feature, but this is enough for now.

Post reply on HN