Skip to content

Commit

Permalink
feat(ui): added dynamic secret ui for cassandra
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilmhdh committed Apr 22, 2024
1 parent a0f0593 commit 3745b65
Show file tree
Hide file tree
Showing 8 changed files with 849 additions and 44 deletions.
47 changes: 32 additions & 15 deletions frontend/src/hooks/api/dynamicSecret/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export type TDynamicSecret = {
};

export enum DynamicSecretProviders {
SqlDatabase = "sql-database"
SqlDatabase = "sql-database",
Cassandra = "cassandra"
}

export enum SqlProviders {
Expand All @@ -25,21 +26,37 @@ export enum SqlProviders {
Oracle = "oracledb"
}

export type TDynamicSecretProvider = {
type: DynamicSecretProviders;
inputs: {
client: SqlProviders;
host: string;
port: number;
database: string;
username: string;
password: string;
creationStatement: string;
revocationStatement: string;
renewStatement?: string;
ca?: string | undefined;
export type TDynamicSecretProvider =
| {
type: DynamicSecretProviders.SqlDatabase;
inputs: {
client: SqlProviders;
host: string;
port: number;
database: string;
username: string;
password: string;
creationStatement: string;
revocationStatement: string;
renewStatement?: string;
ca?: string | undefined;
};
}
| {
type: DynamicSecretProviders.Cassandra;
inputs: {
host: string;
port: number;
keyspace?: string;
localDataCenter: string;
username: string;
password: string;
creationStatement: string;
revocationStatement: string;
renewStatement?: string;
ca?: string | undefined;
};
};
};

export type TCreateDynamicSecretDTO = {
projectSlug: string;
Expand Down
Loading

0 comments on commit 3745b65

Please sign in to comment.