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
feat: azure scim token rotation
Daniel Hougaard9e9cfe3c8c5c
diff --git a/backend/src/lib/api-docs/constants.ts b/backend/src/lib/api-docs/constants.tsindex 1768afeca3..14f37e29af 100644--- a/backend/src/lib/api-docs/constants.ts+++ b/backend/src/lib/api-docs/constants.ts@@ -2782,7 +2782,7 @@ export const SecretSyncs = {AZURE_ENTRA_ID_SCIM: {servicePrincipalId:"The Object ID of the Azure Entra ID Enterprise Application service principal to sync the SCIM token to.",- secretKey: "The key of the Infisical secret whose value will be used as the SCIM provisioning token."+ servicePrincipalDisplayName: "The display name of the Azure Entra ID Enterprise Application service principal."},AZURE_KEY_VAULT: {vaultBaseUrl: "The base URL of the Azure Key Vault to sync secrets to. Example: https://example.vault.azure.net/",diff --git a/backend/src/server/routes/index.ts b/backend/src/server/routes/index.tsindex 7b339c66b9..226c8b80c3 100644--- a/backend/src/server/routes/index.ts+++ b/backend/src/server/routes/index.ts@@ -2175,8 +2175,11 @@ export const registerRoutes = async (const secretSyncService = secretSyncServiceFactory({secretSyncDAL,secretImportDAL,- permissionService,+ secretV2BridgeDAL,+ appConnectionDAL,appConnectionService,+ kmsService,+ permissionService,projectDAL,orgDAL,folderDAL,diff --git a/backend/src/services/secret-sync/azure-entra-id-scim/azure-entra-id-scim-sync-fns.ts b/backend/src/services/secret-sync/azure-entra-id-scim/azure-entra-id-scim-sync-fns.tsindex b13de9a2a0..ef16f222d8 100644--- a/backend/src/services/secret-sync/azure-entra-id-scim/azure-entra-id-scim-sync-fns.ts+++ b/backend/src/services/secret-sync/azure-entra-id-scim/azure-entra-id-scim-sync-fns.ts@@ -18,15 +18,16 @@ export const AzureEntraIdScimSyncFns = {secretMap: TSecretMap,{ appConnectionDAL, kmsService }: TAzureEntraIdScimSyncFactoryDeps): Promise<void> => {- const { servicePrincipalId, secretKey } = secretSync.destinationConfig;+ const { servicePrincipalId } = secretSync.destinationConfig;+ const { secretId } = secretSync.syncOptions;- const secret = secretMap[secretKey];- if (!secret) {+ const secretEntry = Object.entries(secretMap).find(([, s]) => s.id === secretId);+ if (!secretEntry) {throw new SecretSyncError({- error: new Error(`Secret "${secretKey}" not found in source`),- secretKey+ error: new Error(`Secret with ID "${secretId}" not found in source`)});}+ const [, secret] = secretEntry;const accessToken = await getAzureEntraIdConnectionAccessToken(secretSync.connection.id,diff --git a/backend/src/services/secret-sync/azure-entra-id-scim/azure-entra-id-scim-sync-schemas.ts b/backend/src/services/secret-sync/azure-entra-id-scim/azure-entra-id-scim-sync-schemas.tsindex df3b16a1be..b147165a86 100644--- a/backend/src/services/secret-sync/azure-entra-id-scim/azure-entra-id-scim-sync-schemas.ts+++ b/backend/src/services/secret-sync/azure-entra-id-scim/azure-entra-id-scim-sync-schemas.ts@@ -18,11 +18,10 @@ const AzureEntraIdScimSyncDestinationConfigSchema = z.object({.trim().min(1, "Service Principal ID required").describe(SecretSyncs.DESTINATION_CONFIG.AZURE_ENTRA_ID_SCIM.servicePrincipalId),- secretKey: z+ servicePrincipalDisplayName: z.string()- .trim()- .min(1, "Secret key required")- .describe(SecretSyncs.DESTINATION_CONFIG.AZURE_ENTRA_ID_SCIM.secretKey)+ .optional()+ .describe("The display name of the Azure Entra ID Enterprise Application service principal.")});const AzureEntraIdScimSyncOptionsConfig: TSyncOptionsConfig = {@@ -31,9 +30,25 @@ const AzureEntraIdScimSyncOptionsConfig: TSyncOptionsConfig = {supportsDisableSecretDeletion: false};+const AzureEntraIdScimSyncOptionsReadSchema = z.object({+ secretId: z+ .string()+ .uuid()+ .describe("The ID of the Infisical secret whose value will be used as the SCIM provisioning token.")+});++const AzureEntraIdScimSyncOptionsInputSchema = z.object({+ secretKey: z+ .string()+ .trim()+ .min(1, "Secret key is required")+ .describe("The key of the Infisical secret whose value will be used as the SCIM provisioning token.")+});+export const AzureEntraIdScimSyncSchema = BaseSecretSyncSchema(SecretSync.AzureEntraIdScim,- AzureEntraIdScimSyncOptionsConfig+ AzureEntraIdScimSyncOptionsConfig,+ AzureEntraIdScimSyncOptionsReadSchema).extend({destination: z.literal(SecretSync.AzureEntraIdScim),@@ -43,14 +58,16 @@ export const AzureEntraIdScimSyncSchema = BaseSecretSyncSchema(export const CreateAzureEntraIdScimSyncSchema = GenericCreateSecretSyncFieldsSchema(SecretSync.AzureEntraIdScim,- AzureEntraIdScimSyncOptionsConfig+ AzureEntraIdScimSyncOptionsConfig,+ AzureEntraIdScimSyncOptionsInputSchema).extend({destinationConfig: AzureEntraIdScimSyncDestinationConfigSchema});export const UpdateAzureEntraIdScimSyncSchema = GenericUpdateSecretSyncFieldsSchema(SecretSync.AzureEntraIdScim,- AzureEntraIdScimSyncOptionsConfig+ AzureEntraIdScimSyncOptionsConfig,+ AzureEntraIdScimSyncOptionsInputSchema).extend({destinationConfig: AzureEntraIdScimSyncDestinationConfigSchema.optional()});diff --git a/backend/src/services/secret-sync/secret-sync-queue.ts b/backend/src/services/secret-sync/secret-sync-queue.tsindex 80682eae13..4a5468c4f5 100644--- a/backend/src/services/secret-sync/secret-sync-queue.ts+++ b/backend/src/services/secret-sync/secret-sync-queue.ts@@ -295,7 +295,7 @@ export const secretSyncQueueFactory = ({value: secretValue,secretKey});- secretMap[secretKey] = { value: expandedSecretValue || "" };+ secretMap[secretKey] = { value: expandedSecretValue || "", id: secret.id };if (secret.encryptedComment) {const commentValue = decryptSecretValue(secret.encryptedComment);@@ -335,6 +335,7 @@ export const secretSyncQueueFactory = ({skipMultilineEncoding: importedSecret.skipMultilineEncoding,comment: importedSecret.secretComment,value: importedSecret.secretValue || "",+ id: importedSecret.id,secretMetadata: importedSecret.secretMetadata};}diff --git a/backend/src/services/secret-sync/secret-sync-schemas.ts b/backend/src/services/secret-sync/secret-sync-schemas.tsindex 4db0a0833e..2a7ee3b846 100644--- a/backend/src/services/secret-sync/secret-sync-schemas.ts+++ b/backend/src/services/secret-sync/secret-sync-schemas.ts@@ -61,9 +61,7 @@ const BaseSyncOptionsSchema = <T extends AnyZodObject | undefined = undefined>({.describe(`Not supported for ${syncName} syncs.`),disableSecretDeletion: supportsDisableSecretDeletion? z.boolean().optional().describe(SecretSyncs.SYNC_OPTIONS(destination).disableSecretDeletion)- : z- .undefined({ message: `Disable secret deletion is not supported for ${syncName} syncs` })- .describe(`Not supported for ${syncName} syncs.`)+ : z.literal(false).or(z.undefined()).describe(`Not supported for ${syncName} syncs.`)});const schema = merge ? baseSchema.merge(merge) : baseSchema;diff --git a/backend/src/services/secret-sync/secret-sync-service.ts b/backend/src/services/secret-sync/secret-sync-service.tsindex bcaa888da0..d4ae5c8936 100644--- a/backend/src/services/secret-sync/secret-sync-service.ts+++ b/backend/src/services/secret-sync/secret-sync-service.ts@@ -10,6 +10,7 @@ import {ProjectPermissionSub} from "@app/ee/services/permission/project-permission";import { KeyStorePrefixes, TKeyStoreFactory } from "@app/keystore/keystore";+import { request } from "@app/lib/config/request";import { DatabaseErrorCode } from "@app/lib/error-codes";import { BadRequestError, DatabaseError, NotFoundError } from "@app/lib/errors";import { deepEqualSkipFields } from "@app/lib/fn/object";@@ -37,7 +38,11 @@ import {TUpdateSecretSyncDTO} from "@app/services/secret-sync/secret-sync-types";+import { TAppConnectionDALFactory } from "../app-connection/app-connection-dal";+import { getAzureEntraIdConnectionAccessToken } from "../app-connection/azure-entra-id/azure-entra-id-connection-fns";+import { TKmsServiceFactory } from "../kms/kms-service";import { TSecretImportDALFactory } from "../secret-import/secret-import-dal";+import { TSecretV2BridgeDALFactory } from "../secret-v2-bridge/secret-v2-bridge-dal";import { TSecretSyncDALFactory } from "./secret-sync-dal";import {DESTINATION_DUPLICATE_CHECK_MAP,@@ -50,7 +55,10 @@ import { TSecretSyncQueueFactory } from "./secret-sync-queue";type TSecretSyncServiceFactoryDep = {secretSyncDAL: TSecretSyncDALFactory;secretImportDAL: TSecretImportDALFactory;+ secretV2BridgeDAL: Pick<TSecretV2BridgeDALFactory, "findOne">;+ appConnectionDAL: Pick<TAppConnectionDALFactory, "findById" | "updateById">;appConnectionService: Pick<TAppConnectionServiceFactory, "validateAppConnectionUsageById">;+ kmsService: Pick<TKmsServiceFactory, "createCipherPairWithDataKey">;permissionService: Pick<TPermissionServiceFactory, "getProjectPermission" | "getOrgPermission">;projectDAL: Pick<TProjectDALFactory, "findById">;orgDAL: Pick<TOrgDALFactory, "findById">;@@ -70,8 +78,11 @@ export const secretSyncServiceFactory = ({secretSyncDAL,folderDAL,secretImportDAL,- permissionService,+ secretV2BridgeDAL,+ appConnectionDAL,appConnectionService,+ kmsService,+ permissionService,projectDAL,orgDAL,projectBotService,@@ -103,6 +114,69 @@ export const secretSyncServiceFactory = ({});};+ const resolveSecretKeyToId = async (folderId: string, secretKey: string): Promise<string> => {+ const secret = await secretV2BridgeDAL.findOne({ key: secretKey, folderId });+ if (!secret) {+ throw new BadRequestError({+ message: `Secret with key "${secretKey}" not found in the specified source folder`+ });+ }+ return secret.id;+ };++ // For Azure Entra ID SCIM syncs, resolve secretKey (name) in syncOptions to secretId (UUID) before saving+ const resolveAzureEntraIdScimSyncOptions = async (+ destination: SecretSync,+ syncOptions: Record<string, unknown> | undefined,+ folderId: string+ ) => {+ if (destination !== SecretSync.AzureEntraIdScim || !syncOptions || !("secretKey" in syncOptions)) {+ return syncOptions;+ }++ const { secretKey, ...rest } = syncOptions;+ const secretId = await resolveSecretKeyToId(folderId, secretKey as string);+ return { ...rest, secretId };+ };++ // For Azure Entra ID SCIM syncs, fetch the service principal display name from Azure and store it+ const enrichAzureEntraIdScimDestinationConfig = async (+ destination: SecretSync,+ destinationConfig: Record<string, unknown> | undefined,+ connectionId: string+ ) => {+ if (destination !== SecretSync.AzureEntraIdScim || !destinationConfig) {+ return destinationConfig;+ }++ const { servicePrincipalId } = destinationConfig;+ if (!servicePrincipalId) return destinationConfig;++ try {+ const accessToken = await getAzureEntraIdConnectionAccessToken(connectionId, appConnectionDAL, kmsService);++ const { data } = await request.get<{ displayName?: string }>(+ `https://graph.microsoft.com/v1.0/servicePrincipals/${servicePrincipalId as string}`,+ {+ headers: {+ Authorization: `Bearer ${accessToken}`+ },+ params: {+ $select: "displayName"+ }+ }+ );++ return {+ ...destinationConfig,+ ...(data.displayName && { servicePrincipalDisplayName: data.displayName })+ };+ } catch {+ // If we can't fetch the name, proceed without it+ return destinationConfig;+ }+ };+const listSecretSyncsByProjectId = async ({ projectId, destination }: TListSecretSyncsByProjectId,actor: OrgServiceActor@@ -377,10 +451,24 @@ export const secretSyncServiceFactory = ({actor);+ const resolvedSyncOptions = await resolveAzureEntraIdScimSyncOptions(+ params.destination,+ params.syncOptions as Record<string, unknown> | undefined,+ folder.id+ );++ const enrichedDestinationConfig = await enrichAzureEntraIdScimDestinationConfig(+ params.destination,+ params.destinationConfig as Record<string, unknown> | undefined,+ params.connectionId+ );+try {const secretSync = await secretSyncDAL.create({folderId: folder.id,...params,+ ...(resolvedSyncOptions && { syncOptions: resolvedSyncOptions }),+ ...(enrichedDestinationConfig && { destinationConfig: enrichedDestinationConfig }),...(params.isAutoSyncEnabled && { syncStatus: SecretSyncStatus.Pending }),projectId});@@ -530,9 +618,27 @@ export const secretSyncServiceFactory = ({const isAutoSyncEnabled = params.isAutoSyncEnabled ?? secretSync.isAutoSyncEnabled;+ const resolvedSyncOptions = await resolveAzureEntraIdScimSyncOptions(+ destination,+ params.syncOptions as Record<string, unknown> | undefined,+ folderId+ );++ const connectionIdForEnrich = params.connectionId ?? secretSync.connectionId ?? secretSync.connection?.id;++ const enrichedDestinationConfig = connectionIdForEnrich+ ? await enrichAzureEntraIdScimDestinationConfig(+ destination,+ params.destinationConfig as Record<string, unknown> | undefined,+ connectionIdForEnrich+ )+ : params.destinationConfig;+try {const updatedSecretSync = await secretSyncDAL.updateById(syncId, {...params,+ ...(resolvedSyncOptions && { syncOptions: resolvedSyncOptions }),+ ...(enrichedDestinationConfig && { destinationConfig: enrichedDestinationConfig }),...(isAutoSyncEnabled && folderId && { syncStatus: SecretSyncStatus.Pending }),folderId});diff --git a/backend/src/services/secret-sync/secret-sync-types.ts b/backend/src/services/secret-sync/secret-sync-types.tsindex eb8806158a..9fbabe2f97 100644--- a/backend/src/services/secret-sync/secret-sync-types.ts+++ b/backend/src/services/secret-sync/secret-sync-types.ts@@ -467,6 +467,7 @@ export type TSecretMap = Record<string,{value: string;+ id?: string;comment?: string;skipMultilineEncoding?: boolean | null | undefined;secretMetadata?: ResourceMetadataDTO;diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/AzureEntraIdScimSyncFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/AzureEntraIdScimSyncFields.tsxindex 7417318327..9b8256be41 100644--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/AzureEntraIdScimSyncFields.tsx+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/AzureEntraIdScimSyncFields.tsx@@ -2,7 +2,7 @@ import { useMemo, useState } from "react";import { Controller, useFormContext, useWatch } from "react-hook-form";import { SecretSyncConnectionField } from "@app/components/secret-syncs/forms/SecretSyncConnectionField";-import { FilterableSelect, FormControl, Input } from "@app/components/v2";+import { FilterableSelect, FormControl } from "@app/components/v2";import {TAzureScimServicePrincipal,useAzureEntraIdConnectionListScimServicePrincipals@@ -42,7 +42,6 @@ export const AzureEntraIdScimSyncFields = () => {<SecretSyncConnectionFieldonChange={() => {setValue("destinationConfig.servicePrincipalId", "");- setValue("destinationConfig.secretKey", "");setSelectedSp(null);}}/>@@ -82,21 +81,6 @@ export const AzureEntraIdScimSyncFields = () => {</FormControl>)}/>-- <Controller- name="destinationConfig.secretKey"- control={control}- render={({ field, fieldState: { error } }) => (- <FormControl- isError={Boolean(error)}- errorText={error?.message}- label="Secret Key"- tooltipText="The key of the secret whose value will be used as the SCIM provisioning token."- >- <Input {...field} placeholder="SCIM_TOKEN" />- </FormControl>- )}- /></>);};diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/AzureEntraIdScimSyncOptionsFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/AzureEntraIdScimSyncOptionsFields.tsxnew file mode 100644index 0000000000..29205eba60--- /dev/null+++ b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/AzureEntraIdScimSyncOptionsFields.tsx@@ -0,0 +1,74 @@+import { useEffect } from "react";+import { Controller, useFormContext, useWatch } from "react-hook-form";++import { FilterableSelect, FormControl } from "@app/components/v2";+import { useProject } from "@app/context";+import { useGetProjectSecrets } from "@app/hooks/api/secrets/queries";+import { SecretSync } from "@app/hooks/api/secretSyncs";++import { TSecretSyncForm } from "../schemas";++export const AzureEntraIdScimSyncOptionsFields = () => {+ const { control, setValue } = useFormContext<+ TSecretSyncForm & { destination: SecretSync.AzureEntraIdScim }+ >();++ const { currentProject } = useProject();+ const environment = useWatch({ control, name: "environment" });+ const secretPath = useWatch({ control, name: "secretPath" });+ const currentSecretKey = useWatch({ control, name: "syncOptions.secretKey" });++ const existingSecretId = useWatch({+ control,+ name: "syncOptions.secretId" as "syncOptions.secretKey"+ });++ const { data: secrets, isLoading } = useGetProjectSecrets({+ projectId: currentProject.id,+ environment: environment?.slug ?? "",+ secretPath: secretPath ?? "/",+ viewSecretValue: false,+ options: {+ enabled: Boolean(environment?.slug && secretPath)+ }+ });++ useEffect(() => {+ if (existingSecretId && !currentSecretKey && secrets?.length) {+ const match = secrets.find((s) => s.id === existingSecretId);+ if (match) {+ setValue("syncOptions.secretKey", match.key);+ }+ }+ }, [existingSecretId, currentSecretKey, secrets, setValue]);++ return (+ <Controller+ name="syncOptions.secretKey"+ control={control}+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ isError={Boolean(error)}+ errorText={error?.message}+ label="Secret"+ tooltipText="The secret whose value will be used as the SCIM provisioning token."+ >+ <FilterableSelect+ value={secrets?.find((s) => s.key === value) ?? null}+ onChange={(option) => {+ const selected = option as { id: string; key: string } | null;+ onChange(selected?.key ?? "");+ }}+ isLoading={isLoading}+ options={secrets ?? []}+ placeholder="Select a secret..."+ getOptionLabel={(option) => option.key}+ getOptionValue={(option) => option.id}+ isClearable+ isDisabled={!environment?.slug || !secretPath}+ />+ </FormControl>+ )}+ />+ );+};diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsxindex 5903196a05..8ba019bc91 100644--- a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx+++ b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx@@ -18,6 +18,7 @@ import {import { TSecretSyncForm } from "../schemas";import { AwsParameterStoreSyncOptionsFields } from "./AwsParameterStoreSyncOptionsFields";import { AwsSecretsManagerSyncOptionsFields } from "./AwsSecretsManagerSyncOptionsFields";+import { AzureEntraIdScimSyncOptionsFields } from "./AzureEntraIdScimSyncOptionsFields";import { FlyioSyncOptionsFields } from "./FlyioSyncOptionsFields";import { RenderSyncOptionsFields } from "./RenderSyncOptionsFields";@@ -81,9 +82,11 @@ export const SecretSyncOptionsFields = ({ hideInitialSync }: Props) => {case SecretSync.Chef:case SecretSync.OctopusDeploy:case SecretSync.CircleCI:- case SecretSync.AzureEntraIdScim:AdditionalSyncOptionsFieldsComponent = null;break;+ case SecretSync.AzureEntraIdScim:+ AdditionalSyncOptionsFieldsComponent = <AzureEntraIdScimSyncOptionsFields />;+ break;default:throw new Error(`Unhandled Additional Sync Options Fields: ${destination}`);}diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/AzureEntraIdScimSyncReviewFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/AzureEntraIdScimSyncReviewFields.tsxindex a14b4fa8c4..15e39d2c92 100644--- a/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/AzureEntraIdScimSyncReviewFields.tsx+++ b/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/AzureEntraIdScimSyncReviewFields.tsx@@ -9,13 +9,18 @@ export const AzureEntraIdScimSyncReviewFields = () => {TSecretSyncForm & { destination: SecretSync.AzureEntraIdScim }>();+ const servicePrincipalDisplayName = watch(+ "destinationConfig.servicePrincipalDisplayName" as "destinationConfig.servicePrincipalId"+ );const servicePrincipalId = watch("destinationConfig.servicePrincipalId");- const secretKey = watch("destinationConfig.secretKey");+ const secretKey = watch("syncOptions.secretKey");return (<>- <GenericFieldLabel label="Service Principal ID">{servicePrincipalId}</GenericFieldLabel>- <GenericFieldLabel label="Secret Key">{secretKey}</GenericFieldLabel>+ <GenericFieldLabel label="Service Principal">+ {servicePrincipalDisplayName || servicePrincipalId}+ </GenericFieldLabel>+ <GenericFieldLabel label="Secret">{secretKey || "-"}</GenericFieldLabel></>);};diff --git a/frontend/src/components/secret-syncs/forms/schemas/azure-entra-id-scim-sync-destination-schema.ts b/frontend/src/components/secret-syncs/forms/schemas/azure-entra-id-scim-sync-destination-schema.tsindex 1f6528f68d..98f1f67668 100644--- a/frontend/src/components/secret-syncs/forms/schemas/azure-entra-id-scim-sync-destination-schema.ts+++ b/frontend/src/components/secret-syncs/forms/schemas/azure-entra-id-scim-sync-destination-schema.ts@@ -3,12 +3,15 @@ import { z } from "zod";import { BaseSecretSyncSchema } from "@app/components/secret-syncs/forms/schemas/base-secret-sync-schema";import { SecretSync } from "@app/hooks/api/secretSyncs";-export const AzureEntraIdScimSyncDestinationSchema = BaseSecretSyncSchema().merge(+export const AzureEntraIdScimSyncDestinationSchema = BaseSecretSyncSchema(+ z.object({+ secretKey: z.string().optional()+ })+).merge(z.object({destination: z.literal(SecretSync.AzureEntraIdScim),destinationConfig: z.object({- servicePrincipalId: z.string().trim().min(1, "Service Principal ID required"),- secretKey: z.string().trim().min(1, "Secret key required")+ servicePrincipalId: z.string().trim().min(1, "Service Principal ID required")})}));diff --git a/frontend/src/hooks/api/secretSyncs/types/azure-entra-id-scim-sync.ts b/frontend/src/hooks/api/secretSyncs/types/azure-entra-id-scim-sync.tsindex 47971f9de4..1401aa583a 100644--- a/frontend/src/hooks/api/secretSyncs/types/azure-entra-id-scim-sync.ts+++ b/frontend/src/hooks/api/secretSyncs/types/azure-entra-id-scim-sync.ts@@ -6,7 +6,12 @@ export type TAzureEntraIdScimSync = TRootSecretSync & {destination: SecretSync.AzureEntraIdScim;destinationConfig: {servicePrincipalId: string;- secretKey: string;+ servicePrincipalDisplayName?: string;+ };+ syncOptions: {+ initialSyncBehavior: string;+ secretId?: string;+ secretKey?: string;};connection: {app: AppConnection.AzureEntraId;diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncDestinationCol/AzureEntraIdScimSyncDestinationCol.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncDestinationCol/AzureEntraIdScimSyncDestinationCol.tsxnew file mode 100644index 0000000000..2369d49ec1--- /dev/null+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncDestinationCol/AzureEntraIdScimSyncDestinationCol.tsx@@ -0,0 +1,14 @@+import { TAzureEntraIdScimSync } from "@app/hooks/api/secretSyncs/types/azure-entra-id-scim-sync";++import { getSecretSyncDestinationColValues } from "../helpers";+import { SecretSyncTableCell } from "../SecretSyncTableCell";++type Props = {+ secretSync: TAzureEntraIdScimSync;+};++export const AzureEntraIdScimSyncDestinationCol = ({ secretSync }: Props) => {+ const { primaryText, secondaryText } = getSecretSyncDestinationColValues(secretSync);++ return <SecretSyncTableCell primaryText={primaryText} secondaryText={secondaryText} />;+};diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncDestinationCol/SecretSyncDestinationCol.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncDestinationCol/SecretSyncDestinationCol.tsxindex ae560b92ad..f7e514aa8f 100644--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncDestinationCol/SecretSyncDestinationCol.tsx+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncDestinationCol/SecretSyncDestinationCol.tsx@@ -5,6 +5,7 @@ import { AwsParameterStoreSyncDestinationCol } from "./AwsParameterStoreSyncDestimport { AwsSecretsManagerSyncDestinationCol } from "./AwsSecretsManagerSyncDestinationCol";import { AzureAppConfigurationDestinationSyncCol } from "./AzureAppConfigurationDestinationSyncCol";import { AzureDevOpsSyncDestinationCol } from "./AzureDevOpsSyncDestinationCol";+import { AzureEntraIdScimSyncDestinationCol } from "./AzureEntraIdScimSyncDestinationCol";import { AzureKeyVaultDestinationSyncCol } from "./AzureKeyVaultDestinationSyncCol";import { BitbucketSyncDestinationCol } from "./BitbucketSyncDestinationCol";import { CamundaSyncDestinationCol } from "./CamundaSyncDestinationCol";@@ -112,6 +113,8 @@ export const SecretSyncDestinationCol = ({ secretSync }: Props) => {return <OctopusDeploySyncDestinationCol secretSync={secretSync} />;case SecretSync.CircleCI:return <CircleCISyncDestinationCol secretSync={secretSync} />;+ case SecretSync.AzureEntraIdScim:+ return <AzureEntraIdScimSyncDestinationCol secretSync={secretSync} />;default:throw new Error(`Unhandled Secret Sync Destination Col: ${(secretSync as TSecretSync).destination}`diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/helpers/index.ts b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/helpers/index.tsindex c21c9c6e28..ef90d9cdfd 100644--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/helpers/index.ts+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/helpers/index.ts@@ -218,6 +218,11 @@ export const getSecretSyncDestinationColValues = (secretSync: TSecretSync) => {primaryText = destinationConfig.projectName;secondaryText = "Project";break;+ case SecretSync.AzureEntraIdScim:+ primaryText =+ destinationConfig.servicePrincipalDisplayName || destinationConfig.servicePrincipalId;+ secondaryText = "SCIM Service Principal";+ break;default:throw new Error(`Unhandled Destination Col Values ${destination}`);}diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/AzureEntraIdScimSyncDestinationSection.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/AzureEntraIdScimSyncDestinationSection.tsxnew file mode 100644index 0000000000..7e9c44f44f--- /dev/null+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/AzureEntraIdScimSyncDestinationSection.tsx@@ -0,0 +1,18 @@+import { GenericFieldLabel } from "@app/components/secret-syncs";+import { TAzureEntraIdScimSync } from "@app/hooks/api/secretSyncs/types/azure-entra-id-scim-sync";++type Props = {+ secretSync: TAzureEntraIdScimSync;+};++export const AzureEntraIdScimSyncDestinationSection = ({ secretSync }: Props) => {+ const {+ destinationConfig: { servicePrincipalDisplayName, servicePrincipalId }+ } = secretSync;++ return (+ <GenericFieldLabel label="SCIM Service Principal">+ {servicePrincipalDisplayName || servicePrincipalId}+ </GenericFieldLabel>+ );+};diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/SecretSyncDestinatonSection.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/SecretSyncDestinatonSection.tsxindex 6ae007c8a8..6f626f49a7 100644--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/SecretSyncDestinatonSection.tsx+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/SecretSyncDestinatonSection.tsx@@ -15,6 +15,7 @@ import { AwsParameterStoreSyncDestinationSection } from "./AwsParameterStoreSyncimport { AwsSecretsManagerSyncDestinationSection } from "./AwsSecretsManagerSyncDestinationSection";import { AzureAppConfigurationSyncDestinationSection } from "./AzureAppConfigurationSyncDestinationSection";import { AzureDevOpsSyncDestinationSection } from "./AzureDevOpsSyncDestinationSection";+import { AzureEntraIdScimSyncDestinationSection } from "./AzureEntraIdScimSyncDestinationSection";import { AzureKeyVaultSyncDestinationSection } from "./AzureKeyVaultSyncDestinationSection";import { BitbucketSyncDestinationSection } from "./BitbucketSyncDestinationSection";import { CamundaSyncDestinationSection } from "./CamundaSyncDestinationSection";@@ -167,6 +168,9 @@ export const SecretSyncDestinationSection = ({ secretSync, onEditDestination }:case SecretSync.CircleCI:DestinationComponents = <CircleCISyncDestinationSection secretSync={secretSync} />;break;+ case SecretSync.AzureEntraIdScim:+ DestinationComponents = <AzureEntraIdScimSyncDestinationSection secretSync={secretSync} />;+ break;default:throw new Error(`Unhandled Destination Section components: ${destination}`);}diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/SecretSyncOptionsSection.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/SecretSyncOptionsSection.tsxindex 8422529709..28eeef5c15 100644--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/SecretSyncOptionsSection.tsx+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/SecretSyncOptionsSection.tsx@@ -77,6 +77,7 @@ export const SecretSyncOptionsSection = ({ secretSync, onEditOptions }: Props) =case SecretSync.Chef:case SecretSync.OctopusDeploy:case SecretSync.CircleCI:+ case SecretSync.AzureEntraIdScim:AdditionalSyncOptionsComponent = null;break;default: