WeAreFarmGeek / diplomat

A HTTP Ruby API for Consul
BSD 3-Clause "New" or "Revised" License
370 stars 116 forks source link

Support Consul 1.4.0+ ACL system #193

Closed scalp42 closed 5 years ago

scalp42 commented 5 years ago

Current Diplomat only supports legacy API endpoints:

PUT /acl/create - Create Legacy Token
PUT /acl/update - Update Legacy Token
PUT /acl/destroy/:uuid - Delete Legacy Token
GET /acl/info/:uuid - Read Legacy Token
PUT /acl/clone/:uuid - Clone Legacy Token
GET /acl/list - List Legacy Tokens

The new system doesn't allow naming the token itself, only the description. A new AccessorID gets created instead and acts as the ID in the legacy system.

I'm going to start working on a PR.

pierresouchay commented 5 years ago

@scalp42 Thank you for the PR!

scalp42 commented 5 years ago

@pierresouchay Unfortunately/fortunately with 1.5.0, we'll have to change the gem again, see https://github.com/hashicorp/consul/issues/4977#issuecomment-489329565