News for hackers. Stuff that matters.
Re:How I use the good parts of AWS by rjurney on Sunday July 28, 2019 @12:39AM (#20545862)
IAM is a killer. You’re absolutely right. Are GCP permissions easier? I haven’t used them as much.
Re:How I use the good parts of AWS by jsmeaton on Sunday July 28, 2019 @01:07AM (#20545952)
I’ve stopped worrying about minimising IAM permissions and tend to just use the built in AWS roles for most things now.
Re:How I use the good parts of AWS by DVassallo on Sunday July 28, 2019 @01:18AM (#20545984)
Yes, I do the same. For service roles I just use the PowerUser managed role. I don’t see the need to put access control on Amazon’s ability to call it’s own services. I only restrict my EC2 instance profile, since that’s a bit more vulnerable, and I tend to know very precisely what it should have access to.
Re:How I use the good parts of AWS by poxrud on Sunday July 28, 2019 @09:15AM (#20547366)
What if you have a lambda with a full admin role that is not sanitizing its inputs? Or maybe it's using an outdated file parsing library (csv/yaml) with a vulnerability. Now your entire AWS account could potentially be compromised.
Re:How I use the good parts of AWS by DVassallo on Sunday July 28, 2019 @01:31PM (#20548737)
Yes, I would use a restricted role for Lambda too. Anything that gets creds in user space gets restricted permissions: EC2, Lambda, ECS, etc.
Re:How I use the good parts of AWS by darkr on Sunday July 28, 2019 @03:13AM (#20546245)
Some of the AWS built-in roles are an absolute car crash, no idea how they got through review (EMR is a good example). I use the built-in roles by default, but only after thoroughly reviewing the policies, I create my own based on that if I find anything I don’t like.

It’s not restricting amazon’s access that I’m worried about, more privilege escalation (e.g non-constrained iam:PassRole in combination with anything is a good one)

Re:How I use the good parts of AWS by mey on Sunday July 28, 2019 @12:54AM (#20545911)
https://github.com/tilfin/aws-extend-switch-roles/blob/maste... may be interesting to you.

The fact that this has to exist is also interesting...

Re:How I use the good parts of AWS by usmannk on Sunday July 28, 2019 @01:04AM (#20545940)
I'll hate on GCP all day long but the one thing it has going for it is the permissions.
Re:How I use the good parts of AWS by wodenokoto on Sunday July 28, 2019 @02:23AM (#20546140)
Wow, I was gonna say “haven’t tried IAM on other platforms than GCP but I can’t imagine it being more difficult than this”, but damn ...
Re:How I use the good parts of AWS by chishaku on Sunday July 28, 2019 @12:47AM (#20545894)
night and day imho