Sign-up page is reachable and fillable even when external registration is disabled
Databasus version (screenshot)
v3.60.0 (Helm chart 3.60.0). No screenshot available
Operating system and architecture
Kubernetes (AKS), linux/amd64, deployed via the official Helm chart (oci://ghcr.io/databasus/charts/databasus).
Database type and version (optional, for DB-related bugs)
N/A — this is a frontend/auth-flow bug, unrelated to any backed-up database.
Describe the bug
What happened: With the instance-level "external registration" setting turned off, the sign-up page is still reachable and fully fillable from the sign-in screen. Submitting it does get correctly rejected server-side with "external registration is disabled" — no unauthorized account is actually created — but the UI never reflects the setting, so it looks like registration is still open.
What I expected: When external registration is disabled, the "Sign up" link/form should be hidden or visibly disabled on the sign-in screen, not just rejected on submit.
Steps to reproduce
- As an admin, disable "external registration" in instance settings.
- As a logged-out visitor, open the sign-in page.
- Click "Sign up" (or navigate to the sign-up view directly).
- Observe the full sign-up form renders and accepts input, with no indication registration is closed.
- (Submitting confirms the backend does reject it with "external registration is disabled" — the bug is purely that the form is reachable in the first place.)
Have you asked AI how to solve the issue?
- Claude Sonnet 4.6 or newer
- ChatGPT 5.2 or newer
- No
Additional context / logs
Investigated with Claude Code, which traced the behavior through the source:
frontend/src/pages/AuthPageComponent.tsxwiresonSwitchToSignUp={() => setAuthMode('signUp')}onSignInComponentunconditionally — no check against the registration setting before allowing navigation to the sign-up view.frontend/src/features/users/ui/SignUpComponent.tsxonly consumesisClaimingInstance(whether this is the very first bootstrap admin); it never fetches or checks the external-registration setting to hide/disable itself.- The backend enforcement is correct and is the only thing actually gating this:
backend/internal/features/users/services/user_services.go,createAccountClaimingEmptyInstance()callscheckExternalRegistrationAllowed()wheneverisInstanceUnclaimed()is false, returning"external registration is disabled"and refusing to create the account.
So this is a UX/consistency gap, not a security issue — no account can actually be created while the setting is off, but the sign-up page should reflect that state instead of silently rejecting on submit.
Source: databasus/databasus