Code I'm using in seeking help from the OPA Slack channel.
Here's the idea.
For the resource_key_value_matches
function, I want to allow users to specify the path within a resource, with any number of nested levels deep.
For an example call, see the common_test.rego
file.
resource_key_value_matches(s3_bucket_plan.resource_changes[0], "server_side_encryption_configuration[0].rule[0].apply_server_side_encryption_by_default[0].sse_algorithm", "AES256")