feat: completed atlas dynamic secret logic for ui

This commit is contained in:
=
2024-08-29 13:26:15 +05:30
parent 80a4f838a1
commit 1bc0e3087a
9 changed files with 1095 additions and 117 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;
}[];
};
};