-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Append space ID to security solution tag #170789
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
@elasticmachine merge upstream |
Pinging @elastic/fleet (Team:Fleet) |
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. Thanks for the fix!
@P1llus so I went back to the discussion we had over this and it seems that the id The first tag in the screenshot is Fleet's one, and has |
I have two separate recordings, one for the behavior on this branch and one for the behavior on Screenshare.-.2023-11-08.12_47_08.PM.mp4Screenshare.-.2023-11-08.12_50_18.PM.mp4(Please forgive my son shrieking in the background 👶) To summarize the behavior in this PR:
|
I've figured out where the duplicate tag creation logic comes from the in the security solution app. We check for the "Security Solution" tag existing at the same time as the request to install bulk install We could fix this a few ways
@elastic/security-solution (big ping, sorry - just using what's in CODEOWNERS for this codepath in question) FYI. I don't want to make any of those decisions for y'all in this bugfix PR, and since the Fleet changes aren't breaking any existing behavior (see comment above), I think we're good to merge this on our end to fix the conflict issues. Just want to bring to your team's attention that we have a potential case where duplicate "Security Solution" tags can be created. |
@elasticmachine merge upstream |
Looks like #167694 already captures what I've listed above, so apologies for the needless ping 😶 |
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @kpollich |
## Summary Fixes elastic#166798 Appends the current space ID to the ID of the security solution tag. Note: If there are integrations suffering from the above bug (might be "stuck" in `installing` status, showing concurrent installation errors, etc), they should be reinstalled via the API in their corresponding space, e.g. ``` # In Kibana dev tools for the space in which the integration is installed POST kbn:/api/fleet/epm/packages/cisco_asa/2.27.1 { "force": true } ``` --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit dd2fda2)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…71034) # Backport This will backport the following commits from `main` to `8.11`: - [[Fleet] Append space ID to security solution tag (#170789)](#170789) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kyle Pollich","email":"kyle.pollich@elastic.co"},"sourceCommit":{"committedDate":"2023-11-10T16:01:36Z","message":"[Fleet] Append space ID to security solution tag (#170789)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/166798\r\n\r\nAppends the current space ID to the ID of the security solution tag.\r\n\r\nNote: If there are integrations suffering from the above bug (might be\r\n\"stuck\" in `installing` status, showing concurrent installation errors,\r\netc), they should be reinstalled via the API in their corresponding\r\nspace, e.g.\r\n\r\n```\r\n# In Kibana dev tools for the space in which the integration is installed\r\nPOST kbn:/api/fleet/epm/packages/cisco_asa/2.27.1\r\n{\r\n \"force\": true\r\n}\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"dd2fda271187f718def78002516861736dc48cf7","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Fleet","backport:prev-minor","v8.12.0"],"number":170789,"url":"https://github.com/elastic/kibana/pull/170789","mergeCommit":{"message":"[Fleet] Append space ID to security solution tag (#170789)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/166798\r\n\r\nAppends the current space ID to the ID of the security solution tag.\r\n\r\nNote: If there are integrations suffering from the above bug (might be\r\n\"stuck\" in `installing` status, showing concurrent installation errors,\r\netc), they should be reinstalled via the API in their corresponding\r\nspace, e.g.\r\n\r\n```\r\n# In Kibana dev tools for the space in which the integration is installed\r\nPOST kbn:/api/fleet/epm/packages/cisco_asa/2.27.1\r\n{\r\n \"force\": true\r\n}\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"dd2fda271187f718def78002516861736dc48cf7"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/170789","number":170789,"mergeCommit":{"message":"[Fleet] Append space ID to security solution tag (#170789)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/166798\r\n\r\nAppends the current space ID to the ID of the security solution tag.\r\n\r\nNote: If there are integrations suffering from the above bug (might be\r\n\"stuck\" in `installing` status, showing concurrent installation errors,\r\netc), they should be reinstalled via the API in their corresponding\r\nspace, e.g.\r\n\r\n```\r\n# In Kibana dev tools for the space in which the integration is installed\r\nPOST kbn:/api/fleet/epm/packages/cisco_asa/2.27.1\r\n{\r\n \"force\": true\r\n}\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"dd2fda271187f718def78002516861736dc48cf7"}}]}] BACKPORT--> Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
Summary
Fixes #166798
Appends the current space ID to the ID of the security solution tag.
Note: If there are integrations suffering from the above bug (might be "stuck" in
installing
status, showing concurrent installation errors, etc), they should be reinstalled via the API in their corresponding space, e.g.