Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: banner on warning secret deletion in fly.io integration

=eeb2e89d1acd
diff --git a/frontend/src/components/v2/Alert/Alert.tsx b/frontend/src/components/v2/Alert/Alert.tsx
index c43857da10..3d2dd63939 100644
--- a/frontend/src/components/v2/Alert/Alert.tsx
+++ b/frontend/src/components/v2/Alert/Alert.tsx
@@ -81,7 +81,7 @@ const AlertDescription = forwardRef<
HTMLParagraphElement,
React.HTMLAttributes<HTMLParagraphElement>
>(({ className, ...props }, ref) => (
- <div ref={ref} className={twMerge("text-sm [&_p]:leading-relaxed", className)} {...props} />
+ <div ref={ref} className={twMerge("text-sm", className)} {...props} />
));
AlertDescription.displayName = "AlertDescription";
diff --git a/frontend/src/pages/integrations/flyio/create.tsx b/frontend/src/pages/integrations/flyio/create.tsx
index baa92524a1..e9747bc1b1 100644
--- a/frontend/src/pages/integrations/flyio/create.tsx
+++ b/frontend/src/pages/integrations/flyio/create.tsx
@@ -15,6 +15,8 @@ import queryString from "query-string";
import { useCreateIntegration } from "@app/hooks/api";
import {
+ Alert,
+ AlertDescription,
Button,
Card,
CardTitle,
@@ -40,7 +42,7 @@ export default function FlyioCreateIntegrationPage() {
const { data: integrationAuth, isLoading: isIntegrationAuthLoading } = useGetIntegrationAuthById(
(integrationAuthId as string) ?? ""
);
- const { data: integrationAuthApps, isLoading: isIntegrationAuthAppsLoading } =
+ const { data: integrationAuthApps = [], isLoading: isIntegrationAuthAppsLoading } =
useGetIntegrationAuthApps({
integrationAuthId: (integrationAuthId as string) ?? ""
});
@@ -130,6 +132,14 @@ export default function FlyioCreateIntegrationPage() {
</Link>
</div>
</CardTitle>
+ <div className="px-6 pb-4">
+ <Alert hideTitle variant="warning">
+ <AlertDescription>
+ All existing secrets of your connected flyio project will be permanently removed upon
+ integration.
+ </AlertDescription>
+ </Alert>
+ </div>
<FormControl label="Project Environment" className="px-6">
<Select
value={selectedSourceEnvironment}