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 #7290 from Infisical/feat/adilsitos/eng-5317
Adilson Junior89e89a40f28d
diff --cc backend/src/ee/routes/v2/secret-rotation-v2-routers/index.tsindex 8c3bc9542e,7765a4527e..96c1f43540--- a/backend/src/ee/routes/v2/secret-rotation-v2-routers/index.ts+++ b/backend/src/ee/routes/v2/secret-rotation-v2-routers/index.ts@@@ -54,7 -54,7 +55,8 @@@ export const SECRET_ROTATION_REGISTER_R[SecretRotation.SupabaseApiKey]: registerSupabaseApiKeyRotationRouter,[SecretRotation.SalesforceOauthCredentials]: registerSalesforceOauthCredentialsRotationRouter,[SecretRotation.DatadogApplicationKeySecret]: registerDatadogApplicationKeySecretRotationRouter,+ [SecretRotation.DatadogApiKey]: registerDatadogApiKeyRotationRouter,[SecretRotation.ConvexAccessKey]: registerConvexAccessKeyRotationRouter,- [SecretRotation.FireworksApiKey]: registerFireworksApiKeyRotationRouter+ [SecretRotation.FireworksApiKey]: registerFireworksApiKeyRotationRouter,+ [SecretRotation.SnowflakeUserKeyPair]: registerSnowflakeUserKeyPairRotationRouter};diff --cc backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-router.tsindex 7de45922a2,18eb0d0af0..b31f328505--- a/backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-router.ts+++ b/backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-router.ts@@@ -55,9 -55,9 +56,10 @@@ const SecretRotationV2OptionsSchema = zSupabaseApiKeyRotationListItemSchema,SalesforceOauthCredentialsRotationListItemSchema,DatadogApplicationKeySecretRotationListItemSchema,+ DatadogApiKeyRotationListItemSchema,ConvexAccessKeyRotationListItemSchema,- FireworksApiKeyRotationListItemSchema+ FireworksApiKeyRotationListItemSchema,+ SnowflakeUserKeyPairRotationListItemSchema]);export const registerSecretRotationV2Router = async (server: FastifyZodProvider) => {diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-enums.tsindex be51733359,60b88543bd..fca62825f6--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-enums.ts+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-enums.ts@@@ -21,9 -21,9 +21,10 @@@ export enum SecretRotationSupabaseApiKey = "supabase-api-key",SalesforceOauthCredentials = "salesforce-oauth-credentials",DatadogApplicationKeySecret = "datadog-application-key-secret",+ DatadogApiKey = "datadog-api-key",ConvexAccessKey = "convex-access-key",- FireworksApiKey = "fireworks-api-key"+ FireworksApiKey = "fireworks-api-key",+ SnowflakeUserKeyPair = "snowflake-user-key-pair"}export enum SecretRotationStatus {diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.tsindex b3870df4a8,e92b7cc895..f9270e156b--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.ts+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.ts@@@ -75,9 -75,9 +76,10 @@@ const SECRET_ROTATION_LIST_OPTIONS: Rec[SecretRotation.SupabaseApiKey]: SUPABASE_API_KEY_ROTATION_LIST_OPTION,[SecretRotation.SalesforceOauthCredentials]: SALESFORCE_OAUTH_CREDENTIALS_ROTATION_LIST_OPTION,[SecretRotation.DatadogApplicationKeySecret]: DATADOG_APPLICATION_KEY_SECRET_ROTATION_LIST_OPTION,+ [SecretRotation.DatadogApiKey]: DATADOG_API_KEY_ROTATION_LIST_OPTION,[SecretRotation.ConvexAccessKey]: CONVEX_ACCESS_KEY_ROTATION_LIST_OPTION,- [SecretRotation.FireworksApiKey]: FIREWORKS_API_KEY_ROTATION_LIST_OPTION+ [SecretRotation.FireworksApiKey]: FIREWORKS_API_KEY_ROTATION_LIST_OPTION,+ [SecretRotation.SnowflakeUserKeyPair]: SNOWFLAKE_USER_KEY_PAIR_ROTATION_LIST_OPTION};export const listSecretRotationOptions = () => {diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-maps.tsindex 273a7b5fb7,9f58a96033..df36948a2a--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-maps.ts+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-maps.ts@@@ -24,9 -24,9 +24,10 @@@ export const SECRET_ROTATION_NAME_MAP:[SecretRotation.SupabaseApiKey]: "Supabase API Key",[SecretRotation.SalesforceOauthCredentials]: "Salesforce OAuth Credentials",[SecretRotation.DatadogApplicationKeySecret]: "Datadog Application Key",+ [SecretRotation.DatadogApiKey]: "Datadog API Key",[SecretRotation.ConvexAccessKey]: "Convex Access Key",- [SecretRotation.FireworksApiKey]: "Fireworks Secret"+ [SecretRotation.FireworksApiKey]: "Fireworks Secret",+ [SecretRotation.SnowflakeUserKeyPair]: "Snowflake User Key Pair"};export const SECRET_ROTATION_CONNECTION_MAP: Record<SecretRotation, AppConnection> = {@@@ -52,7 -52,7 +53,8 @@@[SecretRotation.SupabaseApiKey]: AppConnection.Supabase,[SecretRotation.SalesforceOauthCredentials]: AppConnection.Salesforce,[SecretRotation.DatadogApplicationKeySecret]: AppConnection.Datadog,+ [SecretRotation.DatadogApiKey]: AppConnection.Datadog,[SecretRotation.ConvexAccessKey]: AppConnection.Convex,- [SecretRotation.FireworksApiKey]: AppConnection.Fireworks+ [SecretRotation.FireworksApiKey]: AppConnection.Fireworks,+ [SecretRotation.SnowflakeUserKeyPair]: AppConnection.Snowflake};diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.tsindex d772ade239,086ff036c4..f27b4200c9--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.ts+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.ts@@@ -211,9 -211,9 +212,10 @@@ const SECRET_ROTATION_FACTORY_MAP: RecosalesforceOauthCredentialsRotationFactory as TRotationFactoryImplementation,[SecretRotation.DatadogApplicationKeySecret]:datadogApplicationKeySecretRotationFactory as TRotationFactoryImplementation,+ [SecretRotation.DatadogApiKey]: datadogApiKeyRotationFactory as TRotationFactoryImplementation,[SecretRotation.ConvexAccessKey]: convexAccessKeyRotationFactory as TRotationFactoryImplementation,- [SecretRotation.FireworksApiKey]: fireworksApiKeyRotationFactory as TRotationFactoryImplementation+ [SecretRotation.FireworksApiKey]: fireworksApiKeyRotationFactory as TRotationFactoryImplementation,+ [SecretRotation.SnowflakeUserKeyPair]: snowflakeUserKeyPairRotationFactory as TRotationFactoryImplementation};export const secretRotationV2ServiceFactory = ({diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-types.tsindex de48f0af4a,1331dac045..4f1431a5c7--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-types.ts+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-types.ts@@@ -205,9 -205,9 +212,10 @@@ export type TSecretRotationV2| TSupabaseApiKeyRotation| TSalesforceOauthCredentialsRotation| TDatadogApplicationKeySecretRotation+ | TDatadogApiKeyRotation| TConvexAccessKeyRotation- | TFireworksApiKeyRotation;+ | TFireworksApiKeyRotation+ | TSnowflakeUserKeyPairRotation;export type TSecretRotationV2WithConnection =| TPostgresCredentialsRotationWithConnection@@@ -232,9 -232,9 +240,10 @@@| TSupabaseApiKeyRotationWithConnection| TSalesforceOauthCredentialsRotationWithConnection| TDatadogApplicationKeySecretRotationWithConnection+ | TDatadogApiKeyRotationWithConnection| TConvexAccessKeyRotationWithConnection- | TFireworksApiKeyRotationWithConnection;+ | TFireworksApiKeyRotationWithConnection+ | TSnowflakeUserKeyPairRotationWithConnection;export type TSecretRotationV2GeneratedCredentials =| TSqlCredentialsRotationGeneratedCredentials@@@ -255,9 -255,9 +264,10 @@@| TSupabaseApiKeyRotationGeneratedCredentials| TSalesforceOauthCredentialsRotationGeneratedCredentials| TDatadogApplicationKeySecretRotationGeneratedCredentials+ | TDatadogApiKeyRotationGeneratedCredentials| TConvexAccessKeyRotationGeneratedCredentials- | TFireworksApiKeyRotationGeneratedCredentials;+ | TFireworksApiKeyRotationGeneratedCredentials+ | TSnowflakeUserKeyPairRotationGeneratedCredentials;export type TSecretRotationV2Input =| TPostgresCredentialsRotationInput@@@ -282,9 -282,9 +292,10 @@@| TSupabaseApiKeyRotationInput| TSalesforceOauthCredentialsRotationInput| TDatadogApplicationKeySecretRotationInput+ | TDatadogApiKeyRotationInput| TConvexAccessKeyRotationInput- | TFireworksApiKeyRotationInput;+ | TFireworksApiKeyRotationInput+ | TSnowflakeUserKeyPairRotationInput;export type TSecretRotationV2ListItem =| TPostgresCredentialsRotationListItem@@@ -309,9 -309,9 +320,10 @@@| TSupabaseApiKeyRotationListItem| TSalesforceOauthCredentialsRotationListItem| TDatadogApplicationKeySecretRotationListItem+ | TDatadogApiKeyRotationListItem| TConvexAccessKeyRotationListItem- | TFireworksApiKeyRotationListItem;+ | TFireworksApiKeyRotationListItem+ | TSnowflakeUserKeyPairRotationListItem;export type TSecretRotationV2TemporaryParameters =| TLdapPasswordRotationInput["temporaryParameters"]diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-union-schema.tsindex 68884bed42,170b360526..6e88c7a3ef--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-union-schema.ts+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-union-schema.ts@@@ -50,7 -50,7 +51,8 @@@ export const SecretRotationV2Schema = zSupabaseApiKeyRotationSchema,SalesforceOauthCredentialsRotationSchema,DatadogApplicationKeySecretRotationSchema,+ DatadogApiKeyRotationSchema,ConvexAccessKeyRotationSchema,- FireworksApiKeyRotationSchema+ FireworksApiKeyRotationSchema,+ SnowflakeUserKeyPairRotationSchema]);diff --cc frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SecretRotationV2ParametersFields.tsxindex 909ca75844,9e216aee33..29798e9f55--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SecretRotationV2ParametersFields.tsx+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SecretRotationV2ParametersFields.tsx@@@ -50,9 -50,9 +51,10 @@@ const COMPONENT_MAP: Record<SecretRotat[SecretRotation.SupabaseApiKey]: SupabaseApiKeyRotationParametersFields,[SecretRotation.SalesforceOauthCredentials]: SalesforceOauthCredentialsRotationParametersFields,[SecretRotation.DatadogApplicationKeySecret]: DatadogApplicationKeySecretRotationParametersFields,+ [SecretRotation.DatadogApiKey]: DatadogApiKeyRotationParametersFields,[SecretRotation.ConvexAccessKey]: ConvexAccessKeyRotationParametersFields,- [SecretRotation.FireworksApiKey]: FireworksApiKeyRotationParametersFields+ [SecretRotation.FireworksApiKey]: FireworksApiKeyRotationParametersFields,+ [SecretRotation.SnowflakeUserKeyPair]: SnowflakeUserKeyPairRotationParametersFields};export const SecretRotationV2ParametersFields = () => {diff --cc frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ReviewFields/SecretRotationReviewFields.tsxindex b328ab88ae,048b703805..0a4abf7930--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ReviewFields/SecretRotationReviewFields.tsx+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ReviewFields/SecretRotationReviewFields.tsx@@@ -52,9 -52,9 +53,10 @@@ const COMPONENT_MAP: Record<SecretRotat[SecretRotation.SupabaseApiKey]: SupabaseApiKeyRotationReviewFields,[SecretRotation.SalesforceOauthCredentials]: SalesforceOauthCredentialsRotationReviewFields,[SecretRotation.DatadogApplicationKeySecret]: DatadogApplicationKeySecretRotationReviewFields,+ [SecretRotation.DatadogApiKey]: DatadogApiKeyRotationReviewFields,[SecretRotation.ConvexAccessKey]: ConvexAccessKeyRotationReviewFields,- [SecretRotation.FireworksApiKey]: FireworksApiKeyRotationReviewFields+ [SecretRotation.FireworksApiKey]: FireworksApiKeyRotationReviewFields,+ [SecretRotation.SnowflakeUserKeyPair]: SnowflakeUserKeyPairRotationReviewFields};export const SecretRotationV2ReviewFields = () => {diff --cc frontend/src/components/secret-rotations-v2/forms/SecretRotationV2SecretsMappingFields/SecretRotationV2SecretsMappingFields.tsxindex 54ec002a27,c195131e95..c9fc3321d9--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2SecretsMappingFields/SecretRotationV2SecretsMappingFields.tsx+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2SecretsMappingFields/SecretRotationV2SecretsMappingFields.tsx@@@ -51,9 -51,9 +52,10 @@@ const COMPONENT_MAP: Record<SecretRotatSalesforceOauthCredentialsRotationSecretsMappingFields,[SecretRotation.DatadogApplicationKeySecret]:DatadogApplicationKeySecretRotationSecretsMappingFields,+ [SecretRotation.DatadogApiKey]: DatadogApiKeyRotationSecretsMappingFields,[SecretRotation.ConvexAccessKey]: ConvexAccessKeyRotationSecretsMappingFields,- [SecretRotation.FireworksApiKey]: FireworksApiKeyRotationSecretsMappingFields+ [SecretRotation.FireworksApiKey]: FireworksApiKeyRotationSecretsMappingFields,+ [SecretRotation.SnowflakeUserKeyPair]: SnowflakeUserKeyPairRotationSecretsMappingFields};export const SecretRotationV2SecretsMappingFields = () => {diff --cc frontend/src/components/secret-rotations-v2/forms/schemas/index.tsindex 82535830d9,6ec25f28a6..20b68da7e7--- a/frontend/src/components/secret-rotations-v2/forms/schemas/index.ts+++ b/frontend/src/components/secret-rotations-v2/forms/schemas/index.ts@@@ -58,9 -58,9 +59,10 @@@ export const SecretRotationV2FormSchemSupabaseApiKeyRotationSchema,SalesforceOauthCredentialsRotationSchema,DatadogApplicationKeySecretRotationSchema,+ DatadogApiKeyRotationSchema,ConvexAccessKeyRotationSchema,- FireworksApiKeyRotationSchema+ FireworksApiKeyRotationSchema,+ SnowflakeUserKeyPairRotationSchema]),z.object({ id: z.string().optional() }))diff --cc frontend/src/helpers/secretRotationsV2.tsindex 07cce27b54,098ab2edae..899b8139a8--- a/frontend/src/helpers/secretRotationsV2.ts+++ b/frontend/src/helpers/secretRotationsV2.ts@@@ -155,9 -155,9 +160,10 @@@ export const SECRET_ROTATION_CONNECTION[SecretRotation.SupabaseApiKey]: AppConnection.Supabase,[SecretRotation.SalesforceOauthCredentials]: AppConnection.Salesforce,[SecretRotation.DatadogApplicationKeySecret]: AppConnection.Datadog,+ [SecretRotation.DatadogApiKey]: AppConnection.Datadog,[SecretRotation.ConvexAccessKey]: AppConnection.Convex,- [SecretRotation.FireworksApiKey]: AppConnection.Fireworks+ [SecretRotation.FireworksApiKey]: AppConnection.Fireworks,+ [SecretRotation.SnowflakeUserKeyPair]: AppConnection.Snowflake};// if a rotation can potentially have downtime due to rotating a single credential set this to false@@@ -184,9 -184,9 +190,10 @@@ export const IS_ROTATION_DUAL_CREDENTIA[SecretRotation.SupabaseApiKey]: true,[SecretRotation.SalesforceOauthCredentials]: true,[SecretRotation.DatadogApplicationKeySecret]: true,+ [SecretRotation.DatadogApiKey]: true,[SecretRotation.ConvexAccessKey]: true,- [SecretRotation.FireworksApiKey]: true+ [SecretRotation.FireworksApiKey]: true,+ [SecretRotation.SnowflakeUserKeyPair]: true};export const getRotateAtLocal = ({ hours, minutes }: TSecretRotationV2["rotateAtUtc"]) => {diff --cc frontend/src/hooks/api/secretRotationsV2/enums.tsindex 6716c6be7a,e338afaa47..f86e55f7dd--- a/frontend/src/hooks/api/secretRotationsV2/enums.ts+++ b/frontend/src/hooks/api/secretRotationsV2/enums.ts@@@ -21,9 -21,9 +21,10 @@@ export enum SecretRotationSupabaseApiKey = "supabase-api-key",SalesforceOauthCredentials = "salesforce-oauth-credentials",DatadogApplicationKeySecret = "datadog-application-key-secret",+ DatadogApiKey = "datadog-api-key",ConvexAccessKey = "convex-access-key",- FireworksApiKey = "fireworks-api-key"+ FireworksApiKey = "fireworks-api-key",+ SnowflakeUserKeyPair = "snowflake-user-key-pair"}export enum SecretRotationStatus {diff --cc frontend/src/hooks/api/secretRotationsV2/types/index.tsindex e54c8b48fb,734e29c4a9..7255922210--- a/frontend/src/hooks/api/secretRotationsV2/types/index.ts+++ b/frontend/src/hooks/api/secretRotationsV2/types/index.ts@@@ -148,9 -148,9 +153,10 @@@ export type TSecretRotationV2 =| TSupabaseApiKeyRotation| TSalesforceOauthCredentialsRotation| TDatadogApplicationKeySecretRotation+ | TDatadogApiKeyRotation| TConvexAccessKeyRotation| TFireworksApiKeyRotation+ | TSnowflakeUserKeyPairRotation) & {secrets: (SecretV3RawSanitized | null)[];};@@@ -175,9 -175,9 +181,10 @@@ export type TSecretRotationV2Option| TSupabaseApiKeyRotationOption| TSalesforceOauthCredentialsRotationOption| TDatadogApplicationKeySecretRotationOption+ | TDatadogApiKeyRotationOption| TConvexAccessKeyRotationOption- | TFireworksApiKeyRotationOption;+ | TFireworksApiKeyRotationOption+ | TSnowflakeUserKeyPairRotationOption;export type TListSecretRotationV2Options = { secretRotationOptions: TSecretRotationV2Option[] };@@@ -206,9 -206,9 +213,10 @@@ export type TViewSecretRotationGenerate| TSupabaseApiKeyRotationGeneratedCredentialsResponse| TSalesforceOauthCredentialsRotationGeneratedCredentialsResponse| TDatadogApplicationKeySecretRotationGeneratedCredentialsResponse+ | TDatadogApiKeyRotationGeneratedCredentialsResponse| TConvexAccessKeyRotationGeneratedCredentialsResponse- | TFireworksApiKeyRotationGeneratedCredentialsResponse;+ | TFireworksApiKeyRotationGeneratedCredentialsResponse+ | TSnowflakeUserKeyPairRotationGeneratedCredentialsResponse;export type TCreateSecretRotationV2DTO = DiscriminativePick<TSecretRotationV2,@@@ -285,9 -285,9 +293,10 @@@ export type TSecretRotationOptionMap =[SecretRotation.SupabaseApiKey]: TSupabaseApiKeyRotationOption;[SecretRotation.SalesforceOauthCredentials]: TSalesforceOauthCredentialsRotationOption;[SecretRotation.DatadogApplicationKeySecret]: TDatadogApplicationKeySecretRotationOption;+ [SecretRotation.DatadogApiKey]: TDatadogApiKeyRotationOption;[SecretRotation.ConvexAccessKey]: TConvexAccessKeyRotationOption;[SecretRotation.FireworksApiKey]: TFireworksApiKeyRotationOption;+ [SecretRotation.SnowflakeUserKeyPair]: TSnowflakeUserKeyPairRotationOption;};export type TSecretRotationGeneratedCredentialsResponseMap = {@@@ -313,9 -313,9 +322,10 @@@[SecretRotation.SupabaseApiKey]: TSupabaseApiKeyRotationGeneratedCredentialsResponse;[SecretRotation.SalesforceOauthCredentials]: TSalesforceOauthCredentialsRotationGeneratedCredentialsResponse;[SecretRotation.DatadogApplicationKeySecret]: TDatadogApplicationKeySecretRotationGeneratedCredentialsResponse;+ [SecretRotation.DatadogApiKey]: TDatadogApiKeyRotationGeneratedCredentialsResponse;[SecretRotation.ConvexAccessKey]: TConvexAccessKeyRotationGeneratedCredentialsResponse;[SecretRotation.FireworksApiKey]: TFireworksApiKeyRotationGeneratedCredentialsResponse;+ [SecretRotation.SnowflakeUserKeyPair]: TSnowflakeUserKeyPairRotationGeneratedCredentialsResponse;};// Unified type for local account reconciliation (Unix/Linux, Windows, and HP iLO)