edgedb-docker icon indicating copy to clipboard operation
edgedb-docker copied to clipboard

Setting a tenant breaks the bootstrap process

Open extsoft opened this issue 2 years ago • 0 comments

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.

extsoft avatar Aug 07 '23 17:08 extsoft