Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: updated redaction and moved it back

=e303c731a672
diff --git a/backend/src/lib/logger/logger.ts b/backend/src/lib/logger/logger.ts
index 219b4a9a7d..0675e2769a 100644
--- a/backend/src/lib/logger/logger.ts
+++ b/backend/src/lib/logger/logger.ts
@@ -86,7 +86,9 @@ const redactedKeys = [
"password",
"config",
"bindPass",
- "bindDN"
+ "bindDN",
+ "x-vault-token",
+ "X-VAULT-TOKEN"
];
const UNKNOWN_REQUEST_ID = "UNKNOWN_REQUEST_ID";
diff --git a/backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts b/backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts
index b3a3b3e60d..82cc463ba2 100644
--- a/backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts
+++ b/backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts
@@ -222,7 +222,7 @@ export const getHCVaultAccessToken = async (
return tokenResp.data.auth.client_token;
} catch (e: unknown) {
- logger.error(`Failed to validate connection: ${(e as Error)?.message || ""}`);
+ logger.error(e, "Failed to validate connection");
throw new BadRequestError({
message: "Unable to validate connection: verify credentials"
});