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
fix(pam): remove unsupported min constraint, fix lint err, auto-format cleanup
bernie-g04686bda089f
diff --git a/backend/src/ee/services/pam-resource/pam-resource-fns.ts b/backend/src/ee/services/pam-resource/pam-resource-fns.tsindex daa243e451..1402523737 100644--- a/backend/src/ee/services/pam-resource/pam-resource-fns.ts+++ b/backend/src/ee/services/pam-resource/pam-resource-fns.ts@@ -138,7 +138,10 @@ export const decryptResource = async (model: string;};} catch (err) {- logger.warn({ err, resourceId: resource.id }, "decryptResource: failed to decrypt sessionSummaryConfig, falling back to null");+ logger.warn(+ { err, resourceId: resource.id },+ "decryptResource: failed to decrypt sessionSummaryConfig, falling back to null"+ );}}diff --git a/backend/src/ee/services/pam-session/pam-session-summary-fns.ts b/backend/src/ee/services/pam-session/pam-session-summary-fns.tsindex d8d15ae170..46651ff544 100644--- a/backend/src/ee/services/pam-session/pam-session-summary-fns.ts+++ b/backend/src/ee/services/pam-session/pam-session-summary-fns.ts@@ -100,7 +100,7 @@ const SessionSummarySchema = z.object({warnings: z.array(z.object({text: z.string(),- logIndex: z.number().int().min(1).optional()+ logIndex: z.number().int().optional()}))});diff --git a/backend/src/services/pam-session-expiration/pam-session-expiration-queue.ts b/backend/src/services/pam-session-expiration/pam-session-expiration-queue.tsindex b5e0991b73..572ff888ff 100644--- a/backend/src/services/pam-session-expiration/pam-session-expiration-queue.ts+++ b/backend/src/services/pam-session-expiration/pam-session-expiration-queue.ts@@ -31,7 +31,7 @@ export const pamSessionExpirationServiceFactory = ({const updated = await pamSessionDAL.expireSessionById(sessionId);const session =updated > 0- ? await pamSessionDAL.findById(sessionId).catch((err) => {+ ? await pamSessionDAL.findById(sessionId).catch((err: unknown) => {logger.warn({ sessionId, err },`${QueueName.PamSessionExpiration}: failed to fetch session for AI summary, skipping [sessionId=${sessionId}]`diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionAiInsightsSection.tsx b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionAiInsightsSection.tsxindex d71b825c26..033998f679 100644--- a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionAiInsightsSection.tsx+++ b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionAiInsightsSection.tsx@@ -62,7 +62,9 @@ export const PamSessionAiInsightsSection = ({ session, onWarningClick }: Props){aiInsights.warnings.map((warning, i) => (// eslint-disable-next-line react/no-array-index-key<li key={i} className="text-xs text-amber-300">- {warning.logIndex != null && onWarningClick && session.resourceType !== PamResourceType.SSH ? (+ {warning.logIndex != null &&+ onWarningClick &&+ session.resourceType !== PamResourceType.SSH ? (<buttontype="button"className="inline-flex items-center gap-1.5 text-left underline decoration-dotted underline-offset-2 hover:decoration-solid"