I can't login ui
Hello, I can't login in edgedb ui
reproduction:
# compose.yml
services:
edgedb:
image: edgedb/edgedb:5.7
depends_on:
postgres:
condition: service_healthy
environment:
EDGEDB_SERVER_ADMIN_UI: enabled
EDGEDB_SERVER_SECURITY: insecure_dev_mode
EDGEDB_SERVER_BACKEND_DSN: "postgresql://my_user:my_password@postgres:5432/postgres"
volumes:
- "./edgedb-data:/var/lib/edgedb/data"
- "./dbschema:/dbschema"
ports:
- "5656:5656"
CLI
gel -P 5656 instance link --trust-tls-cert my_instance
gel -I my_instance ui
Go to browser and enter URL http://localhost:5656/ui
I see the login and I DONT KNOW THE CREDENCIALS BY DEFAULT
In docs misunderstanding the auth tab (because it's not about UI) and I try to add environment EDGEDB_SERVER_PASSWORD it doesn't work
The issue is with insecure_dev_mode the server DOES NOT set any password and defaults to Trust auth, and EDGEDB_SERVER_PASSWORD is only applied during first server boot on a given _BACKEND_DSN or data directory. You can explicitly set the password on the default role:
ALTER ROLE edgedb SET password := "password";
and then login with edgedb / password
(NOTE, in version 6.0 the default role has been changed to admin).
We're also fixing the CLI to integrate with docker-compose better: geldata/gel-cli#1521