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

I can't login ui

Open manazoid opened this issue 1 year ago • 2 comments

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

manazoid avatar Dec 25 '24 10:12 manazoid

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).

elprans avatar Mar 05 '25 01:03 elprans

We're also fixing the CLI to integrate with docker-compose better: geldata/gel-cli#1521

elprans avatar Mar 05 '25 01:03 elprans