Skip to content

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

misc: addressed comment

Sheen Capadngan649dd589f6ce
diff --git a/backend/src/ee/services/pam-resource/pam-resource-fns.ts b/backend/src/ee/services/pam-resource/pam-resource-fns.ts
index 5cd269f602..b7e8bed787 100644
--- a/backend/src/ee/services/pam-resource/pam-resource-fns.ts
+++ b/backend/src/ee/services/pam-resource/pam-resource-fns.ts
@@ -11,6 +11,7 @@ import { getMySQLResourceListItem } from "./mysql/mysql-resource-fns";
import { TPamResource, TPamResourceConnectionDetails, TPamResourceInternalMetadata } from "./pam-resource-types";
import { getPostgresResourceListItem } from "./postgres/postgres-resource-fns";
import { getRedisResourceListItem } from "./redis/redis-resource-fns";
+import { getSSHResourceListItem } from "./ssh/ssh-resource-fns";
import { getWindowsResourceListItem } from "./windows-server/windows-server-resource-fns";
export const listResourceOptions = () => {
@@ -22,7 +23,8 @@ export const listResourceOptions = () => {
getKubernetesResourceListItem(),
getRedisResourceListItem(),
getWindowsResourceListItem(),
- getActiveDirectoryResourceListItem()
+ getActiveDirectoryResourceListItem(),
+ getSSHResourceListItem()
].sort((a, b) => a.name.localeCompare(b.name));
};
diff --git a/backend/src/ee/services/pam-resource/ssh/ssh-resource-fns.ts b/backend/src/ee/services/pam-resource/ssh/ssh-resource-fns.ts
new file mode 100644
index 0000000000..ef4774fc81
--- /dev/null
+++ b/backend/src/ee/services/pam-resource/ssh/ssh-resource-fns.ts
@@ -0,0 +1,8 @@
+import { SSHResourceListItemSchema } from "./ssh-resource-schemas";
+
+export const getSSHResourceListItem = () => {
+ return {
+ name: SSHResourceListItemSchema.shape.name.value,
+ resource: SSHResourceListItemSchema.shape.resource.value
+ };
+};