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
add message about public and private secrets on FE
adilsond01010281204
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsxindex 912e11fc2d..1aac98ca86 100644--- a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx+++ b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncOptionsFields.tsx@@ -26,6 +26,29 @@ 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;++ 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 &&+ " 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>();@@ -36,6 +59,9 @@ export const SecretSyncOptionsFields = ({ hideInitialSync }: Props) => {const { syncOption } = useSecretSyncOption(destination);+ const destinationInitialSyncWarning =+ DESTINATION_INITIAL_SYNC_WARNINGS[destination]?.(currentSyncOption);+let AdditionalSyncOptionsFieldsComponent: ReactNode;switch (destination) {@@ -176,6 +202,12 @@ export const SecretSyncOptionsFields = ({ hideInitialSync }: Props) => {</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 && (