Skip to content

Commit

Permalink
cherrypick ssl mongo (elastic#172851)
Browse files Browse the repository at this point in the history
## Summary

Retrying elastic#172658 since something
in the automation isn't working




### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: parthpuri-elastic <[email protected]>
  • Loading branch information
seanstory and parthpuri-elastic authored Dec 7, 2023
1 parent bb84e24 commit 4ea262d
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions packages/kbn-search-connectors/types/native_connectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,84 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
validations: [],
value: false,
},
ssl_enabled: {
default_value: false,
depends_on: [],
display: DisplayType.TOGGLE,
label: i18n.translate(
'searchConnectors.nativeConnectors.mongodb.configuration.sslEnabledLabel',
{
defaultMessage: 'SSL/TLS Connection',
}
),
options: [],
order: 7,
required: true,
sensitive: false,
tooltip: i18n.translate(
'searchConnectors.nativeConnectors.mongodb.configuration.sslEnabledTooltip',
{
defaultMessage:
'This option establishes a secure connection to the MongoDB server using SSL/TLS encryption. Ensure that your MongoDB deployment supports SSL/TLS connections. Enable if MongoDB cluster uses DNS SRV records.',
}
),
type: FieldType.BOOLEAN,
ui_restrictions: [],
validations: [],
value: false,
},
ssl_ca: {
default_value: '',
depends_on: [{ field: 'ssl_enabled', value: true }],
display: DisplayType.TEXTBOX,
label: i18n.translate(
'searchConnectors.nativeConnectors.mongodb.configuration.sslCaLabel',
{
defaultMessage: 'Certificate Authority (.pem)',
}
),
options: [],
order: 8,
required: false,
sensitive: false,
tooltip: i18n.translate(
'searchConnectors.nativeConnectors.mongodb.configuration.sslCaTooltip',
{
defaultMessage:
'Specifies the root certificate from the Certificate Authority. The value of the certificate is used to validate the certificate presented by the MongoDB instance.',
}
),
type: FieldType.STRING,
ui_restrictions: [],
validations: [],
value: '',
},
tls_insecure: {
default_value: false,
depends_on: [{ field: 'ssl_enabled', value: true }],
display: DisplayType.TOGGLE,
label: i18n.translate(
'searchConnectors.nativeConnectors.mongodb.configuration.tlsInsecureLabel',
{
defaultMessage: 'Skip certificate verification',
}
),
options: [],
order: 9,
required: true,
sensitive: false,
tooltip: i18n.translate(
'searchConnectors.nativeConnectors.mongodb.configuration.tlsInsecureTooltip',
{
defaultMessage:
"This option skips certificate validation for TLS/SSL connections to your MongoDB server. We strongly recommend setting this option to 'disable'.",
}
),
type: FieldType.BOOLEAN,
ui_restrictions: ['advanced'],
validations: [],
value: false,
},
},
features: {
[FeatureName.FILTERING_ADVANCED_CONFIG]: true,
Expand Down

0 comments on commit 4ea262d

Please sign in to comment.