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
simplify AI comments
x0322051b2355e655a3
diff --git a/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts b/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.tsindex 2c0bab0168..697cb8f62b 100644--- a/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts+++ b/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts@@ -664,8 +664,6 @@ export const registerPamAccountRouter = async (server: FastifyZodProvider) => {req.permission);- // Each console-URL mint produces a fresh authenticated browser session,- // so audit it independently from the originating /access call.await server.services.auditLog.createAuditLog({...req.auditLogInfo,orgId: req.permission.orgId,diff --git a/backend/src/ee/services/pam-account/pam-account-service.ts b/backend/src/ee/services/pam-account/pam-account-service.tsindex 13a78b2574..e7a4ef29a6 100644--- a/backend/src/ee/services/pam-account/pam-account-service.ts+++ b/backend/src/ee/services/pam-account/pam-account-service.ts@@ -893,10 +893,7 @@ export const pamAccountServiceFactory = ({});// Cache the AccessKeyId so /aws-console-url can verify the caller is- // submitting credentials that actually belong to this session, not creds- // from some other AWS role they happen to control. AccessKeyId is a- // non-secret identifier (analogous to a username); the secret/token are- // never stored server-side.+ // submitting credentials that actually belong to this sessionconst ttlSeconds = Math.max(1, Math.floor((credentials.expiresAt.getTime() - Date.now()) / 1000));await keyStore.setItemWithExpiry(KeyStorePrefixes.PamAwsIamAccessKeyId(session.id),@@ -1100,9 +1097,7 @@ export const pamAccountServiceFactory = ({}// Confirm the submitted creds actually belong to this session by comparing- // against the AccessKeyId we stashed at /access time. If the cache entry is- // gone, the session has effectively expired even if the row hasn't been- // marked yet.+ // against the AccessKeyId we stashed at /access timeconst expectedAccessKeyId = await keyStore.getItem(KeyStorePrefixes.PamAwsIamAccessKeyId(sessionId));if (!expectedAccessKeyId) {throw new BadRequestError({