CLI utility for policy normalization? #483
ossek
started this conversation in
Ideas / Feature Requests
Replies: 1 comment 3 replies
-
Interesting ... so your goal in this case is not to query an existing policy in AWS, but instead to run a policy you are writing through the function to canonicalize it? One approach we could take would be to build a special table e.g. Would that suit your use case? Would you mind expanding more on what you are looking to do here? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This may be more of a feature request, but reading through this:
https://steampipe.io/blog/normalizing-aws-iam-policies-for-automated-analysis
I had hoped there would be a relatively straightforward way to use the
canonicalPolicy
function on a json string input to do policy normalization like Steampipe does, (and then perhaps print out the normalized json).However, it does not seem so straightforward given that this func is not exported. Is there any plan to incorporate this functionality into a CLI or make the function exportable? The idea perhaps being that one could chain a
jq
call withcanonicalPolicy
to normalize policies while they're works-in-progress, or even incorporate into a build pipeline to normalize at build time.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions