GitHub user Z-HUANT added a comment to the discussion: [Question] clear API 
also delete graph username/password (Auth info)

@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/
2. 其他 Server 修改 rest-server.properties 的 auth.remote_url 属性,指向 Auth Server
4. 其他 Server 执行 Clear API 只会删除自己的数据,不会影响 Auth Server 的账号信息

GitHub link: 
https://github.com/apache/incubator-hugegraph/discussions/2413#discussioncomment-8089279

----
This is an automatically sent email for dev@hugegraph.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@hugegraph.apache.org

Reply via email to