mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Add new native fields for SPO connector - certificate authenticate (#205337)
## Summary This PR reflects the changes done in https://github.com/elastic/connectors/pull/3064: update of Sharepoint Online native connector configurable fields. ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [ ] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [ ] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
This commit is contained in:
parent
a3f07db7b6
commit
f612e71452
1 changed files with 147 additions and 58 deletions
|
@ -4242,6 +4242,45 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
validations: [],
|
||||
value: '',
|
||||
},
|
||||
auth_method: {
|
||||
default_value: null,
|
||||
depends_on: [],
|
||||
display: DROPDOWN,
|
||||
label: translate(
|
||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.authMethodLabel',
|
||||
{
|
||||
defaultMessage: 'Authentication Method',
|
||||
}
|
||||
),
|
||||
options: [
|
||||
{
|
||||
label: translate(
|
||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.authMethod.clientSecretLabel',
|
||||
{
|
||||
defaultMessage: 'Client Secret',
|
||||
}
|
||||
),
|
||||
value: 'secret',
|
||||
},
|
||||
{
|
||||
label: translate(
|
||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.authMethod.certificateLabel',
|
||||
{
|
||||
defaultMessage: 'Certificate',
|
||||
}
|
||||
),
|
||||
value: 'certificate',
|
||||
},
|
||||
],
|
||||
order: 4,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: null,
|
||||
type: STRING,
|
||||
ui_restrictions: [],
|
||||
validations: [],
|
||||
value: 'certificate',
|
||||
},
|
||||
secret_value: {
|
||||
default_value: null,
|
||||
depends_on: [],
|
||||
|
@ -4253,7 +4292,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
}
|
||||
),
|
||||
options: [],
|
||||
order: 4,
|
||||
order: 5,
|
||||
required: true,
|
||||
sensitive: true,
|
||||
tooltip: '',
|
||||
|
@ -4262,6 +4301,56 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
validations: [],
|
||||
value: '',
|
||||
},
|
||||
certificate: {
|
||||
default_value: null,
|
||||
depends_on: [
|
||||
{
|
||||
field: 'auth_method',
|
||||
value: 'certificate',
|
||||
},
|
||||
],
|
||||
display: TEXTAREA,
|
||||
label: translate(
|
||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.certificateLabel',
|
||||
{
|
||||
defaultMessage: 'Content of certificate file',
|
||||
}
|
||||
),
|
||||
options: [],
|
||||
order: 6,
|
||||
required: true,
|
||||
sensitive: true,
|
||||
tooltip: null,
|
||||
type: STRING,
|
||||
ui_restrictions: [],
|
||||
validations: [],
|
||||
value: '',
|
||||
},
|
||||
private_key: {
|
||||
default_value: null,
|
||||
depends_on: [
|
||||
{
|
||||
field: 'auth_method',
|
||||
value: 'certificate',
|
||||
},
|
||||
],
|
||||
display: TEXTAREA,
|
||||
label: translate(
|
||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.privateKeyLabel',
|
||||
{
|
||||
defaultMessage: 'Content of private key file',
|
||||
}
|
||||
),
|
||||
options: [],
|
||||
order: 7,
|
||||
required: true,
|
||||
sensitive: true,
|
||||
tooltip: null,
|
||||
type: STRING,
|
||||
ui_restrictions: [],
|
||||
validations: [],
|
||||
value: '',
|
||||
},
|
||||
site_collections: {
|
||||
default_value: null,
|
||||
depends_on: [],
|
||||
|
@ -4273,7 +4362,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
}
|
||||
),
|
||||
options: [],
|
||||
order: 5,
|
||||
order: 8,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: translate(
|
||||
|
@ -4289,13 +4378,63 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
validations: [],
|
||||
value: '*',
|
||||
},
|
||||
enumerate_all_sites: {
|
||||
default_value: true,
|
||||
depends_on: [],
|
||||
display: TOGGLE,
|
||||
label: translate(
|
||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.enumerateAllSitesLabel',
|
||||
{ defaultMessage: 'Enumerate all sites?' }
|
||||
),
|
||||
options: [],
|
||||
order: 9,
|
||||
required: false,
|
||||
sensitive: false,
|
||||
tooltip: translate(
|
||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.enumerateAllSitesTooltip',
|
||||
{
|
||||
defaultMessage:
|
||||
'If enabled, sites will be fetched in bulk, then filtered down to the configured list of sites. This is efficient when syncing many sites. If disabled, each configured site will be fetched with an individual request. This is efficient when syncing fewer sites.',
|
||||
}
|
||||
),
|
||||
type: BOOLEAN,
|
||||
ui_restrictions: [],
|
||||
validations: [],
|
||||
value: true,
|
||||
},
|
||||
fetch_subsites: {
|
||||
default_value: false,
|
||||
depends_on: [{ field: 'enumerate_all_sites', value: false }],
|
||||
display: TOGGLE,
|
||||
label: translate(
|
||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.fetchSubsitesLabel',
|
||||
{
|
||||
defaultMessage: 'Fetch sub-sites of configured sites?',
|
||||
}
|
||||
),
|
||||
options: [],
|
||||
order: 10,
|
||||
required: false,
|
||||
sensitive: false,
|
||||
tooltip: translate(
|
||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.fetchSubsitesTooltip',
|
||||
{
|
||||
defaultMessage:
|
||||
'Whether subsites of the configured site(s) should be automatically fetched.',
|
||||
}
|
||||
),
|
||||
type: BOOLEAN,
|
||||
ui_restrictions: [],
|
||||
validations: [],
|
||||
value: true,
|
||||
},
|
||||
use_text_extraction_service: {
|
||||
default_value: false,
|
||||
depends_on: [],
|
||||
display: TOGGLE,
|
||||
label: USE_TEXT_EXTRACTION_SERVICE_LABEL,
|
||||
options: [],
|
||||
order: 6,
|
||||
order: 11,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: USE_TEXT_EXTRACTION_SERVICE_TOOLTIP,
|
||||
|
@ -4315,7 +4454,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
}
|
||||
),
|
||||
options: [],
|
||||
order: 7,
|
||||
order: 12,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: translate(
|
||||
|
@ -4346,7 +4485,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
}
|
||||
),
|
||||
options: [],
|
||||
order: 8,
|
||||
order: 13,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: translate(
|
||||
|
@ -4377,7 +4516,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
}
|
||||
),
|
||||
options: [],
|
||||
order: 9,
|
||||
order: 14,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: translate(
|
||||
|
@ -4408,7 +4547,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
}
|
||||
),
|
||||
options: [],
|
||||
order: 10,
|
||||
order: 15,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: translate(
|
||||
|
@ -4439,7 +4578,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
}
|
||||
),
|
||||
options: [],
|
||||
order: 11,
|
||||
order: 16,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: translate(
|
||||
|
@ -4454,56 +4593,6 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
validations: [],
|
||||
value: true,
|
||||
},
|
||||
enumerate_all_sites: {
|
||||
default_value: true,
|
||||
depends_on: [],
|
||||
display: TOGGLE,
|
||||
label: translate(
|
||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.enumerateAllSitesLabel',
|
||||
{ defaultMessage: 'Enumerate all sites?' }
|
||||
),
|
||||
options: [],
|
||||
order: 6,
|
||||
required: false,
|
||||
sensitive: false,
|
||||
tooltip: translate(
|
||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.enumerateAllSitesTooltip',
|
||||
{
|
||||
defaultMessage:
|
||||
'If enabled, sites will be fetched in bulk, then filtered down to the configured list of sites. This is efficient when syncing many sites. If disabled, each configured site will be fetched with an individual request. This is efficient when syncing fewer sites.',
|
||||
}
|
||||
),
|
||||
type: BOOLEAN,
|
||||
ui_restrictions: [],
|
||||
validations: [],
|
||||
value: true,
|
||||
},
|
||||
fetch_subsites: {
|
||||
default_value: false,
|
||||
depends_on: [{ field: 'enumerate_all_sites', value: false }],
|
||||
display: TOGGLE,
|
||||
label: translate(
|
||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.fetchSubsitesLabel',
|
||||
{
|
||||
defaultMessage: 'Fetch sub-sites of configured sites?',
|
||||
}
|
||||
),
|
||||
options: [],
|
||||
order: 7,
|
||||
required: false,
|
||||
sensitive: false,
|
||||
tooltip: translate(
|
||||
'searchConnectors.nativeConnectors.sharepoint_online.configuration.fetchSubsitesTooltip',
|
||||
{
|
||||
defaultMessage:
|
||||
'Whether subsites of the configured site(s) should be automatically fetched.',
|
||||
}
|
||||
),
|
||||
type: BOOLEAN,
|
||||
ui_restrictions: [],
|
||||
validations: [],
|
||||
value: true,
|
||||
},
|
||||
},
|
||||
features: {
|
||||
[SYNC_RULES]: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue