You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be helpful to support ACL tokens for consul calls, for the use case where ACLs have been established in Consul and are required for kv store access and/or service registration.
If ACLs are in place, there are two ways to provide the token to consul (per consul.io) - either at the agent level (with the acl_token config parameter), or on a call specific basis. In some use cases, multiple applications/services will share an agent and may have different acl tokens defined. In these cases, setting the acl token at the agent level is not sufficient. By defining the token in a bootstrap.yml file, spring cloud consul could then provide the token for each call.
The Ecwid/consul-api supports providing a token in the KeyValueClient, but currently does not have the same support in the AgentClient. I'll open up an issue with consul-api to support tokens in the AgentClient, and I think that can be resolved by following the same pattern that exists in the KeyValueClient.
Activity
[-]Support concul ACL tokens[/-][+]Support consul ACL tokens[/+]spencergibb commentedon Jul 30, 2015
Sounds good. Can you put a link to the
consul-apiissue when you create it?bpgray commentedon Jul 30, 2015
Issue opened to support tokens in consul-api AgentClient
Ecwid/consul-api#22
bpgray commentedon Aug 27, 2015
ACLs support has been added to the consul-api AgentClient in version 1.1.6.
Commit is here: Ecwid/consul-api@5420831
bpgray commentedon Sep 4, 2015
Ticket opened and pull request submitted to consul-api to support deregistering services with token
Ecwid/consul-api#27
spencergibb commentedon Sep 10, 2015
Closed via 5154b91