From e07bef1f4f0608483bcb79b6f1c32ce5ef701c24 Mon Sep 17 00:00:00 2001 From: Sean Story Date: Wed, 18 Dec 2024 15:38:45 -0600 Subject: [PATCH] Align native box connector configs (#203241) ## Summary Raised in [this community slack post](https://elasticstack.slack.com/archives/C06U8G8NJBY/p1733445905372799?thread_ts=1733378189.186729&cid=C06U8G8NJBY), the Native Connector definition from Kibana was using some config fields (`app_key`, `app_secret`) that didn't align with what the connector itself expects (`client_id`, `client_secret`). There were also a number of configurations defined here that are not used by the Box connector (`use_document_level_security`, `include_inherited_users_and_groups`, `use_text_extraction_service`, `retry_count`, `path`) This change moves to align this definition with the source of truth in the connectors codebase: https://github.com/elastic/connectors/blob/38c2fdbfe71330d6e95de33a30bf114c29ae4cae/connectors/sources/box.py#L263-L311 T ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] 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) (cherry picked from commit db56f019001ae98bc251798f1d8ab1e5511e8bb4) --- .../types/native_connectors.ts | 123 ++++++------------ .../translations/translations/fr-FR.json | 7 - .../translations/translations/ja-JP.json | 7 - .../translations/translations/zh-CN.json | 7 - 4 files changed, 40 insertions(+), 104 deletions(-) diff --git a/packages/kbn-search-connectors/types/native_connectors.ts b/packages/kbn-search-connectors/types/native_connectors.ts index c5ef7beab0ba5..96af7ea581e6c 100644 --- a/packages/kbn-search-connectors/types/native_connectors.ts +++ b/packages/kbn-search-connectors/types/native_connectors.ts @@ -107,6 +107,9 @@ const PERSONAL_ACCESS_TOKEN = 'personal_access_token'; const GITHUB_APP = 'github_app'; +const BOX_FREE = 'box_free'; +const BOX_ENTERPRISE = 'box_enterprise'; + export const NATIVE_CONNECTOR_DEFINITIONS: Record = { azure_blob_storage: { configuration: { @@ -246,31 +249,42 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record