-
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
[Fleet] Fix secrets exception when installing CSPM or other integrations #174264
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
@kpollich I found the reason of the original bug, the index used to get the secret in this block was not correct. In the specific case of CSPM we have values of this type:
The issue was that I also wrote this test for cases where there are two valid values in My guess is that in this function |
Thanks @kpollich for the commit, I'm going to open the PR with this change. |
Pinging @elastic/fleet (Team:Fleet) |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @criamico |
…ons (elastic#174264) Closes elastic#173718 ## Summary Fix secrets exception when installing CSPM or other integrations ### Steps to reproduce: - Install `cloud_security_posture-1.8.0-preview02` (note that a licence is needed to install CSPM) - Select Setup access: manual and Preferred manual method: Direct access keys - Add some test values a secrets and try to install - The integration should install correctly with no exceptions. ### Checklist - [ ] [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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed --------- Co-authored-by: Kyle Pollich <[email protected]> Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit 6a7166c)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…tegrations (#174264) (#174432) # Backport This will backport the following commits from `main` to `8.12`: - [[Fleet] Fix secrets exception when installing CSPM or other integrations (#174264)](#174264) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Cristina Amico","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-01-08T09:19:29Z","message":"[Fleet] Fix secrets exception when installing CSPM or other integrations (#174264)\n\nCloses https://github.com/elastic/kibana/issues/173718\r\n\r\n## Summary\r\n\r\nFix secrets exception when installing CSPM or other integrations\r\n\r\n### Steps to reproduce:\r\n\r\n- Install `cloud_security_posture-1.8.0-preview02` (note that a licence\r\nis needed to install CSPM)\r\n- Select Setup access: manual and Preferred manual method: Direct access\r\nkeys\r\n- Add some test values a secrets and try to install\r\n- The integration should install correctly with no exceptions.\r\n\r\n### Checklist\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n\r\n---------\r\n\r\nCo-authored-by: Kyle Pollich <[email protected]>\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"6a7166c4e8782fe8067b1f8d93952b282db5627a","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Fleet","v8.12.0","v8.13.0"],"title":"[Fleet] Fix secrets exception when installing CSPM or other integrations","number":174264,"url":"https://github.com/elastic/kibana/pull/174264","mergeCommit":{"message":"[Fleet] Fix secrets exception when installing CSPM or other integrations (#174264)\n\nCloses https://github.com/elastic/kibana/issues/173718\r\n\r\n## Summary\r\n\r\nFix secrets exception when installing CSPM or other integrations\r\n\r\n### Steps to reproduce:\r\n\r\n- Install `cloud_security_posture-1.8.0-preview02` (note that a licence\r\nis needed to install CSPM)\r\n- Select Setup access: manual and Preferred manual method: Direct access\r\nkeys\r\n- Add some test values a secrets and try to install\r\n- The integration should install correctly with no exceptions.\r\n\r\n### Checklist\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n\r\n---------\r\n\r\nCo-authored-by: Kyle Pollich <[email protected]>\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"6a7166c4e8782fe8067b1f8d93952b282db5627a"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/174264","number":174264,"mergeCommit":{"message":"[Fleet] Fix secrets exception when installing CSPM or other integrations (#174264)\n\nCloses https://github.com/elastic/kibana/issues/173718\r\n\r\n## Summary\r\n\r\nFix secrets exception when installing CSPM or other integrations\r\n\r\n### Steps to reproduce:\r\n\r\n- Install `cloud_security_posture-1.8.0-preview02` (note that a licence\r\nis needed to install CSPM)\r\n- Select Setup access: manual and Preferred manual method: Direct access\r\nkeys\r\n- Add some test values a secrets and try to install\r\n- The integration should install correctly with no exceptions.\r\n\r\n### Checklist\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n\r\n---------\r\n\r\nCo-authored-by: Kyle Pollich <[email protected]>\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"6a7166c4e8782fe8067b1f8d93952b282db5627a"}}]}] BACKPORT--> Co-authored-by: Cristina Amico <[email protected]>
…ons (elastic#174264) Closes elastic#173718 ## Summary Fix secrets exception when installing CSPM or other integrations ### Steps to reproduce: - Install `cloud_security_posture-1.8.0-preview02` (note that a licence is needed to install CSPM) - Select Setup access: manual and Preferred manual method: Direct access keys - Add some test values a secrets and try to install - The integration should install correctly with no exceptions. ### Checklist - [ ] [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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed --------- Co-authored-by: Kyle Pollich <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Closes #173718
Summary
Fix secrets exception when installing CSPM or other integrations
Steps to reproduce:
cloud_security_posture-1.8.0-preview02
(note that a licence is needed to install CSPM)Checklist