Skip to content

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

feat: addressed review comments

=4d586469c128
diff --git a/backend/src/services/app-connection/ssh/ssh-connection-fns.ts b/backend/src/services/app-connection/ssh/ssh-connection-fns.ts
index 7565ac4132..4416605948 100644
--- a/backend/src/services/app-connection/ssh/ssh-connection-fns.ts
+++ b/backend/src/services/app-connection/ssh/ssh-connection-fns.ts
@@ -87,7 +87,7 @@ export const executeWithPotentialGateway = async <T>(
): Promise<T> => {
const { gatewayId, credentials } = config;
- if (gatewayId && gatewayV2Service) {
+ if (gatewayId) {
await blockLocalAndPrivateIpAddresses(`ssh://${credentials.host}:${credentials.port}`, true);
const platformConnectionDetails = await gatewayV2Service.getPlatformConnectionDetailsByGatewayId({
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/SshConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/SshConnectionForm.tsx
index eb03ab0c2e..e458079756 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/SshConnectionForm.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/SshConnectionForm.tsx
@@ -76,13 +76,13 @@ export const SshConnectionForm = ({ appConnection, onSubmit }: Props) => {
}
: {
app: AppConnection.SSH,
- method: SshConnectionMethod.Password,
+ method: SshConnectionMethod.SshKey,
gatewayId: null,
credentials: {
host: "",
port: 22,
username: "",
- password: ""
+ privateKey: ""
}
}
});
@@ -219,7 +219,7 @@ export const SshConnectionForm = ({ appConnection, onSubmit }: Props) => {
isError={Boolean(error?.message)}
label="Host"
>
- <Input {...field} placeholder="hostname or IP address" />
+ <Input {...field} placeholder="Hostname or IP address" />
</FormControl>
)}
/>