From 5ed359e72bd03f11d054d2302b75130a46e7a6be Mon Sep 17 00:00:00 2001 From: chohee Date: Tue, 2 Dec 2025 15:35:31 +0800 Subject: [PATCH 1/3] chore: remove outdated ConfigAuthenticator --- content/cn/docs/config/config-guide.md | 7 +------ content/cn/docs/config/config-option.md | 4 +--- content/en/docs/config/config-guide.md | 7 +------ content/en/docs/config/config-option.md | 4 +--- 4 files changed, 4 insertions(+), 18 deletions(-) diff --git a/content/cn/docs/config/config-guide.md b/content/cn/docs/config/config-guide.md index efb92c2c1..f791fee37 100644 --- a/content/cn/docs/config/config-guide.md +++ b/content/cn/docs/config/config-guide.md @@ -173,8 +173,7 @@ arthas.ip=127.0.0.1 arthas.disabled_commands=jad # authentication configs -# choose 'org.apache.hugegraph.auth.StandardAuthenticator' or -# 'org.apache.hugegraph.auth.ConfigAuthenticator' +# choose 'org.apache.hugegraph.auth.StandardAuthenticator' or a custom implementation #auth.authenticator= # for StandardAuthenticator mode @@ -182,10 +181,6 @@ arthas.disabled_commands=jad # auth client config #auth.remote_url=127.0.0.1:8899,127.0.0.1:8898,127.0.0.1:8897 -# for ConfigAuthenticator mode -#auth.admin_token= -#auth.user_tokens=[] - # TODO: Deprecated & removed later (useless from version 1.5.0) # rpc server configs for multi graph-servers or raft-servers #rpc.server_host=127.0.0.1 diff --git a/content/cn/docs/config/config-option.md b/content/cn/docs/config/config-option.md index 274dec6de..e406e3d22 100644 --- a/content/cn/docs/config/config-option.md +++ b/content/cn/docs/config/config-option.md @@ -41,10 +41,8 @@ weight: 2 | batch.max_vertices_per_batch | 500 | The maximum number of vertices submitted per batch. | | batch.max_write_ratio | 50 | The maximum thread ratio for batch writing, only take effect if the batch.max_write_threads is 0. | | batch.max_write_threads | 0 | The maximum threads for batch writing, if the value is 0, the actual value will be set to batch.max_write_ratio * restserver.max_worker_threads. | -| auth.authenticator | | The class path of authenticator implementation. e.g., org.apache.hugegraph.auth.StandardAuthenticator, or org.apache.hugegraph.auth.ConfigAuthenticator. | -| auth.admin_token | 162f7848-0b6d-4faf-b557-3a0797869c55 | Token for administrator operations, only for org.apache.hugegraph.auth.ConfigAuthenticator. | +| auth.authenticator | | The class path of authenticator implementation. e.g., org.apache.hugegraph.auth.StandardAuthenticator. | | auth.graph_store | hugegraph | The name of graph used to store authentication information, like users, only for org.apache.hugegraph.auth.StandardAuthenticator. | -| auth.user_tokens | [hugegraph:9fd95c9c-711b-415b-b85f-d4df46ba5c31] | The map of user tokens with name and password, only for org.apache.hugegraph.auth.ConfigAuthenticator. | | auth.audit_log_rate | 1000.0 | The max rate of audit log output per user, default value is 1000 records per second. | | auth.cache_capacity | 10240 | The max cache capacity of each auth cache item. | | auth.cache_expire | 600 | The expiration time in seconds of vertex cache. | diff --git a/content/en/docs/config/config-guide.md b/content/en/docs/config/config-guide.md index 979c49332..48e5e08ca 100644 --- a/content/en/docs/config/config-guide.md +++ b/content/en/docs/config/config-guide.md @@ -171,8 +171,7 @@ arthas.ip=127.0.0.1 arthas.disabled_commands=jad # authentication configs -# choose 'org.apache.hugegraph.auth.StandardAuthenticator' or -# 'org.apache.hugegraph.auth.ConfigAuthenticator' +# choose 'org.apache.hugegraph.auth.StandardAuthenticator' or a custom implementation #auth.authenticator= # for StandardAuthenticator mode @@ -180,10 +179,6 @@ arthas.disabled_commands=jad # auth client config #auth.remote_url=127.0.0.1:8899,127.0.0.1:8898,127.0.0.1:8897 -# for ConfigAuthenticator mode -#auth.admin_token= -#auth.user_tokens=[] - # TODO: Deprecated & removed later (useless from version 1.5.0) # rpc server configs for multi graph-servers or raft-servers #rpc.server_host=127.0.0.1 diff --git a/content/en/docs/config/config-option.md b/content/en/docs/config/config-option.md index c018ef293..fa09ee657 100644 --- a/content/en/docs/config/config-option.md +++ b/content/en/docs/config/config-option.md @@ -41,10 +41,8 @@ Corresponding configuration file `rest-server.properties` | batch.max_vertices_per_batch | 500 | The maximum number of vertices submitted per batch. | | batch.max_write_ratio | 50 | The maximum thread ratio for batch writing, only take effect if the batch.max_write_threads is 0. | | batch.max_write_threads | 0 | The maximum threads for batch writing, if the value is 0, the actual value will be set to batch.max_write_ratio * restserver.max_worker_threads. | -| auth.authenticator | | The class path of authenticator implementation. e.g., org.apache.hugegraph.auth.StandardAuthenticator, or org.apache.hugegraph.auth.ConfigAuthenticator. | -| auth.admin_token | 162f7848-0b6d-4faf-b557-3a0797869c55 | Token for administrator operations, only for org.apache.hugegraph.auth.ConfigAuthenticator. | +| auth.authenticator | | The class path of authenticator implementation. e.g., org.apache.hugegraph.auth.StandardAuthenticator. | | auth.graph_store | hugegraph | The name of graph used to store authentication information, like users, only for org.apache.hugegraph.auth.StandardAuthenticator. | -| auth.user_tokens | [hugegraph:9fd95c9c-711b-415b-b85f-d4df46ba5c31] | The map of user tokens with name and password, only for org.apache.hugegraph.auth.ConfigAuthenticator. | | auth.audit_log_rate | 1000.0 | The max rate of audit log output per user, default value is 1000 records per second. | | auth.cache_capacity | 10240 | The max cache capacity of each auth cache item. | | auth.cache_expire | 600 | The expiration time in seconds of vertex cache. | From c472319f704567908e1d3be871e79006b9dde9c8 Mon Sep 17 00:00:00 2001 From: ChoHee Date: Tue, 2 Dec 2025 19:09:21 +0800 Subject: [PATCH 2/3] Update content/cn/docs/config/config-option.md Add description. Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- content/cn/docs/config/config-option.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/cn/docs/config/config-option.md b/content/cn/docs/config/config-option.md index e406e3d22..0bf56af8b 100644 --- a/content/cn/docs/config/config-option.md +++ b/content/cn/docs/config/config-option.md @@ -41,7 +41,7 @@ weight: 2 | batch.max_vertices_per_batch | 500 | The maximum number of vertices submitted per batch. | | batch.max_write_ratio | 50 | The maximum thread ratio for batch writing, only take effect if the batch.max_write_threads is 0. | | batch.max_write_threads | 0 | The maximum threads for batch writing, if the value is 0, the actual value will be set to batch.max_write_ratio * restserver.max_worker_threads. | -| auth.authenticator | | The class path of authenticator implementation. e.g., org.apache.hugegraph.auth.StandardAuthenticator. | +| auth.authenticator | | The class path of authenticator implementation. e.g., org.apache.hugegraph.auth.StandardAuthenticator, or a custom implementation. | | auth.graph_store | hugegraph | The name of graph used to store authentication information, like users, only for org.apache.hugegraph.auth.StandardAuthenticator. | | auth.audit_log_rate | 1000.0 | The max rate of audit log output per user, default value is 1000 records per second. | | auth.cache_capacity | 10240 | The max cache capacity of each auth cache item. | From 4b9f9145ab4343a054f5e7057c9c587a1f61bd82 Mon Sep 17 00:00:00 2001 From: ChoHee Date: Tue, 2 Dec 2025 19:09:32 +0800 Subject: [PATCH 3/3] Update content/en/docs/config/config-option.md Add description. Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- content/en/docs/config/config-option.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/config/config-option.md b/content/en/docs/config/config-option.md index fa09ee657..b0d937b66 100644 --- a/content/en/docs/config/config-option.md +++ b/content/en/docs/config/config-option.md @@ -41,7 +41,7 @@ Corresponding configuration file `rest-server.properties` | batch.max_vertices_per_batch | 500 | The maximum number of vertices submitted per batch. | | batch.max_write_ratio | 50 | The maximum thread ratio for batch writing, only take effect if the batch.max_write_threads is 0. | | batch.max_write_threads | 0 | The maximum threads for batch writing, if the value is 0, the actual value will be set to batch.max_write_ratio * restserver.max_worker_threads. | -| auth.authenticator | | The class path of authenticator implementation. e.g., org.apache.hugegraph.auth.StandardAuthenticator. | +| auth.authenticator | | The class path of authenticator implementation. e.g., org.apache.hugegraph.auth.StandardAuthenticator, or a custom implementation. | | auth.graph_store | hugegraph | The name of graph used to store authentication information, like users, only for org.apache.hugegraph.auth.StandardAuthenticator. | | auth.audit_log_rate | 1000.0 | The max rate of audit log output per user, default value is 1000 records per second. | | auth.cache_capacity | 10240 | The max cache capacity of each auth cache item. |