Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion backend/modules/tenant/usecase/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,14 @@ func normalizeHealHost(raw string) string {
if h, _, err := net.SplitHostPort(raw); err == nil {
raw = h
}
return strings.ToLower(raw)
raw = strings.ToLower(raw)
// Single-label hosts ("backend", "localhost", any compose service name)
// are internal identities, never the public domain the admin browsed to.
// Real user-facing hosts are FQDNs (dotted) or bare IP literals.
if !strings.Contains(raw, ".") && net.ParseIP(raw) == nil {
return ""
}
return raw
}

func provisionAdmin(ctx context.Context, admin connectors.UserProvisioner, tenantID uuid.UUID, email, password string, invite bool) error {
Expand Down
Loading