n4ch04 / aws-policy

Golang package to parse AWS policies documents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS-Policy

Go Reference Go Report Card

AWS have an amazing SDK for Go with all API functions output typed, and works like clockwork ... until IAM policy documents appear.

AWS describes the policy document in SDK (GetPolicyVersion function ), textually The policy document returned in this structure is URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986)

In practice, it is raw data, and parsing is difficult due to it's structure depends on the policy, and not all fields always appear.
To achieve this I have used golang generics and it seems to work pretty well.

Issues


Feel free to submit issues and enhancement requests.

Please fork this project and open a PR to submit it.

About

Golang package to parse AWS policies documents

License:GNU General Public License v3.0


Languages

Language:Go 100.0%