Skip to content

Commit

Permalink
ci(services/etcd): Use ALLOW_NONE_AUTHENTICATION as workaround (#3638)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
Xuanwo authored Nov 21, 2023
1 parent d09c9c9 commit 2ce981d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/services/etcd/etcd-tls/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion fixtures/etcd/docker-compose-standalone-tls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ce981d

Please sign in to comment.