This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a9c93e4a docs: update doc for guide user to config auth etcd (#8849)
0a9c93e4a is described below

commit 0a9c93e4abc6fb1df58a61e3dcac562ec3c51589
Author: Joanthan Chen <mscb...@gmail.com>
AuthorDate: Tue Feb 28 09:57:19 2023 +0800

    docs: update doc for guide user to config auth etcd (#8849)
---
 docs/en/latest/FAQ.md | 15 +++++++++++++++
 docs/zh/latest/FAQ.md | 15 +++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/docs/en/latest/FAQ.md b/docs/en/latest/FAQ.md
index f5c473403..2a69e33fa 100644
--- a/docs/en/latest/FAQ.md
+++ b/docs/en/latest/FAQ.md
@@ -704,6 +704,21 @@ Another solution is to switch to an experimental 
gRPC-based configuration synchr
     prefix: "/apisix"
 ```
 
+## How does APISIX configure ETCD with authentication?
+
+Suppose you have an ETCD cluster that enables the auth. To access this 
cluster, you need to configure the correct username and password for Apache 
APISIX in `conf/config.yaml`:
+
+```yaml
+deployment:
+  etcd:
+    host:
+      - "http://127.0.0.1:2379";
+    user: etcd_user             # username for etcd
+    password: etcd_password     # password for etcd
+```
+
+For other ETCD configurations, such as expiration times, retries, and so on, 
you can refer to the `ETCD` section in the `conf/config-default.yaml` file.
+
 ## Where can I find more answers?
 
 You can find more answers on:
diff --git a/docs/zh/latest/FAQ.md b/docs/zh/latest/FAQ.md
index a201bc4ab..7335e46b8 100644
--- a/docs/zh/latest/FAQ.md
+++ b/docs/zh/latest/FAQ.md
@@ -707,6 +707,21 @@ make GOOS=linux GOARCH=amd64
     prefix: "/apisix"
 ```
 
+## APISIX 如何配置带认证的 ETCD?
+
+假设您有一个启用身份验证的 ETCD 集群。要访问该集群,需要在 `conf/config.yaml` 中为 Apache APISIX 
配置正确的用户名和密码:
+
+```yaml
+deployment:
+  etcd:
+    host:
+      - "http://127.0.0.1:2379";
+    user: etcd_user             # username for etcd
+    password: etcd_password     # password for etcd
+```
+
+关于 ETCD 的其他配置,比如过期时间、重试次数等等,你可以参考 `conf/config-default.yaml` 文件中的 `ETCD` 部分。
+
 ## 如果在使用 APISIX 过程中遇到问题,我可以在哪里寻求更多帮助?
 
 - [Apache APISIX Slack Channel](/docs/general/join/#加入-slack-频道):加入后请选择 
channel-apisix 频道,即可通过此频道进行 APISIX 相关问题的提问。

Reply via email to