dosubot[bot] commented on issue #2813: URL: https://github.com/apache/incubator-hugegraph/issues/2813#issuecomment-2987473078
<!-- Answer --> 在 3pd-6store-3server 集群环境下开启鉴权,推荐使用 StandardAuthenticator(即基于后端存储的鉴权)。只需在每台 server 的 `rest-server.properties` 配置文件中添加: ``` auth.authenticator=org.apache.hugegraph.auth.StandardAuthenticator auth.graph_store=hugegraph ``` 所有 server 的 `graphs/hugegraph.properties` 配置(除 data/wal 路径和端口外)必须完全一致,尤其是 raft 相关参数,确保 raft.group_peers 包含所有节点,且网络互通、数据目录可写。这样,鉴权数据(用户、角色等)会存储在后端数据库中,3 台 server 会自动同步,保证鉴权数据一致,无需手动同步,所有节点的鉴权状态始终保持一致[[参考1]](https://github.com/apache/incubator-hugegraph/issues/2787)。 如需 HTTP Basic Auth,默认超级管理员用户名为 `admin`,密码为你初始化时设置的密码,认证格式为 `Authorization: Basic base64(admin:密码)`[[参考2]](https://github.com/apache/incubator-hugegraph/issues/2727)。 总结:只要配置正确,3server 的鉴权数据是完全一致的,无需额外操作。 <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/7398382c-66a7-4093-912e-379a2d25ec57?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/7398382c-66a7-4093-912e-379a2d25ec57?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/7398382c-66a7-4093-912e-379a2d25ec57?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/7398382c-66a7-4093-912e-379a2d25ec57?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/7398382c-66a7-4093-912e-379a2d25ec57?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/7398382c-66a7-4093-912e-379a2d25ec57?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/7398382c-66a7-4093-912e-379a2d25ec57?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [! [Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-hugegraph/issues/2813) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
