influx-proxy icon indicating copy to clipboard operation
influx-proxy copied to clipboard

写请求没有转发 http headers 导致 HTTP Basic access authentication 失败

Open TingxinLi opened this issue 6 years ago • 1 comments

如果 Influxdb 开启了 authentication 的话,客户端就必须带上用户名和密码,如果用 HTTP Basic Authentication 的话就是带上 request header,而 influx-proxy 的 service/http.go 里面的 HandlerWrite 中是只取 req.Body 来进行重试的,这是不是意味着无法转发通过 HTTP Basic access authentication 的写请求?

TingxinLi avatar Dec 25 '18 09:12 TingxinLi

influx proxy的主要目标是对数据做分片,也就是说,backend的数据库performance顶不住要用多台。既然backend都顶不住了,也就不存在和别人混用,混合部署的问题了。你可以认为backend是专属的,或者说是独占的。那我就不明白为什么大家都想要auth需求呢,static ip filter就好了...

shell909090 avatar Dec 25 '18 13:12 shell909090