mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PostgreSQL: Fix missing CA field from configuration (#59280)
* PostgreSQL: Fix missing CA field from configuration
This commit is contained in:
parent
314c22bc5b
commit
be73418d00
@ -153,10 +153,16 @@ export const PostgresConfigEditor = (props: DataSourcePluginOptionsEditorProps<P
|
|||||||
) : null}
|
) : null}
|
||||||
</FieldSet>
|
</FieldSet>
|
||||||
|
|
||||||
{options.jsonData.sslmode !== 'disable' ? (
|
{jsonData.sslmode !== PostgresTLSModes.disable ? (
|
||||||
<FieldSet label="TLS/SSL Auth Details">
|
<FieldSet label="TLS/SSL Auth Details">
|
||||||
{options.jsonData.tlsConfigurationMethod === PostgresTLSMethods.fileContent ? (
|
{jsonData.tlsConfigurationMethod === PostgresTLSMethods.fileContent ? (
|
||||||
<TLSSecretsConfig editorProps={props} labelWidth={labelWidthSSLDetails}></TLSSecretsConfig>
|
<TLSSecretsConfig
|
||||||
|
showCACert={
|
||||||
|
jsonData.sslmode === PostgresTLSModes.verifyCA || jsonData.sslmode === PostgresTLSModes.verifyFull
|
||||||
|
}
|
||||||
|
editorProps={props}
|
||||||
|
labelWidth={labelWidthSSLDetails}
|
||||||
|
></TLSSecretsConfig>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<InlineField
|
<InlineField
|
||||||
|
Loading…
Reference in New Issue
Block a user