Skip to content

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

fix UI to list rundeck sync

adilson7462a554f511
diff --git a/backend/src/services/secret-sync/rundeck/rundeck-sync-fns.ts b/backend/src/services/secret-sync/rundeck/rundeck-sync-fns.ts
index e9dd8d01f8..b46000b9cc 100644
--- a/backend/src/services/secret-sync/rundeck/rundeck-sync-fns.ts
+++ b/backend/src/services/secret-sync/rundeck/rundeck-sync-fns.ts
@@ -31,7 +31,8 @@ type TRundeckStorageListResponse = {
*/
const getRundeckStoragePath = (project: string, path: string) => {
const normalizedPath = path.replace(/^\/+|\/+$/g, "");
- return `keys/project/${project}/${normalizedPath}`;
+ const basePath = `keys/project/${encodeURIComponent(project)}`;
+ return normalizedPath ? `${basePath}/${normalizedPath}` : basePath;
};
const getRundeckClientDetails = async (secretSync: TRundeckSyncWithCredentials) => {
diff --git a/backend/src/services/secret-sync/rundeck/rundeck-sync-schemas.ts b/backend/src/services/secret-sync/rundeck/rundeck-sync-schemas.ts
index 159306e7d1..a93f9e8bce 100644
--- a/backend/src/services/secret-sync/rundeck/rundeck-sync-schemas.ts
+++ b/backend/src/services/secret-sync/rundeck/rundeck-sync-schemas.ts
@@ -13,7 +13,7 @@ import { SECRET_SYNC_NAME_MAP } from "../secret-sync-maps";
const RundeckSyncDestinationConfigSchema = z.object({
project: z.string().min(1, "Project is required").max(255),
- path: z.string().min(1, "Path is required").max(255)
+ path: z.string().min(1, "Path is required").max(255).startsWith("/", "Path must start with '/'")
});
const RundeckSyncOptionsConfig: TSyncOptionsConfig = { canImportSecrets: false };
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/RundeckSyncFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/RundeckSyncFields.tsx
index f6f13c2f68..07b8ce603a 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/RundeckSyncFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/RundeckSyncFields.tsx
@@ -76,11 +76,13 @@ export const RundeckSyncFields = () => {
<Input
value={value}
onChange={onChange}
- placeholder="production"
+ placeholder="/production"
isError={Boolean(error)}
/>
<FieldDescription>
- {`Secrets are stored in this project's Rundeck Key Storage under keys/project/<project>/<path>.`}
+ {
+ "Path must start with '/'. Secrets are stored in Rundeck Key Storage under keys/project/<project><path>."
+ }
</FieldDescription>
<FieldError errors={[error]} />
</FieldContent>
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/SecretSyncDestinationFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/SecretSyncDestinationFields.tsx
index 6b5bf8be04..9e8585d4e5 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/SecretSyncDestinationFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/SecretSyncDestinationFields.tsx
@@ -37,8 +37,8 @@ import { OnaSyncFields } from "./OnaSyncFields";
import { OvhSyncFields } from "./OvhSyncFields";
import { RailwaySyncFields } from "./RailwaySyncFields";
import { RenderSyncFields } from "./RenderSyncFields";
-import { SnowflakeSyncFields } from "./SnowflakeSyncFields";
import { RundeckSyncFields } from "./RundeckSyncFields";
+import { SnowflakeSyncFields } from "./SnowflakeSyncFields";
import { SupabaseSyncFields } from "./SupabaseSyncFields";
import { TeamCitySyncFields } from "./TeamCitySyncFields";
import { TerraformCloudSyncFields } from "./TerraformCloudSyncFields";
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/SecretSyncReviewFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/SecretSyncReviewFields.tsx
index 426403e682..ba1ae4cef0 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/SecretSyncReviewFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/SecretSyncReviewFields.tsx
@@ -58,8 +58,8 @@ import { OnePassSyncReviewFields } from "./OnePassSyncReviewFields";
import { OvhSyncReviewFields } from "./OvhSyncReviewFields";
import { RailwaySyncReviewFields } from "./RailwaySyncReviewFields";
import { RenderSyncOptionsReviewFields, RenderSyncReviewFields } from "./RenderSyncReviewFields";
-import { SnowflakeSyncReviewFields } from "./SnowflakeSyncReviewFields";
import { RundeckSyncReviewFields } from "./RundeckSyncReviewFields";
+import { SnowflakeSyncReviewFields } from "./SnowflakeSyncReviewFields";
import { SupabaseSyncReviewFields } from "./SupabaseSyncReviewFields";
import { TeamCitySyncReviewFields } from "./TeamCitySyncReviewFields";
import { TerraformCloudSyncReviewFields } from "./TerraformCloudSyncReviewFields";
diff --git a/frontend/src/components/secret-syncs/forms/schemas/rundeck-sync-destination-schema.ts b/frontend/src/components/secret-syncs/forms/schemas/rundeck-sync-destination-schema.ts
index f11af7256d..6b32a83ba0 100644
--- a/frontend/src/components/secret-syncs/forms/schemas/rundeck-sync-destination-schema.ts
+++ b/frontend/src/components/secret-syncs/forms/schemas/rundeck-sync-destination-schema.ts
@@ -8,7 +8,7 @@ export const RundeckSyncDestinationSchema = BaseSecretSyncSchema().merge(
destination: z.literal(SecretSync.Rundeck),
destinationConfig: z.object({
project: z.string().trim().min(1, "Project is required"),
- path: z.string().trim().min(1, "Path is required")
+ path: z.string().trim().min(1, "Path is required").startsWith("/", "Path must start with '/'")
})
})
);
diff --git a/frontend/src/components/secret-syncs/forms/schemas/secret-sync-schema.ts b/frontend/src/components/secret-syncs/forms/schemas/secret-sync-schema.ts
index d82bb8c78b..3cd038745b 100644
--- a/frontend/src/components/secret-syncs/forms/schemas/secret-sync-schema.ts
+++ b/frontend/src/components/secret-syncs/forms/schemas/secret-sync-schema.ts
@@ -34,8 +34,8 @@ import { OnaSyncDestinationSchema } from "./ona-sync-destination-schema";
import { OvhSyncDestinationSchema } from "./ovh-sync-destination-schema";
import { RailwaySyncDestinationSchema } from "./railway-sync-destination-schema";
import { RenderSyncDestinationSchema } from "./render-sync-destination-schema";
-import { SnowflakeSyncDestinationSchema } from "./snowflake-sync-destination-schema";
import { RundeckSyncDestinationSchema } from "./rundeck-sync-destination-schema";
+import { SnowflakeSyncDestinationSchema } from "./snowflake-sync-destination-schema";
import { SupabaseSyncDestinationSchema } from "./supabase-sync-destination-schema";
import { TeamCitySyncDestinationSchema } from "./teamcity-sync-destination-schema";
import { TerraformCloudSyncDestinationSchema } from "./terraform-cloud-destination-schema";
diff --git a/frontend/src/hooks/api/secretSyncs/types/index.ts b/frontend/src/hooks/api/secretSyncs/types/index.ts
index 85d7f2a576..229c000a42 100644
--- a/frontend/src/hooks/api/secretSyncs/types/index.ts
+++ b/frontend/src/hooks/api/secretSyncs/types/index.ts
@@ -35,8 +35,8 @@ import { TOnaSync } from "./ona-sync";
import { TOvhSync } from "./ovh-sync";
import { TRailwaySync } from "./railway-sync";
import { TRenderSync } from "./render-sync";
-import { TSnowflakeSync } from "./snowflake-sync";
import { TRundeckSync } from "./rundeck-sync";
+import { TSnowflakeSync } from "./snowflake-sync";
import { TSupabaseSync } from "./supabase";
import { TTeamCitySync } from "./teamcity-sync";
import { TTerraformCloudSync } from "./terraform-cloud-sync";
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncDestinationCol/RundeckSyncDestinationCol.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncDestinationCol/RundeckSyncDestinationCol.tsx
new file mode 100644
index 0000000000..f6f0a2daba
--- /dev/null
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncDestinationCol/RundeckSyncDestinationCol.tsx
@@ -0,0 +1,14 @@
+import { TRundeckSync } from "@app/hooks/api/secretSyncs/types/rundeck-sync";
+
+import { getSecretSyncDestinationColValues } from "../helpers";
+import { SecretSyncTableCell } from "../SecretSyncTableCell";
+
+type Props = {
+ secretSync: TRundeckSync;
+};
+
+export const RundeckSyncDestinationCol = ({ 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.tsx
index c3bdc94149..5a287bf27e 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
@@ -34,6 +34,7 @@ import { OnaSyncDestinationCol } from "./OnaSyncDestinationCol";
import { OvhSyncDestinationCol } from "./OvhSyncDestinationCol";
import { RailwaySyncDestinationCol } from "./RailwaySyncDestinationCol";
import { RenderSyncDestinationCol } from "./RenderSyncDestinationCol";
+import { RundeckSyncDestinationCol } from "./RundeckSyncDestinationCol";
import { SnowflakeSyncDestinationCol } from "./SnowflakeSyncDestinationCol";
import { SupabaseSyncDestinationCol } from "./SupabaseSyncDestinationCol";
import { TeamCitySyncDestinationCol } from "./TeamCitySyncDestinationCol";
@@ -104,6 +105,8 @@ export const SecretSyncDestinationCol = ({ secretSync }: Props) => {
return <ChecklySyncDestinationCol secretSync={secretSync} />;
case SecretSync.Supabase:
return <SupabaseSyncDestinationCol secretSync={secretSync} />;
+ case SecretSync.Rundeck:
+ return <RundeckSyncDestinationCol secretSync={secretSync} />;
case SecretSync.DigitalOceanAppPlatform:
return <DigitalOceanAppPlatformSyncDestinationCol secretSync={secretSync} />;
case SecretSync.Netlify:
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.ts
index faea905f45..cc4e8901be 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
@@ -195,6 +195,10 @@ export const getSecretSyncDestinationColValues = (secretSync: TSecretSync) => {
primaryText = destinationConfig.projectName;
secondaryText = "Supabase Project";
break;
+ case SecretSync.Rundeck:
+ primaryText = destinationConfig.project;
+ secondaryText = destinationConfig.path;
+ break;
case SecretSync.DigitalOceanAppPlatform:
primaryText = destinationConfig.appName;
secondaryText = "Digital Ocean App";
diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/RundeckSyncDestinationSection.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/RundeckSyncDestinationSection.tsx
new file mode 100644
index 0000000000..bae456c798
--- /dev/null
+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/RundeckSyncDestinationSection.tsx
@@ -0,0 +1,23 @@
+import { Detail, DetailLabel, DetailValue } from "@app/components/v3";
+import { TRundeckSync } from "@app/hooks/api/secretSyncs/types/rundeck-sync";
+
+type Props = {
+ secretSync: TRundeckSync;
+};
+
+export const RundeckSyncDestinationSection = ({ secretSync }: Props) => {
+ const { destinationConfig } = secretSync;
+
+ return (
+ <>
+ <Detail>
+ <DetailLabel>Project</DetailLabel>
+ <DetailValue>{destinationConfig.project}</DetailValue>
+ </Detail>
+ <Detail>
+ <DetailLabel>Path</DetailLabel>
+ <DetailValue>{destinationConfig.path}</DetailValue>
+ </Detail>
+ </>
+ );
+};
diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/SecretSyncDestinatonSection.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/SecretSyncDestinatonSection.tsx
index 0e7bb59d90..8baebbe7b4 100644
--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/SecretSyncDestinatonSection.tsx
+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/SecretSyncDestinatonSection.tsx
@@ -38,6 +38,7 @@ import { OnaSyncDestinationSection } from "./OnaSyncDestinationSection";
import { OvhSyncDestinationSection } from "./OvhSyncDestinationSection";
import { RailwaySyncDestinationSection } from "./RailwaySyncDestinationSection";
import { RenderSyncDestinationSection } from "./RenderSyncDestinationSection";
+import { RundeckSyncDestinationSection } from "./RundeckSyncDestinationSection";
import { SnowflakeSyncDestinationSection } from "./SnowflakeSyncDestinationSection";
import { SupabaseSyncDestinationSection } from "./SupabaseSyncDestinationSection";
import { TeamCitySyncDestinationSection } from "./TeamCitySyncDestinationSection";
@@ -142,6 +143,9 @@ export const SecretSyncDestinationSection = ({ secretSync }: Props) => {
case SecretSync.Supabase:
DestinationComponents = <SupabaseSyncDestinationSection secretSync={secretSync} />;
break;
+ case SecretSync.Rundeck:
+ DestinationComponents = <RundeckSyncDestinationSection secretSync={secretSync} />;
+ break;
case SecretSync.DigitalOceanAppPlatform:
DestinationComponents = (
<DigitalOceanAppPlatformSyncDestinationSection secretSync={secretSync} />
diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/SecretSyncOptionsSection.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/SecretSyncOptionsSection.tsx
index 1775c4b977..33c6e0f4ba 100644
--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/SecretSyncOptionsSection.tsx
+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/SecretSyncOptionsSection.tsx
@@ -91,6 +91,7 @@ export const SecretSyncOptionsSection = ({ secretSync }: Props) => {
case SecretSync.Ona:
case SecretSync.TravisCI:
case SecretSync.Snowflake:
+ case SecretSync.Rundeck:
AdditionalSyncOptionsComponent = null;
break;
default: