StyraInc / opa-aws-cloudformation-hook

AWS Cloudformation Hook for OPA-powered infrastructure policy enforcement
Apache License 2.0
35 stars 5 forks source link

Dynamic policy composition #12

Closed anderseknert closed 2 years ago

anderseknert commented 2 years ago

This adds dynamic routing / policy compositon based on the input.resource.type, mapping something like AWS::S3::Bucket to the data.aws.s3.bucket package, where the deny rule(s) will be evaluated, and the result aggregated into the decision. Moved and remodeled the policies and tests to work with this.

Since it's been a while since I worked a full day on policy authoring, here are some random thoughts and findings from this experience: