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

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 2ce981d65 ci(services/etcd): Use ALLOW_NONE_AUTHENTICATION as 
workaround (#3638)
2ce981d65 is described below

commit 2ce981d652df0225d862fbcf4e28791091fc8b8f
Author: Xuanwo <[email protected]>
AuthorDate: Tue Nov 21 15:10:16 2023 +0800

    ci(services/etcd): Use ALLOW_NONE_AUTHENTICATION as workaround (#3638)
    
    * ci: Fix etcd with tls and auth failed to start
    
    Signed-off-by: Xuanwo <[email protected]>
    
    * ci(services/etcd): Use ALLOW_NONE_AUTHENTICATION as workaround
    
    Signed-off-by: Xuanwo <[email protected]>
    
    * Remove user & passname
    
    Signed-off-by: Xuanwo <[email protected]>
    
    ---------
    
    Signed-off-by: Xuanwo <[email protected]>
---
 .github/services/etcd/etcd-tls/action.yml       | 2 --
 fixtures/etcd/docker-compose-standalone-tls.yml | 7 ++++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/.github/services/etcd/etcd-tls/action.yml 
b/.github/services/etcd/etcd-tls/action.yml
index ea6f494d5..2bb51ac77 100644
--- a/.github/services/etcd/etcd-tls/action.yml
+++ b/.github/services/etcd/etcd-tls/action.yml
@@ -37,8 +37,6 @@ runs:
         cat << EOF >> $GITHUB_ENV
         OPENDAL_ETCD_ENDPOINTS=https://127.0.0.1:2379
         OPENDAL_ETCD_ROOT=/tmp/opendal
-        OPENDAL_ETCD_USERNAME=root
-        OPENDAL_ETCD_PASSWORD=opendal
         OPENDAL_ETCD_CA_PATH=/tmp/etcd/ca.pem
         OPENDAL_ETCD_CERT_PATH=/tmp/etcd/client.pem
         OPENDAL_ETCD_KEY_PATH=/tmp/etcd/client-key.pem
diff --git a/fixtures/etcd/docker-compose-standalone-tls.yml 
b/fixtures/etcd/docker-compose-standalone-tls.yml
index a1a4aea52..360e2458a 100644
--- a/fixtures/etcd/docker-compose-standalone-tls.yml
+++ b/fixtures/etcd/docker-compose-standalone-tls.yml
@@ -29,7 +29,12 @@ services:
       - ./client-key.pem:/opt/bitnami/etcd/client-key.pem
       - ./client.pem:/opt/bitnami/etcd/client.pem
     environment:
-      ETCD_ROOT_PASSWORD: opendal
+      # Etcd returns `MY_STS_NAME` unbound error if `ETCD_ROOT_PASSWORD` has 
been set.
+      # We place this trick to make etcd happy.
+      #
+      # Remove this after https://github.com/bitnami/containers/issues/53068 
closed.
+      # ETCD_ROOT_PASSWORD: opendal
+      ALLOW_NONE_AUTHENTICATION: "yes"
       ETCD_NAME: etcd
       ETCD_LISTEN_CLIENT_URLS: https://0.0.0.0:2379
       ETCD_ADVERTISE_CLIENT_URLS: https://etcd:2379

Reply via email to