mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 17:27:40 +00:00
Update redis.ts
This commit is contained in:
@@ -220,6 +220,19 @@ export const RedisDatabaseProvider = (): TDynamicProviderFns => {
|
|||||||
|
|
||||||
const username = entityId;
|
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 revokeStatement = handlebars.compile(providerInputs.revocationStatement)({ username });
|
||||||
const queries = revokeStatement.toString().split(";").filter(Boolean);
|
const queries = revokeStatement.toString().split(";").filter(Boolean);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user