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): pass accessDurationMax through AD-account approval flow
bernie-gbcf695d799ba
diff --git a/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsx b/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsxindex 979e97ca34..dd9b833f44 100644--- a/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsx+++ b/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsx@@ -369,7 +369,7 @@ const PageContent = () => {domainType={account.domain.domainType}domainId={account.domain.id}onSelect={async (resource) => {- const { requiresApproval } = await checkPolicyMatch({+ const { requiresApproval, constraints } = await checkPolicyMatch({policyType: ApprovalPolicyType.PamAccess,projectId: projectId!,inputs: {@@ -382,7 +382,8 @@ const PageContent = () => {handlePopUpOpen("requestAccount", {resourceName: resource.name,accountName: account.name,- accountAccessed: true+ accountAccessed: true,+ accessDurationMax: constraints?.accessDuration.max});return;}