nginx-upsync-module icon indicating copy to clipboard operation
nginx-upsync-module copied to clipboard

请问consul或者etcd服务是否支持验证登录

Open krainz opened this issue 9 years ago • 3 comments

如果consul或者etcd服务需要验证登录的话应该怎么做呢?

krainz avatar Nov 29 '16 01:11 krainz

暂不支持,可以参考 #109

xiaokai-wang avatar Nov 29 '16 02:11 xiaokai-wang

一个比较LOW的方法, iptables限制来源IP(比如特定的nginx集群), consul ui 可以做一个nginx代理然后加上access_token控制........ 当然更希望作者能开发出支持认证的模块哈

zhangheng3 avatar Feb 14 '17 03:02 zhangheng3

我采用了一个折中的办法,开启匿名读 consul(你可以限定只读 k/v),这样 nginx 能正常拉取配置,而对 consul 的写操作必须使用 token(consul acl 机制),我们更新 upstream 时的程序带 token 去访问 consul。

coagent avatar Dec 27 '17 01:12 coagent