edgedb / edgedb-docker

Official Docker Image packaging for EdgeDB
81 stars 16 forks source link

Setting a tenant breaks the bootstrap process #81

Open extsoft opened 11 months ago

extsoft commented 11 months ago

Docker tag: 3.2

Setup: The EdgeDB docker container connects to a Postgres DNS.

Default tenant:

EDGEDB_SERVER_BACKEND_DSN="postgre......"
EDGEDB_SERVER_USER=someuser
EDGEDB_SERVER_PASSWORD=somepassword
EDGEDB_SERVER_PORT=21111
EDGEDB_SERVER_TLS_CERT_MODE=generate_self_signed
EDGEDB_SERVER_ADMIN_UI= enabled

Custom tenant:

EDGEDB_SERVER_BACKEND_DSN="postgre......"
EDGEDB_SERVER_USER=someuser
EDGEDB_SERVER_PASSWORD=somepassword
EDGEDB_SERVER_PORT=21111
EDGEDB_SERVER_TLS_CERT_MODE=generate_self_signed
EDGEDB_SERVER_ADMIN_UI=enabled
EDGEDB_SERVER_TENANT_ID=edgedb3x

The default tenant configuration creates the new someuseruser. However, the custom tenant configuration does not create the someuser user.

P.S. As a temporary workaround, I add EDGEDB_SERVER_BOOTSTRAP_COMMAND="CREATE SUPERUSER ROLE 'someuser' { SET password := 'somepassword'; }" to the custom tenant configuration.