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
Cleanup rbac.go
Ahsan Barkatib0f62daa2427
diff --git a/pkg/query-service/auth/rbac.go b/pkg/query-service/auth/rbac.goindex 38ae283bb2..44f65576ed 100644--- a/pkg/query-service/auth/rbac.go+++ b/pkg/query-service/auth/rbac.go@@ -3,7 +3,6 @@ package authimport ("context""net/http"- "strings""github.com/pkg/errors""go.signoz.io/signoz/pkg/query-service/constants"@@ -49,19 +48,6 @@ func InitAuthCache(ctx context.Context) error {return nil}-func GetAuthorizationToken(r *http.Request) string {- authHeader := r.Header.Get("Authorization")- if authHeader == "" {- return ""- }-- authHeaderParts := strings.Fields(authHeader)- if len(authHeaderParts) != 2 || strings.ToLower(authHeaderParts[0]) != "bearer" {- return ""- }- return authHeaderParts[1]-}-func GetUserFromRequest(r *http.Request) (*model.UserPayload, error) {accessJwt, err := ExtractJwtFromRequest(r)if err != nil {