Live data from Hacker News

Iamlive – Generate an IAM policy from AWS client-side monitoring

github.com

31–36 of 36 posts

Re: Iamlive – Generate an IAM policy from AWS client-side monitoring

#31
I have the need to run client-side monitoring for AWS Lambda functions, but haven't managed to figure out yet what's the easiest option to do so.

While I could point AWS_CSM_HOST to some external IP-address, the lack of encryption and authentication makes that pretty nonviable. Alternatively I could put the AWS Lambda functions into VPC, but I'd prefer a less invasive change to the AWS Lambda functions.

Does somebody here have a better solution for that?

Re: Iamlive – Generate an IAM policy from AWS client-side monitoring

#33
post #14

Earlier quoted context omitted.

Hey! So to touch on a couple of points: Scott Piper is probably one of the most known AWS sec experts, check out his websites. https://summitroute.com/blog/ "Any approaches to formally proving that IAM roles and permissions are secure would be greatly appreciated! " Are you looking for a way to see that you have set up your policies correctly?

Ya after writing it, I think what's going on is that I do everything declaratively now. So it's great that AWS lets us create the AWS policy files rather than making us manage permissions through code. But I want to see the infrastructure as a big spreadsheet, turn on a policy, and see the accessible services highlight. basically I need something like an acceptance/integration test that proves that my permissions wor…

Pull this thread...

Zelkova uses automated reasoning to analyze policies and the future consequences of policies. This includes AWS Identity and Access Management (IAM) policies, Amazon Simple Storage Service (S3) policies, and other resource policies. These policies dictate who can (or can’t) do what to which resources. Because Zelkova uses automated reasoning, you no longer need to think about what questions you need to ask about your policies. Using fancy math, as mentioned above, Zelkova will automatically derive the questions and answers you need to be asking about your policies, improving confidence in your security configuration(s).

https://aws.amazon.com/blogs/security/protect-sensitive-data...

Maybe start at Provable Security: https://aws.amazon.com/security/provable-security/

Re: Iamlive – Generate an IAM policy from AWS client-side monitoring

#34
It's mentioned in the readme, but CSM doesn't provide any information as to the resources being accessed, just the service and action, so the best this tool can do is generate policy with wildcard resources.

Not ideal, but I guess it's better than running your system with a wide open policy.

Re: Iamlive – Generate an IAM policy from AWS client-side monitoring

#35

I've dabbled in dev ops in recent months and found that setting up AWS services is relatively straightforward. Although for anyone reading this, do yourself a favor right now and learn to automate the manual steps with something like Terraform or you'll most likely never get anywhere in any reasonable amount of time. I found IAM to be an anti-pattern. I grew up on the Mac in a sandboxed, single-user environment with…

I do wish AWS made it easier to view and debug permission errors. It should be possible with Cloudtrail but I've never found a quick and easy filter that would show denied errors so I can add the requisite permissions. Even better if it presented a policy with the permission present. MS has a decent system with their graph API explorer [1], where it will show you what permission is needed and has the ability for you to grant that permission on the Web UI, this is a step in the right direction.

[1]https://developer.microsoft.com/en-us/graph/graph-explorer

Post reply on HN