Skip to content

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

address review

x69ad1ac1e55b
diff --git a/backend/src/ee/routes/v1/pam-routers/pam-account-router.ts b/backend/src/ee/routes/v1/pam-routers/pam-account-router.ts
index 8dc8a28d35..558f78884a 100644
--- a/backend/src/ee/routes/v1/pam-routers/pam-account-router.ts
+++ b/backend/src/ee/routes/v1/pam-routers/pam-account-router.ts
@@ -696,7 +696,7 @@ export const registerPamAccountRouter = async (server: FastifyZodProvider) => {
type: EventType.PAM_ACCOUNT_SSH_CA_CREATE,
metadata: {
accountId: req.params.accountId,
- keyAlgorithm: result.keyAlgorithm!
+ keyAlgorithm: result.keyAlgorithm || "unknown"
}
}
});
@@ -766,7 +766,7 @@ export const registerPamAccountRouter = async (server: FastifyZodProvider) => {
type: EventType.PAM_ACCOUNT_SSH_CA_CREATE,
metadata: {
accountId: req.params.accountId,
- keyAlgorithm: result.keyAlgorithm!
+ keyAlgorithm: result.keyAlgorithm || "unknown"
}
}
});