Skip to content

Support consul ACL tokens #66

Closed
Closed

Description

@bpgray

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

  1. changed the title [-]Support concul ACL tokens[/-] [+]Support consul ACL tokens[/+] on Jul 30, 2015
  2. spencergibb commented on Jul 30, 2015

    @spencergibb
    Member

    Sounds good. Can you put a link to the consul-api issue when you create it?

  3. bpgray commented on Jul 30, 2015

    @bpgray
    Author

    Issue opened to support tokens in consul-api AgentClient
    Ecwid/consul-api#22

  4. bpgray commented on Aug 27, 2015

    @bpgray
    Author

    ACLs support has been added to the consul-api AgentClient in version 1.1.6.
    Commit is here: Ecwid/consul-api@5420831

  5. bpgray commented on Sep 4, 2015

    @bpgray
    Author

    Ticket opened and pull request submitted to consul-api to support deregistering services with token
    Ecwid/consul-api#27

  6. spencergibb commented on Sep 10, 2015

    @spencergibb
    Member

    Closed via 5154b91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions