MySQL: make it possible to add CA cert without using tlsAuth (#58226)

This commit is contained in:
Oscar Kilhed
2022-11-07 09:38:42 +01:00
committed by GitHub
parent d673c8809b
commit b1bfae0350
2 changed files with 42 additions and 35 deletions

View File

@@ -128,10 +128,11 @@ export const ConfigurationEditor = (props: DataSourcePluginOptionsEditorProps<My
</InlineField>
</FieldSet>
{options.jsonData.tlsAuth ? (
{jsonData.tlsAuth || jsonData.tlsAuthWithCACert ? (
<FieldSet label="TLS/SSL Auth Details">
<TLSSecretsConfig
showCACert={jsonData.tlsAuthWithCACert}
showKeyPair={jsonData.tlsAuth}
editorProps={props}
labelWidth={25}
></TLSSecretsConfig>