Skip to content

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

Update redis.ts

Daniel Hougaard56bbf502a2b9
diff --git a/backend/src/ee/services/dynamic-secret/providers/redis.ts b/backend/src/ee/services/dynamic-secret/providers/redis.ts
index 454e8957b4..de836bec9a 100644
--- a/backend/src/ee/services/dynamic-secret/providers/redis.ts
+++ b/backend/src/ee/services/dynamic-secret/providers/redis.ts
@@ -220,6 +220,19 @@ export const RedisDatabaseProvider = (): TDynamicProviderFns => {
const username = entityId;
+ if (providerInputs.client === RedisProviders.Elasticache) {
+ await ElastiCacheUserManager(
+ {
+ accessKeyId: providerInputs.username,
+ secretAccessKey: providerInputs.password!
+ },
+ providerInputs.elastiCacheRegion!
+ ).deleteUser({ UserId: username });
+
+ await connection.quit();
+ return { entityId: username };
+ }
+
const revokeStatement = handlebars.compile(providerInputs.revocationStatement)({ username });
const queries = revokeStatement.toString().split(";").filter(Boolean);