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 branch 'main' into sync-secrets/eng-2939
adilsonc980065c5250
diff --cc backend/src/server/routes/v1/app-connection-routers/app-connection-router.tsindex 7205559b23,66de308e1b..62e778a2cf--- a/backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts+++ b/backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts@@@ -232,8 -232,8 +236,9 @@@ const SanitizedAppConnectionSchema = z....SanitizedAzureEntraIdConnectionSchema.options,...SanitizedVenafiConnectionSchema.options,...SanitizedExternalInfisicalConnectionSchema.options,+ ...SanitizedNetScalerConnectionSchema.options,+ ...SanitizedDopplerConnectionSchema.options,- ...SanitizedNetScalerConnectionSchema.options+ ...SanitizedTravisCIConnectionSchema.options]);const AppConnectionOptionsSchema = z.discriminatedUnion("app", [@@@ -291,9 -291,9 +296,10 @@@AzureEntraIdConnectionListItemSchema,VenafiConnectionListItemSchema,ExternalInfisicalConnectionListItemSchema,+ DopplerConnectionListItemSchema,NetScalerConnectionListItemSchema,- AnthropicConnectionListItemSchema+ AnthropicConnectionListItemSchema,+ TravisCIConnectionListItemSchema]);export const registerAppConnectionRouter = async (server: FastifyZodProvider) => {diff --cc backend/src/server/routes/v1/app-connection-routers/index.tsindex 6e5dde2d1f,8a9fc98591..6d31558848--- a/backend/src/server/routes/v1/app-connection-routers/index.ts+++ b/backend/src/server/routes/v1/app-connection-routers/index.ts@@@ -116,7 -116,7 +117,8 @@@ export const APP_CONNECTION_REGISTER_RO[AppConnection.AzureEntraId]: registerAzureEntraIdConnectionRouter,[AppConnection.Venafi]: registerVenafiConnectionRouter,[AppConnection.ExternalInfisical]: registerExternalInfisicalConnectionRouter,+ [AppConnection.Doppler]: registerDopplerConnectionRouter,[AppConnection.NetScaler]: registerNetScalerConnectionRouter,- [AppConnection.Anthropic]: registerAnthropicConnectionRouter+ [AppConnection.Anthropic]: registerAnthropicConnectionRouter,+ [AppConnection.TravisCI]: registerTravisCIConnectionRouter};diff --cc backend/src/services/app-connection/app-connection-enums.tsindex 550f57c1a8,53ea4f312e..c9abe04f33--- a/backend/src/services/app-connection/app-connection-enums.ts+++ b/backend/src/services/app-connection/app-connection-enums.ts@@@ -53,9 -53,9 +53,10 @@@ export enum AppConnectionAzureEntraId = "azure-entra-id",Venafi = "venafi",ExternalInfisical = "external-infisical",+ Doppler = "doppler",NetScaler = "netscaler",- Anthropic = "anthropic"+ Anthropic = "anthropic",+ TravisCI = "travis-ci"}export enum AWSRegion {diff --cc backend/src/services/app-connection/app-connection-fns.tsindex 70e3f95037,ea24b7e4c0..d5b84b3755--- a/backend/src/services/app-connection/app-connection-fns.ts+++ b/backend/src/services/app-connection/app-connection-fns.ts@@@ -297,8 -293,8 +298,9 @@@ export const listAppConnectionOptionsgetAzureEntraIdConnectionListItem(),getVenafiConnectionListItem(),getExternalInfisicalConnectionListItem(),+ getDopplerConnectionListItem(),- getNetScalerConnectionListItem()+ getNetScalerConnectionListItem(),+ getTravisCIConnectionListItem()].filter((option) => {switch (projectType) {@@@ -655,8 -652,8 +660,9 @@@ export const TRANSITION_CONNECTION_CRED[AppConnection.AzureEntraId]: platformManagedCredentialsNotSupported,[AppConnection.Venafi]: platformManagedCredentialsNotSupported,[AppConnection.ExternalInfisical]: platformManagedCredentialsNotSupported,+ [AppConnection.NetScaler]: platformManagedCredentialsNotSupported,+ [AppConnection.Doppler]: platformManagedCredentialsNotSupported,- [AppConnection.NetScaler]: platformManagedCredentialsNotSupported+ [AppConnection.TravisCI]: platformManagedCredentialsNotSupported};export const enterpriseAppCheck = async (diff --cc backend/src/services/app-connection/app-connection-maps.tsindex a254b981cc,f564dcffae..02316e7aca--- a/backend/src/services/app-connection/app-connection-maps.ts+++ b/backend/src/services/app-connection/app-connection-maps.ts@@@ -55,9 -55,9 +55,10 @@@ export const APP_CONNECTION_NAME_MAP: R[AppConnection.AzureEntraId]: "Azure Entra ID",[AppConnection.Venafi]: "Venafi TLS Protect Cloud",[AppConnection.ExternalInfisical]: "Infisical",+ [AppConnection.Doppler]: "Doppler",[AppConnection.NetScaler]: "NetScaler",- [AppConnection.Anthropic]: "Anthropic"+ [AppConnection.Anthropic]: "Anthropic",+ [AppConnection.TravisCI]: "Travis CI"};export const APP_CONNECTION_PLAN_MAP: Record<AppConnection, AppConnectionPlanType> = {@@@ -115,7 -115,7 +116,8 @@@[AppConnection.AzureEntraId]: AppConnectionPlanType.Regular,[AppConnection.Venafi]: AppConnectionPlanType.Regular,[AppConnection.ExternalInfisical]: AppConnectionPlanType.Regular,+ [AppConnection.Doppler]: AppConnectionPlanType.Regular,[AppConnection.NetScaler]: AppConnectionPlanType.Regular,- [AppConnection.Anthropic]: AppConnectionPlanType.Regular+ [AppConnection.Anthropic]: AppConnectionPlanType.Regular,+ [AppConnection.TravisCI]: AppConnectionPlanType.Regular};diff --cc backend/src/services/app-connection/app-connection-service.tsindex aac20497bb,d7b426bcf9..9e7511e865--- a/backend/src/services/app-connection/app-connection-service.ts+++ b/backend/src/services/app-connection/app-connection-service.ts@@@ -220,9 -220,9 +222,10 @@@ const VALIDATE_APP_CONNECTION_CREDENTIA[AppConnection.AzureEntraId]: ValidateAzureEntraIdConnectionCredentialsSchema,[AppConnection.Venafi]: ValidateVenafiConnectionCredentialsSchema,[AppConnection.ExternalInfisical]: ValidateExternalInfisicalConnectionCredentialsSchema,+ [AppConnection.Doppler]: ValidateDopplerConnectionCredentialsSchema,[AppConnection.NetScaler]: ValidateNetScalerConnectionCredentialsSchema,- [AppConnection.Anthropic]: ValidateAnthropicConnectionCredentialsSchema+ [AppConnection.Anthropic]: ValidateAnthropicConnectionCredentialsSchema,+ [AppConnection.TravisCI]: ValidateTravisCIConnectionCredentialsSchema};export const appConnectionServiceFactory = ({@@@ -1101,6 -1101,6 +1104,7 @@@dbt: dbtConnectionService(connectAppConnectionById),circleci: circleciConnectionService(connectAppConnectionById),azureEntraId: azureEntraIdConnectionService(connectAppConnectionById, appConnectionDAL, kmsService),- doppler: dopplerConnectionService(connectAppConnectionById)++ doppler: dopplerConnectionService(connectAppConnectionById),+ travisCI: travisCIConnectionService(connectAppConnectionById)};};diff --cc backend/src/services/app-connection/app-connection-types.tsindex e1fdff3b2e,23070947ad..4e1acfb674--- a/backend/src/services/app-connection/app-connection-types.ts+++ b/backend/src/services/app-connection/app-connection-types.ts@@@ -391,9 -391,9 +397,10 @@@ export type TAppConnection = { id: stri| TAzureEntraIdConnection| TVenafiConnection| TExternalInfisicalConnection+ | TDopplerConnection| TNetScalerConnection| TAnthropicConnection+ | TTravisCIConnection);export type TAppConnectionRaw = NonNullable<Awaited<ReturnType<TAppConnectionDALFactory["findById"]>>>;@@@ -459,9 -459,9 +466,10 @@@ export type TAppConnectionInput = { id| TAzureEntraIdConnectionInput| TVenafiConnectionInput| TExternalInfisicalConnectionInput+ | TDopplerConnectionInput| TNetScalerConnectionInput| TAnthropicConnectionInput+ | TTravisCIConnectionInput);export type TSqlConnectionInput =@@@ -556,9 -556,9 +564,10 @@@ export type TAppConnectionConfig| TAzureEntraIdConnectionConfig| TVenafiConnectionConfig| TExternalInfisicalConnectionConfig+ | TDopplerConnectionConfig| TNetScalerConnectionConfig- | TAnthropicConnectionConfig;+ | TAnthropicConnectionConfig+ | TTravisCIConnectionConfig;export type TValidateAppConnectionCredentialsSchema =| TValidateAwsConnectionCredentialsSchema@@@ -615,9 -615,9 +624,10 @@@| TValidateAzureEntraIdConnectionCredentialsSchema| TValidateVenafiConnectionCredentialsSchema| TValidateExternalInfisicalConnectionCredentialsSchema+ | TValidateDopplerConnectionCredentialsSchema| TValidateNetScalerConnectionCredentialsSchema- | TValidateAnthropicConnectionCredentialsSchema;+ | TValidateAnthropicConnectionCredentialsSchema+ | TValidateTravisCIConnectionCredentialsSchema;export type TListAwsConnectionKmsKeys = {connectionId: string;diff --cc frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsxindex 1aac98ca86,827aebbb5d..150d55c51e--- a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx+++ b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx@@@ -26,31 -26,8 +26,32 @@@ type Props =hideInitialSync?: boolean;};+type SyncOptionsValue = TSecretSyncForm["syncOptions"];++const DESTINATION_INITIAL_SYNC_WARNINGS: Partial<+ Record<SecretSync, (syncOptions: SyncOptionsValue) => ReactNode>+> = {+ [SecretSync.TravisCI]: (syncOptions) => {+ const isImporting =- syncOptions.initialSyncBehavior === SecretSyncInitialSyncBehavior.ImportPrioritizeSource ||- syncOptions.initialSyncBehavior === SecretSyncInitialSyncBehavior.ImportPrioritizeDestination;++ syncOptions?.initialSyncBehavior === SecretSyncInitialSyncBehavior.ImportPrioritizeSource ||++ syncOptions?.initialSyncBehavior ===++ SecretSyncInitialSyncBehavior.ImportPrioritizeDestination;++ if (!isImporting) return null;++ return (+ <>- Only public Travis CI variables will be imported into Infisical. Private variables cannot- be read via the Travis CI API.- {!syncOptions.disableSecretDeletion &&++ Only public Travis CI variables will be imported into Infisical. Private variables cannot be++ read via the Travis CI API.++ {!syncOptions?.disableSecretDeletion &&+ " Because private variables are not imported, they will be deleted from Travis CI during sync. Enable Disable Secret Deletion below to keep them."}+ </>+ );+ }+};+export const SecretSyncOptionsFields = ({ hideInitialSync }: Props) => {- const { control, watch } = useFormContext<TSecretSyncForm>();+ const { control, watch, setValue } = useFormContext<TSecretSyncForm>();const destination = watch("destination");const currentSyncOption = watch("syncOptions");@@@ -59,9 -40,24 +64,27 @@@const { syncOption } = useSecretSyncOption(destination);+ const destinationInitialSyncWarning =+ DESTINATION_INITIAL_SYNC_WARNINGS[destination]?.(currentSyncOption);++ // Vercel "sensitive" secrets cannot be read back, so importing destination secrets is impossible.+ // Force the initial sync behavior to OverwriteDestination whenever sensitive is enabled.+ useEffect(() => {+ if (+ vercelSensitive &&+ currentSyncOption.initialSyncBehavior !== SecretSyncInitialSyncBehavior.OverwriteDestination+ ) {+ setValue(+ "syncOptions.initialSyncBehavior",+ SecretSyncInitialSyncBehavior.OverwriteDestination+ );+ }+ }, [vercelSensitive, currentSyncOption.initialSyncBehavior, setValue]);++ const initialSyncBehaviorEntries = Object.entries(SECRET_SYNC_INITIAL_SYNC_BEHAVIOR_MAP).filter(+ ([key]) => !vercelSensitive || key === SecretSyncInitialSyncBehavior.OverwriteDestination+ );+let AdditionalSyncOptionsFieldsComponent: ReactNode;switch (destination) {@@@ -200,14 -204,7 +232,14 @@@sync behavior to import destination secrets. Alternatively, configure a key schemaor disable secret deletion below to have Infisical ignore these secrets.</p>- )- )}+ )}+++ {destinationInitialSyncWarning && (+ <p className="-mt-2.5 mb-2.5 text-xs text-yellow">+ <FontAwesomeIcon className="mr-1" size="xs" icon={faTriangleExclamation} />+ {destinationInitialSyncWarning}+ </p>+ )}</>)}{syncOption?.supportsKeySchema !== false && (diff --cc frontend/src/helpers/appConnections.tsindex 5e3d94231e,3ddd68127a..e070836258--- a/frontend/src/helpers/appConnections.ts+++ b/frontend/src/helpers/appConnections.ts@@@ -160,9 -160,9 +161,10 @@@ export const APP_CONNECTION_MAP: Record[AppConnection.AzureEntraId]: { name: "Azure Entra ID", image: "Microsoft Azure.png" },[AppConnection.Venafi]: { name: "Venafi TLS Protect Cloud", image: "Venafi.png" },[AppConnection.ExternalInfisical]: { name: "Infisical", image: "Infisical.png" },+ [AppConnection.Doppler]: { name: "Doppler", image: "Doppler.png" },[AppConnection.NetScaler]: { name: "NetScaler", image: "NetScaler.png" },- [AppConnection.Anthropic]: { name: "Anthropic", image: "Anthropic.png" }+ [AppConnection.Anthropic]: { name: "Anthropic", image: "Anthropic.png" },+ [AppConnection.TravisCI]: { name: "Travis CI", image: "Travis CI.png" }};export const getAppConnectionMethodDetails = (method: TAppConnection["method"]) => {@@@ -204,7 -204,7 +206,8 @@@case LaravelForgeConnectionMethod.ApiToken:case DbtConnectionMethod.ApiToken:case CircleCIConnectionMethod.ApiToken:+ case TravisCIConnectionMethod.ApiToken:+ case DopplerConnectionMethod.ApiToken:return { name: "API Token", icon: faKey };case VenafiConnectionMethod.ApiKey:return { name: "API Key", icon: faKey };diff --cc frontend/src/hooks/api/appConnections/enums.tsindex c4124ace7d,77d7a365ac..36a6d21259--- a/frontend/src/hooks/api/appConnections/enums.ts+++ b/frontend/src/hooks/api/appConnections/enums.ts@@@ -53,7 -53,7 +53,8 @@@ export enum AppConnectionAzureEntraId = "azure-entra-id",Venafi = "venafi",ExternalInfisical = "external-infisical",+ Doppler = "doppler",NetScaler = "netscaler",- Anthropic = "anthropic"+ Anthropic = "anthropic",+ TravisCI = "travis-ci"}diff --cc frontend/src/hooks/api/appConnections/types/app-options.tsindex 4f0049139d,2a0daae112..9ea5b88988--- a/frontend/src/hooks/api/appConnections/types/app-options.ts+++ b/frontend/src/hooks/api/appConnections/types/app-options.ts@@@ -299,9 -298,9 +302,10 @@@ export type TAppConnectionOption| TAzureEntraIdConnectionOption| TVenafiConnectionOption| TExternalInfisicalConnectionOption+ | TDopplerConnectionOption| TNetScalerConnectionOption- | TAnthropicConnectionOption;+ | TAnthropicConnectionOption+ | TTravisCIConnectionOption;export type TAppConnectionOptionMap = {[AppConnection.AWS]: TAwsConnectionOption;@@@ -358,7 -357,7 +362,8 @@@[AppConnection.AzureEntraId]: TAzureEntraIdConnectionOption;[AppConnection.Venafi]: TVenafiConnectionOption;[AppConnection.ExternalInfisical]: TExternalInfisicalConnectionOption;+ [AppConnection.Doppler]: TDopplerConnectionOption;[AppConnection.NetScaler]: TNetScalerConnectionOption;[AppConnection.Anthropic]: TAnthropicConnectionOption;+ [AppConnection.TravisCI]: TTravisCIConnectionOption;};diff --cc frontend/src/hooks/api/appConnections/types/index.tsindex 92f02268a7,2594dec898..6431db8586--- a/frontend/src/hooks/api/appConnections/types/index.ts+++ b/frontend/src/hooks/api/appConnections/types/index.ts@@@ -170,8 -170,8 +172,9 @@@ export type TAppConnection| TAzureEntraIdConnection| TVenafiConnection| TExternalInfisicalConnection+ | TNetScalerConnection+ | TDopplerConnection- | TNetScalerConnection;+ | TTravisCIConnection;export type TAvailableAppConnection = Pick<TAppConnection, "name" | "id" | "projectId">;diff --cc frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsxindex b8d6dd2417,408a252ebf..7c0baccd60--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx@@@ -275,10 -275,10 +276,12 @@@ const CreateForm = ({ app, onComplete,return <AzureEntraIdConnectionForm onSubmit={onSubmit} />;case AppConnection.ExternalInfisical:return <ExternalInfisicalConnectionForm onSubmit={onSubmit} />;+ case AppConnection.Doppler:+ return <DopplerConnectionForm onSubmit={onSubmit} />;case AppConnection.NetScaler:return <NetScalerConnectionForm onSubmit={onSubmit} />;+ case AppConnection.TravisCI:+ return <TravisCIConnectionForm onSubmit={onSubmit} />;default:throw new Error(`Unhandled App ${app}`);}@@@ -488,10 -488,10 +491,12 @@@ const UpdateForm = ({ appConnection, onreturn (<ExternalInfisicalConnectionForm onSubmit={onSubmit} appConnection={appConnection} />);+ case AppConnection.Doppler:+ return <DopplerConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;case AppConnection.NetScaler:return <NetScalerConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;+ case AppConnection.TravisCI:+ return <TravisCIConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;default:throw new Error(`Unhandled App ${(appConnection as TAppConnection).app}`);}