feat(dynamic-secrets): ElasticSearch support

This commit is contained in:
Daniel Hougaard
2024-09-04 13:47:17 +04:00
parent d93cbb023d
commit 5df140cbd5
6 changed files with 878 additions and 7 deletions
+26 -3
View File
@@ -21,7 +21,8 @@ export enum DynamicSecretProviders {
AwsIam = "aws-iam",
Redis = "redis",
AwsElastiCache = "aws-elasticache",
MongoAtlas = "mongo-db-atlas"
MongoAtlas = "mongo-db-atlas",
ElasticSearch = "elastic-search"
}
export enum SqlProviders {
@@ -97,9 +98,9 @@ export type TDynamicSecretProvider =
creationStatement: string;
revocationStatement: string;
ca?: string | undefined;
}
};
}
|{
| {
type: DynamicSecretProviders.MongoAtlas;
inputs: {
adminPublicKey: string;
@@ -115,6 +116,28 @@ export type TDynamicSecretProvider =
type: string;
}[];
};
}
| {
type: DynamicSecretProviders.ElasticSearch;
inputs: {
host: string;
port: number;
creationStatement: string;
revocationStatement: string;
ca?: string | undefined;
auth:
| {
type: "user";
username: string;
password: string;
}
| {
type: "api-key";
apiKey: string;
apiKeyId: string;
};
};
};
export type TCreateDynamicSecretDTO = {