Skip to content

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

merge: resolve conflict with pam-revamp

bernie-g20fd2e46d50b
diff --cc backend/src/ee/routes/v1/pam-routers/pam-account-router.ts
index 417eff6a19,170ff3af5f..c276ccbe11
--- a/backend/src/ee/routes/v1/pam-routers/pam-account-router.ts
+++ b/backend/src/ee/routes/v1/pam-routers/pam-account-router.ts
@@@ -113,9 -121,9 +121,9 @@@ const registerPerTypeEndpoints =
}
},
config: { rateLimit: writeLimit },
- onRequest: verifyAuth([AuthMode.JWT]),
+ onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
handler: async (req) => {
- const account = await server.services.pamAccount.create({
+ const { corsProbeUrl, ...account } = await server.services.pamAccount.create({
accountType,
...req.body,
projectId: req.internalPamProjectId,
@@@ -187,9 -201,9 +201,9 @@@
}
},
config: { rateLimit: writeLimit },
- onRequest: verifyAuth([AuthMode.JWT]),
+ onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
handler: async (req) => {
- const account = await server.services.pamAccount.update({
+ const { corsProbeUrl, ...account } = await server.services.pamAccount.update({
accountId: req.params.accountId,
accountType,
...req.body,
diff --cc backend/src/ee/routes/v1/pam-routers/pam-account-template-router.ts
index 4cda97f1c1,d327fe85c5..567eb60f99
--- a/backend/src/ee/routes/v1/pam-routers/pam-account-template-router.ts
+++ b/backend/src/ee/routes/v1/pam-routers/pam-account-template-router.ts
@@@ -115,9 -118,9 +118,9 @@@ export const registerPamAccountTemplate
}
},
config: { rateLimit: writeLimit },
- onRequest: verifyAuth([AuthMode.JWT]),
+ onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
handler: async (req) => {
- const template = await server.services.pamAccountTemplate.create({
+ const { corsProbeUrl, ...template } = await server.services.pamAccountTemplate.create({
...req.body,
projectId: req.internalPamProjectId,
actorId: req.permission.id,
@@@ -180,9 -186,9 +186,9 @@@
}
},
config: { rateLimit: writeLimit },
- onRequest: verifyAuth([AuthMode.JWT]),
+ onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
handler: async (req) => {
- const template = await server.services.pamAccountTemplate.update({
+ const { corsProbeUrl, ...template } = await server.services.pamAccountTemplate.update({
templateId: req.params.templateId,
...req.body,
projectId: req.internalPamProjectId,
diff --cc frontend/src/pages/pam/PamAccountsPage/components/AccountDetailSheet.tsx
index 7e5d2a91a5,784d2acae7..2f5c7f0a55
--- a/frontend/src/pages/pam/PamAccountsPage/components/AccountDetailSheet.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/components/AccountDetailSheet.tsx
@@@ -38,7 -44,7 +44,8 @@@ import
} from "@app/components/v3";
import { Skeleton } from "@app/components/v3/generic/Skeleton";
import { useOrganization, useUser } from "@app/context";
+import { useGetIdentityMembershipOrgs } from "@app/hooks/api";
+ import { useListAppConnections } from "@app/hooks/api/appConnections";
import { gatewayPoolsQueryKeys } from "@app/hooks/api/gateway-pools/queries";
import { gatewaysQueryKeys } from "@app/hooks/api/gateways/queries";
import { useGetOrganizationGroups } from "@app/hooks/api/organization/queries";