Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
add org and actor info to log
Matheus Nogueira334d0c8209e6
diff --git a/backend/src/server/plugins/error-handler.ts b/backend/src/server/plugins/error-handler.tsindex d56da8bf67..c6d80d1276 100644--- a/backend/src/server/plugins/error-handler.ts+++ b/backend/src/server/plugins/error-handler.ts@@ -25,6 +25,7 @@ import {import { classifyError } from "@app/lib/errors/classify";import { RequestContextKey } from "@app/lib/request-context/request-context-keys";import { coreHttpErrorCounter, rateLimitExceededCounter } from "@app/lib/telemetry/metrics";+import { getTelemetryDistinctId } from "../lib/telemetry";enum JWTErrors {JwtExpired = "jwt expired",@@ -86,6 +87,10 @@ export const fastifyErrHandler = fastifyPlugin(async (server: FastifyZodProvidererrorMessage: error.message,route: req.routeOptions?.url,method: req.method,+ orgId: req.auth?.orgId,+ realIp: req.realIp,+ actor: req.auth?.actor,+ actorId: getTelemetryDistinctId(req),details: (error as { details?: unknown }).details},`client error: ${error.name}`