News for hackers. Stuff that matters.
Re:AWS Creates New Policy-Based Access Control Language Cedar by krab on Monday February 20, 2023 @05:19AM (#34866817)
This doesn't cut it. That tool helps if your role/user has a lot of policies that might interact between each other. But you already need to know the exact "actions" and context.

On the other hand, I have a tool that calls some AWS services that may in turn call other AWS services. Now if something fails because of IAM denial, I have to go through the logs to figure out what it needed, sometimes it's not even in the logs (S3). Then add it to the policy and repeat to see the next failed call.

I imagine being able to call real API calls, make them succeed and record what permissions it needed for each of those API calls. I don't need that as a permanent log, just as a development tool.

Re:AWS Creates New Policy-Based Access Control Language Cedar by sickmate on Monday February 20, 2023 @05:40AM (#34866940)
You can do this with Localstack, however it's gated behind their pro service.

https://docs.localstack.cloud/user-guide/aws/iam/#explainabl...

Re:AWS Creates New Policy-Based Access Control Language Cedar by kapilvt on Monday February 20, 2023 @07:58AM (#34867665)
All of the sdks support client side monitoring (CSM), so these sort of tools can be built client side. https://boto3.amazonaws.com/v1/documentation/api/1.10.46/gui...

afaics the only challenge is mapping some of the apis to iam as its only 85% 1:1

There's also tools for helping with iam like (generator, and linter)

https://github.com/salesforce/policy_sentry

https://github.com/duo-labs/parliament

Re:AWS Creates New Policy-Based Access Control Language Cedar by krab on Monday February 20, 2023 @08:02AM (#34867688)
> mapping some of the apis to iam as its only 85% 1:1

Yeah. Try to create an Elastic beanstalk app with only EB permissions.

Re:AWS Creates New Policy-Based Access Control Language Cedar by kapilvt on Monday February 20, 2023 @08:49AM (#34868016)
actually Ian (aws hero) has a tool that does exactly this

https://github.com/iann0036/iamlive

Re:AWS Creates New Policy-Based Access Control Language Cedar by krab on Monday February 20, 2023 @12:00PM (#34870026)
Oh, thanks a lot!