[v9.2.x] PostgreSQL: Fix missing CA field from configuration (#59285)
PostgreSQL: Fix missing CA field from configuration (#59280)
* PostgreSQL: Fix missing CA field from configuration
(cherry picked from commit be73418d00)
Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
This commit is contained in:
co-authored by
Oscar Kilhed
parent
9fef15403c
commit
24659cc117
@@ -153,10 +153,16 @@ export const PostgresConfigEditor = (props: DataSourcePluginOptionsEditorProps<P
|
||||
) : null}
|
||||
</FieldSet>
|
||||
|
||||
{options.jsonData.sslmode !== 'disable' ? (
|
||||
{jsonData.sslmode !== PostgresTLSModes.disable ? (
|
||||
<FieldSet label="TLS/SSL Auth Details">
|
||||
{options.jsonData.tlsConfigurationMethod === PostgresTLSMethods.fileContent ? (
|
||||
<TLSSecretsConfig editorProps={props} labelWidth={labelWidthSSLDetails}></TLSSecretsConfig>
|
||||
{jsonData.tlsConfigurationMethod === PostgresTLSMethods.fileContent ? (
|
||||
<TLSSecretsConfig
|
||||
showCACert={
|
||||
jsonData.sslmode === PostgresTLSModes.verifyCA || jsonData.sslmode === PostgresTLSModes.verifyFull
|
||||
}
|
||||
editorProps={props}
|
||||
labelWidth={labelWidthSSLDetails}
|
||||
></TLSSecretsConfig>
|
||||
) : (
|
||||
<>
|
||||
<InlineField
|
||||
|
||||
Reference in New Issue
Block a user