3 ms·
The book AWS Cookbook section 1.2 is on 'Generating a Least Privilege IAM Policy Based on Access Patterns'. [1] https://www.oreilly.com/library/view/aws-cookbo
by ProjectMoonShot 4y ago
The book AWS Cookbook section 1.2 is on 'Generating a Least Privilege IAM Policy Based on Access Patterns'.
[1] https://www.oreilly.com/library/view/aws-cookbook/9781492092599/ https://www.oreilly.com/library/view/aws-cookbook/9781492092...
[2] https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-policy-generation.html https://docs.aws.amazon.com/IAM/latest/UserGuide/access-anal...
- krab 4y agoThis goes in the right direction. Still it's not 100% reliable (e.g. S3 isn't logged by default to cloudtrail, probably due to volume). Also, not really interactive. I'm talking mostly about ergonomics. Obviously we can solve the issue and create the right policy - but it's not as easy as it could be. That in turn leads to some people skipping the process and staying with too powerful keys.
- grogenaut 4y agoData plane volumes are absurd and then you have to crunch it. I estimated this for my company. But you really wouldn't want to pay to do all that cloud trail processing yourself. We have some buckets where the cloud trail storage with 1y retention is more than the bucket itself.
- krab 4y agoHmm, what I had in mind was rather a tool that would generate a new access key (or some other way to correlate the requests) and record and show me in real time what permissions I need and let me play with that and simulate what API calls would fail with a policy that I'm just writing. Very low volume.
- grogenaut 4y agoI think that predicates you know everything your libraries, pulled in containers, kube charts, etc are doing... I'd love it if I could just be told what I'm doing and see 'yeah that makes sense' and be alerted to changes.