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
Merge pull request #7228 from Infisical/PAM-329
Andre992ed1916b31
diff --cc backend/src/ee/services/pam-account/pam-account-schemas.tsindex 239c550702,5d32b1d459..c7d3fe3644--- a/backend/src/ee/services/pam-account/pam-account-schemas.ts+++ b/backend/src/ee/services/pam-account/pam-account-schemas.ts@@@ -531,15 -531,70 +531,63 @@@ export const ACCOUNT_TYPE_CONFIGS =connectionDetails: z.object({roleArn: z.string().trim().min(1).max(2048)}),- credentials: z.object({- targetRoleArn: z.string().trim().min(1).max(2048)- }),- sanitizedCredentials: z.object({- targetRoleArn: z.string().optional()- }),+ credentials: z.object({}),+ sanitizedCredentials: z.object({}),ui: {roleArn: {- label: "PAM Role ARN",- tooltip: "The ARN of the IAM role that Infisical assumes to broker access to the target role."- },- targetRoleArn: {- label: "Target Role ARN",- tooltip: "The ARN of the IAM role the user will assume when accessing this account."+ label: "Role ARN",+ tooltip:+ "The ARN of the IAM role Infisical assumes when accessing this account. Its trust policy must allow Infisical using your Infisical Organization ID as the External ID.\n\nOrganization ID: {{organizationId}}"}}+ },++ [PamAccountType.AzureCli]: {+ name: "Azure CLI",+ icon: "Microsoft Azure.png",+ connectionDetails: z.object({+ tenantId: z+ .string()+ .trim()+ .min(1)+ .max(255)+ .regex(new RE2(/^[A-Za-z0-9.-]+$/), "Must be a valid Azure tenant ID or domain"),+ subscriptionId: z+ .string()+ .trim()+ .refine((v) => v === "" || z.string().uuid().safeParse(v).success, {+ message: "Must be a valid Azure subscription ID"+ })+ .transform((v) => v || undefined)+ .optional()+ }),+ credentials: z.object({+ clientId: z.string().trim().uuid("Must be a valid Azure application (client) ID"),+ clientSecret: z.string().trim().min(1).max(512)+ }),+ sanitizedCredentials: z.object({+ clientId: z.string().optional()+ }),+ ui: {+ tenantId: {+ label: "Tenant ID",+ tooltip: "The Microsoft Entra ID (Azure AD) directory (tenant) ID the service principal belongs to."+ },+ subscriptionId: {+ label: "Subscription ID",+ tooltip: "Optional. The Azure subscription the CLI session defaults to (az account set)."+ },+ clientId: {+ label: "Client ID",+ tooltip: "The application (client) ID of the service principal Infisical brokers access to."+ },+ clientSecret: {+ label: "Client Secret",+ widget: PamFieldWidget.Password,+ secret: true,+ tooltip: "A client secret for the service principal. Stored encrypted and never returned in read responses."+ }+ }}} as const satisfies Partial<Record<