-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Align native box connector configs #203241
Align native box connector configs #203241
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
9373b0e
to
295bfcb
Compare
Starting backport for target branches: 8.16, 8.17, 8.x |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
|
## 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 db56f01)
## 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 db56f01)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.17`: - [Align native box connector configs (#203241)](#203241) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sean Story","email":"sean.j.story@gmail.com"},"sourceCommit":{"committedDate":"2024-12-18T21:38:45Z","message":"Align native box connector configs (#203241)\n\n## Summary\r\n\r\nRaised in [this community slack\r\npost](https://elasticstack.slack.com/archives/C06U8G8NJBY/p1733445905372799?thread_ts=1733378189.186729&cid=C06U8G8NJBY),\r\nthe Native Connector definition from Kibana was using some config fields\r\n(`app_key`, `app_secret`) that didn't align with what the connector\r\nitself expects (`client_id`, `client_secret`). There were also a number\r\nof configurations defined here that are not used by the Box connector\r\n(`use_document_level_security`, `include_inherited_users_and_groups`,\r\n`use_text_extraction_service`, `retry_count`, `path`)\r\n\r\n\r\nThis change moves to align this definition with the source of truth in\r\nthe connectors codebase:\r\nhttps://github.com/elastic/connectors/blob/38c2fdbfe71330d6e95de33a30bf114c29ae4cae/connectors/sources/box.py#L263-L311\r\n\r\nT\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)","sha":"db56f019001ae98bc251798f1d8ab1e5511e8bb4","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Team:EnterpriseSearch","backport:prev-major"],"title":"Align native box connector configs","number":203241,"url":"https://github.com/elastic/kibana/pull/203241","mergeCommit":{"message":"Align native box connector configs (#203241)\n\n## Summary\r\n\r\nRaised in [this community slack\r\npost](https://elasticstack.slack.com/archives/C06U8G8NJBY/p1733445905372799?thread_ts=1733378189.186729&cid=C06U8G8NJBY),\r\nthe Native Connector definition from Kibana was using some config fields\r\n(`app_key`, `app_secret`) that didn't align with what the connector\r\nitself expects (`client_id`, `client_secret`). There were also a number\r\nof configurations defined here that are not used by the Box connector\r\n(`use_document_level_security`, `include_inherited_users_and_groups`,\r\n`use_text_extraction_service`, `retry_count`, `path`)\r\n\r\n\r\nThis change moves to align this definition with the source of truth in\r\nthe connectors codebase:\r\nhttps://github.com/elastic/connectors/blob/38c2fdbfe71330d6e95de33a30bf114c29ae4cae/connectors/sources/box.py#L263-L311\r\n\r\nT\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)","sha":"db56f019001ae98bc251798f1d8ab1e5511e8bb4"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203241","number":203241,"mergeCommit":{"message":"Align native box connector configs (#203241)\n\n## Summary\r\n\r\nRaised in [this community slack\r\npost](https://elasticstack.slack.com/archives/C06U8G8NJBY/p1733445905372799?thread_ts=1733378189.186729&cid=C06U8G8NJBY),\r\nthe Native Connector definition from Kibana was using some config fields\r\n(`app_key`, `app_secret`) that didn't align with what the connector\r\nitself expects (`client_id`, `client_secret`). There were also a number\r\nof configurations defined here that are not used by the Box connector\r\n(`use_document_level_security`, `include_inherited_users_and_groups`,\r\n`use_text_extraction_service`, `retry_count`, `path`)\r\n\r\n\r\nThis change moves to align this definition with the source of truth in\r\nthe connectors codebase:\r\nhttps://github.com/elastic/connectors/blob/38c2fdbfe71330d6e95de33a30bf114c29ae4cae/connectors/sources/box.py#L263-L311\r\n\r\nT\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)","sha":"db56f019001ae98bc251798f1d8ab1e5511e8bb4"}}]}] BACKPORT--> Co-authored-by: Sean Story <sean.j.story@gmail.com>
# Backport This will backport the following commits from `main` to `8.x`: - [Align native box connector configs (#203241)](#203241) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sean Story","email":"sean.j.story@gmail.com"},"sourceCommit":{"committedDate":"2024-12-18T21:38:45Z","message":"Align native box connector configs (#203241)\n\n## Summary\r\n\r\nRaised in [this community slack\r\npost](https://elasticstack.slack.com/archives/C06U8G8NJBY/p1733445905372799?thread_ts=1733378189.186729&cid=C06U8G8NJBY),\r\nthe Native Connector definition from Kibana was using some config fields\r\n(`app_key`, `app_secret`) that didn't align with what the connector\r\nitself expects (`client_id`, `client_secret`). There were also a number\r\nof configurations defined here that are not used by the Box connector\r\n(`use_document_level_security`, `include_inherited_users_and_groups`,\r\n`use_text_extraction_service`, `retry_count`, `path`)\r\n\r\n\r\nThis change moves to align this definition with the source of truth in\r\nthe connectors codebase:\r\nhttps://github.com/elastic/connectors/blob/38c2fdbfe71330d6e95de33a30bf114c29ae4cae/connectors/sources/box.py#L263-L311\r\n\r\nT\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)","sha":"db56f019001ae98bc251798f1d8ab1e5511e8bb4","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Team:EnterpriseSearch","backport:prev-major"],"title":"Align native box connector configs","number":203241,"url":"https://github.com/elastic/kibana/pull/203241","mergeCommit":{"message":"Align native box connector configs (#203241)\n\n## Summary\r\n\r\nRaised in [this community slack\r\npost](https://elasticstack.slack.com/archives/C06U8G8NJBY/p1733445905372799?thread_ts=1733378189.186729&cid=C06U8G8NJBY),\r\nthe Native Connector definition from Kibana was using some config fields\r\n(`app_key`, `app_secret`) that didn't align with what the connector\r\nitself expects (`client_id`, `client_secret`). There were also a number\r\nof configurations defined here that are not used by the Box connector\r\n(`use_document_level_security`, `include_inherited_users_and_groups`,\r\n`use_text_extraction_service`, `retry_count`, `path`)\r\n\r\n\r\nThis change moves to align this definition with the source of truth in\r\nthe connectors codebase:\r\nhttps://github.com/elastic/connectors/blob/38c2fdbfe71330d6e95de33a30bf114c29ae4cae/connectors/sources/box.py#L263-L311\r\n\r\nT\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)","sha":"db56f019001ae98bc251798f1d8ab1e5511e8bb4"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203241","number":203241,"mergeCommit":{"message":"Align native box connector configs (#203241)\n\n## Summary\r\n\r\nRaised in [this community slack\r\npost](https://elasticstack.slack.com/archives/C06U8G8NJBY/p1733445905372799?thread_ts=1733378189.186729&cid=C06U8G8NJBY),\r\nthe Native Connector definition from Kibana was using some config fields\r\n(`app_key`, `app_secret`) that didn't align with what the connector\r\nitself expects (`client_id`, `client_secret`). There were also a number\r\nof configurations defined here that are not used by the Box connector\r\n(`use_document_level_security`, `include_inherited_users_and_groups`,\r\n`use_text_extraction_service`, `retry_count`, `path`)\r\n\r\n\r\nThis change moves to align this definition with the source of truth in\r\nthe connectors codebase:\r\nhttps://github.com/elastic/connectors/blob/38c2fdbfe71330d6e95de33a30bf114c29ae4cae/connectors/sources/box.py#L263-L311\r\n\r\nT\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)","sha":"db56f019001ae98bc251798f1d8ab1e5511e8bb4"}}]}] BACKPORT--> Co-authored-by: Sean Story <sean.j.story@gmail.com>
## 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)
Summary
Raised in this community slack post, 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.