Skip to content

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.

fix: remove whitespace from sso cert (#8141)

Nityananda Gohain44ea2370393c
diff --git a/pkg/types/domain.go b/pkg/types/domain.go
index 1ea6eb50de..31315e9cc3 100644
--- a/pkg/types/domain.go
+++ b/pkg/types/domain.go
@@ -102,7 +102,9 @@ func (od *GettableOrgDomain) GetSAMLIdpURL() string {
func (od *GettableOrgDomain) GetSAMLCert() string {
if od.SamlConfig != nil {
- return od.SamlConfig.SamlCert
+ // remove any whitespaces from the cert
+ cert := strings.ReplaceAll(od.SamlConfig.SamlCert, " ", "")
+ return cert
}
return ""
}