How can I implement authentication within Consul

3,037 views
Skip to first unread message

Hemant Gupta

unread,
Mar 10, 2016, 10:35:01 PM3/10/16
to Consul
I am using Consul for service discovery.
However, I want to implement authentication into it so that only limited number of people can access the webUI.

Please let me know how can I implement authentication within Consul.

Thanks

James Phillips

unread,
Mar 10, 2016, 10:56:39 PM3/10/16
to consu...@googlegroups.com
Hi Hemant,

ACLs are the only native Consul mechanism to implement something like that - https://www.consul.io/docs/internals/acl.html. The web UI supports passing an ACL token along with requests so you'd have to distribute tokens to the authorized users.

For the web UI, some folks bind the web interface only to the loopback interface and then run another web server that proxies Consul's interface, implementing the authentication mechanism (LDAP, basic auth, etc.) up in the other web server.

-- James

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/consul/issues
IRC: #consul on Freenode
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/5b4a0800-9ba9-4252-b452-04366c68bde0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages