python - Influx 中的身份验证允许所有用户名
问题描述
解决方案
要激活身份验证系统,您必须设置INFLUXDB_HTTP_AUTH_ENABLED
为true
。
如,根据https://github.com/influxdata/influxdb/blob/1.8/docker/init-influxdb.sh
...
AUTH_ENABLED="$INFLUXDB_HTTP_AUTH_ENABLED"
if [ -z "$AUTH_ENABLED" ]; then
AUTH_ENABLED="$(grep -iE '^\s*auth-enabled\s*=\s*true' /etc/influxdb/influxdb.conf | grep -io 'true' | cat)"
else
AUTH_ENABLED="$(echo ""$INFLUXDB_HTTP_AUTH_ENABLED"" | grep -io 'true' | cat)"
fi
...
推荐阅读
- python - 如何允许某个类只能在 python 脚本中访问一次?
- c# - C# WebSockets 监听 UNIX 域套接字?
- apache-spark - PySpark 上的 regexp_replace 用于两列
- javascript - 如何安全地深入物体
- typescript - 如何在 Cypress 6.0 之前恢复 cy.wait() 类型以返回 XMLHttpRequest
- javascript - react js中带参数调用回调的最佳实践
- installation - 在 wix 安装程序上应用转换时出错
- gcc - googletest 在使用 cmake / gcc 10.2 重新编译时失败
- html - 为什么当我使用状态代码 200 渲染我的页面时会显示原始 Html 代码?
- c# - 仅使用 async/await 时是否存在竞争条件?