From 2ce981d652df0225d862fbcf4e28791091fc8b8f Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Tue, 21 Nov 2023 15:10:16 +0800 Subject: [PATCH] ci(services/etcd): Use ALLOW_NONE_AUTHENTICATION as workaround (#3638) * ci: Fix etcd with tls and auth failed to start Signed-off-by: Xuanwo * ci(services/etcd): Use ALLOW_NONE_AUTHENTICATION as workaround Signed-off-by: Xuanwo * Remove user & passname Signed-off-by: Xuanwo --------- Signed-off-by: Xuanwo --- .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 ea6f494d50ed..2bb51ac77ad7 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 a1a4aea52fce..360e2458a75f 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