Describe the bug
In the latest v2.78.15 release of Supabase Realtime, the service requires the DASHBOARD_USER environment variable to be set. If it's missing, the container fails to boot, even when performing core tasks like database migrations (bin/migrate). This causes a complete crash loop for self-hosted instances that don't have this variable previously configured.
Additionally, the Realtime Dashboard links (e.g., /inspector, /status) are all absolute paths, which breaks the UI when the service is hosted behind a reverse proxy sub-path (e.g., domain.com/realtime-dashboard/).
To Reproduce
- Use docker image
supabase/realtime:v2.78.15.
- Do not provide
DASHBOARD_USER in the environment variables.
- Run the container or manually execute
bin/migrate.
- See error:
** (RuntimeError) DASHBOARD_USER is not set originating from runtime.exs:423.
Expected behavior
- The
DASHBOARD_USER check should be optional or deferred until the dashboard is actually accessed, allowing core service startup and migrations to proceed even if credentials are not yet set.
- The dashboard should support sub-path hosting via an environment variable (like
ROOT_PATH), ensuring internal links and assets don't assume the root / path.
System information
- OS: Linux
- Version: Realtime v2.78.15 (Self-hosted)
- Setup: Docker Compose behind Kong Gateway
Additional context
The transition to mandatory dashboard credentials for migrations seems to be a breaking change introduced accidentally during the ZTA implementation (#1752).
Describe the bug
In the latest v2.78.15 release of Supabase Realtime, the service requires the
DASHBOARD_USERenvironment variable to be set. If it's missing, the container fails to boot, even when performing core tasks like database migrations (bin/migrate). This causes a complete crash loop for self-hosted instances that don't have this variable previously configured.Additionally, the Realtime Dashboard links (e.g.,
/inspector,/status) are all absolute paths, which breaks the UI when the service is hosted behind a reverse proxy sub-path (e.g.,domain.com/realtime-dashboard/).To Reproduce
supabase/realtime:v2.78.15.DASHBOARD_USERin the environment variables.bin/migrate.** (RuntimeError) DASHBOARD_USER is not setoriginating fromruntime.exs:423.Expected behavior
DASHBOARD_USERcheck should be optional or deferred until the dashboard is actually accessed, allowing core service startup and migrations to proceed even if credentials are not yet set.ROOT_PATH), ensuring internal links and assets don't assume the root/path.System information
Additional context
The transition to mandatory dashboard credentials for migrations seems to be a breaking change introduced accidentally during the ZTA implementation (#1752).