Merge pull request #2350 from akhilmhdh/dynamic-secret/atlas

MongoDB atlas dynamic secret
This commit is contained in:
Maidul Islam
2024-09-02 10:39:34 -04:00
committed by GitHub
19 changed files with 1463 additions and 125 deletions
+19 -1
View File
@@ -20,7 +20,8 @@ export enum DynamicSecretProviders {
Cassandra = "cassandra",
AwsIam = "aws-iam",
Redis = "redis",
AwsElastiCache = "aws-elasticache"
AwsElastiCache = "aws-elasticache",
MongoAtlas = "mongo-db-atlas"
}
export enum SqlProviders {
@@ -96,6 +97,23 @@ export type TDynamicSecretProvider =
creationStatement: string;
revocationStatement: string;
ca?: string | undefined;
}
}
|{
type: DynamicSecretProviders.MongoAtlas;
inputs: {
adminPublicKey: string;
adminPrivateKey: string;
groupId: string;
roles: {
databaseName: string;
roleName: string;
collectionName?: string;
}[];
scopes?: {
name: string;
type: string;
}[];
};
};