python-consul
python-consul copied to clipboard
Add new acl system
Hi @cablehead,
It concerns new acl system for consul 1.4 and 1.5
In this pr I had the possibility to manage the following parts of the ACL api:
- https://www.consul.io/api/acl/tokens.html
- https://www.consul.io/api/acl/policies.html
- https://www.consul.io/api/acl/roles.html
- https://www.consul.io/api/acl/auth-methods.html
- https://www.consul.io/api/acl/binding-rules.html
@abarbare do you have some other request changes / reviews ?
@Dudesons Actually yes, the args_to_payload function doesn't fit my requirements as it will push each parameters as query string parameters. However, the Consul API is waiting those parameters as body parameters so it won't work.
I did a patch on my fork but I'm not 100% satisfied at this time of this solution as it mixes query string and body parameters but it works https://github.com/abarbare/python-consul/pull/1/files