Skip to content

Commit 50fdfa0

Browse files
authored
ui: add ch root ca field back (#3013)
accidentally replaced it while adding s3 root ca field
1 parent d85884e commit 50fdfa0

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

  • ui/app/peers/create/[peerType]/helpers

ui/app/peers/create/[peerType]/helpers/ch.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,23 @@ export const clickhouseSetting: PeerSetting[] = [
7777
optional: true,
7878
tips: 'This is only needed if the user is authenticated via certificate.',
7979
},
80+
{
81+
label: 'Root Certificate',
82+
stateHandler: (value, setter) => {
83+
if (!value) {
84+
// remove key from state if empty
85+
setter((curr) => {
86+
const newCurr = { ...curr } as ClickhouseConfig;
87+
delete newCurr.rootCa;
88+
return newCurr;
89+
});
90+
} else setter((curr) => ({ ...curr, rootCa: value as string }));
91+
},
92+
type: 'file',
93+
optional: true,
94+
tips: 'If not provided, host CA roots will be used.',
95+
s3: true,
96+
},
8097
{
8198
label: 'S3 Path',
8299
stateHandler: (value, setter) =>

0 commit comments

Comments
 (0)