Skip to content

[Question] clear API also delete graph username/password (Auth info) #2413

Answered by Z-HUANT
turkeymz asked this question in Q&A
Discussion options

You must be logged in to vote

@turkeymz 后续新版本会对 Auth 数据进行隔离,你可以先把 Auth 数据单独存储在一个 Graph 中,也可以避免 Clear API 删除,操作步骤参考:

(推荐) 一个 Server 中配置两个 Graph 的方案:

  1. 一个 Server 进程中配置两个 Graph, 一个用户数据图, 一个事 Auth 专用图
  2. 复制 conf/graphs 文件夹下的 hugegraph.properties,命名为 auth.properties,用于存储 auth 信息,记得修改里面的 store 属性
  3. 修改 conf 文件夹下的 rest-server.properties 的 auth.graph_store 属性,value 值为 auth,让 auth 信息存储在 auth.properties 配置的 store 数据库
  4. 执行 init-store 会初始化两个数据库(hugegraph.properties、auth.properties),admin 账号存储在 auth.properties
  5. 启动 HugeGraph,执行 Clear API 只会删除 hugegraph.properties 的数据,不会删除 auth.properties 的数据

注: 如果生产环境已有 ≥ 2 个 Server:

  1. 新开一个 Auth Server 单独存储 Auth 数据
  2. Auth Server 配置参考:https://hugegraph.apache.org/cn/docs/config/config-authentication/
  3. 其他 Server…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by imbajin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
4 participants
Converted from issue

This discussion was converted from issue #2323 on January 11, 2024 02:31.