Skip to content

Commit

Permalink
Added sslCA in sensitiveProps
Browse files Browse the repository at this point in the history
  • Loading branch information
ongdisheng committed Jan 3, 2025
1 parent 4f2081a commit 1ea9289
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wren-ui/src/apollo/server/dataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const dataSource = {

// mysql
[DataSourceName.MYSQL]: {
sensitiveProps: ['password'],
sensitiveProps: ['password', 'sslCA'],
toIbisConnectionInfo(connectionInfo) {
const decryptedConnectionInfo = decryptConnectionInfo(
DataSourceName.MYSQL,
Expand Down
1 change: 1 addition & 0 deletions wren-ui/src/apollo/server/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from './manifest';
export * from './diagram';
export * from './metric';
export * from './context';
export * from './sslMode';
5 changes: 5 additions & 0 deletions wren-ui/src/apollo/server/types/sslMode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export enum SSLMode {
DISABLE = 'Disable',
REQUIRE = 'Require',
VERIFY_CA = 'Verify CA',
}

0 comments on commit 1ea9289

Please sign in to comment.