News for hackers. Stuff that matters.
Re:Easy private certificate management for VMs on AWS, GCP, ... by zokier on Friday September 06, 2019 @05:52PM (#20900250)
I feel like the lack of "audience" field (or equivalent) in AWS IID makes them bit less attractive for authentication than GCP/Azure ones. For example here step-ca could impersonate (if compromised) the client instance to any other services that were to use IID for auth (or vise versa).
Re:Easy private certificate management for VMs on AWS, GCP, ... by mmalone on Friday September 06, 2019 @06:06PM (#20900312)
Yep. AWS's instance identity implementation is crap. I want to write a follow-up blog post about this. They also don't rotate their keys and their tokens don't expire. To top it off, their implementation is buggy and terribly documented. Honestly it's pretty shameful. They have the resources to fix it, and they should fix it. GCP's implementation is the best. It's JWT-based and heavily inspired by OAuth OIDC identity tokens and uses a lot of the same infrastructure. Azure's is a close second. None are perfect.

That said, even AWS's crappy implementation is super useful, and really the only good way to do this (that I know of?). We've tried to mitigate this risk somewhat by making tokens single use. I'd like to also add a way to send a token to `step-ca` to say "this server doesn't need a certificate" that basically marks the instance as "used" without issuing anything. If everything that uses IIDs did this, and you ran through all of your services at startup and either authenticated or said "I never need to use this service", it would provide some protection.

Still, to your point, AWS should fix their shit.

Re:Easy private certificate management for VMs on AWS, GCP, ... by zokier on Friday September 06, 2019 @06:13PM (#20900361)
Btw can step create client certs? That would reduce the need to use IID for anything else, even if it doesn't really resolve the underlying issues with IID
Re:Easy private certificate management for VMs on AWS, GCP, ... by mmalone on Friday September 06, 2019 @06:39PM (#20900515)
Yep. That's my preferred solution, obviously ;)

Certs have "TLS Client Authentication" key use set by default.