SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix(saml): handle invalid email domain (#5564)
Prashant Shahiba7e6fcf235d
diff --git a/ee/query-service/dao/sqlite/auth.go b/ee/query-service/dao/sqlite/auth.goindex 4418b04cbf..b8bc5e0fa0 100644--- a/ee/query-service/dao/sqlite/auth.go+++ b/ee/query-service/dao/sqlite/auth.go@@ -20,11 +20,14 @@ import (func (m *modelDao) createUserForSAMLRequest(ctx context.Context, email string) (*basemodel.User, basemodel.BaseApiError) {// get auth domain from email domaindomain, apierr := m.GetDomainByEmail(ctx, email)-if apierr != nil {zap.L().Error("failed to get domain from email", zap.Error(apierr))return nil, model.InternalErrorStr("failed to get domain from email")}+ if domain == nil {+ zap.L().Error("email domain does not match any authenticated domain", zap.String("email", email))+ return nil, model.InternalErrorStr("email domain does not match any authenticated domain")+ }hash, err := baseauth.PasswordHash(utils.GeneratePassowrd())if err != nil {