Skip to content

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

addressed requested changes

Daniel Hougaardac9202867f8c
diff --git a/backend/src/services/app-connection/redis/redis-connection-fns.ts b/backend/src/services/app-connection/redis/redis-connection-fns.ts
index 901016b3cd..4141d2f9a2 100644
--- a/backend/src/services/app-connection/redis/redis-connection-fns.ts
+++ b/backend/src/services/app-connection/redis/redis-connection-fns.ts
@@ -1,5 +1,6 @@
import Redis from "ioredis";
+import { verifyHostInputValidity } from "@app/ee/services/dynamic-secret/dynamic-secret-fns";
import { BadRequestError } from "@app/lib/errors";
import { AppConnection } from "@app/services/app-connection/app-connection-enums";
@@ -16,11 +17,13 @@ export const getRedisConnectionListItem = () => {
};
export const validateRedisConnectionCredentials = async (config: TRedisConnectionConfig) => {
+ const [hostIp] = await verifyHostInputValidity(config.credentials.host);
+
let connection: Redis | null = null;
try {
connection = new Redis({
username: config.credentials.username,
- host: config.credentials.host,
+ host: hostIp,
port: config.credentials.port,
password: config.credentials.password,
...(config.credentials.sslEnabled && {
diff --git a/frontend/src/helpers/appConnections.ts b/frontend/src/helpers/appConnections.ts
index ab7ee7c90d..d0e3dcba17 100644
--- a/frontend/src/helpers/appConnections.ts
+++ b/frontend/src/helpers/appConnections.ts
@@ -36,6 +36,7 @@ import {
OnePassConnectionMethod,
OracleDBConnectionMethod,
PostgresConnectionMethod,
+ RedisConnectionMethod,
TAppConnection,
TeamCityConnectionMethod,
TerraformCloudConnectionMethod,
@@ -156,6 +157,7 @@ export const getAppConnectionMethodDetails = (method: TAppConnection["method"])
case MySqlConnectionMethod.UsernameAndPassword:
case OracleDBConnectionMethod.UsernameAndPassword:
case AzureADCSConnectionMethod.UsernamePassword:
+ case RedisConnectionMethod.UsernameAndPassword:
return { name: "Username & Password", icon: faLock };
case HCVaultConnectionMethod.AccessToken:
case TeamCityConnectionMethod.AccessToken: