mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Update redis.ts
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user