-
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
Unable to enable display beta integrations toggle with user role Integrations: All and Fleet: Read. #184639
Comments
Pinging @elastic/fleet (Team:Fleet) |
@manishgupta-qasource Please review. |
Secondary review for this ticket is Done |
@nchaulet This fails because a request is made to set this at the global level.
This route is restricted to users who have the I think the whole settings SO is deprecated per this LOC anyway. |
It may be a little more complicated as it also toggle the settings for server side operation, we will use that prerelease flag everywhere when retrieving packages, package with auto upgrade will use that prerelease In my opinion we should probably revisit that with a local storage flag to display prerelease integrations (that do not impact server side operation) and use a kibana config to have prerelase for auto-update or preconfigured package. Does it make sense to you? I do not think the whole settings SO is deprecated right now, some properties inside are like |
Can you refer me to the LOC where we use this setting for auto upgrade? I found a helper method |
Looks like it's not used I misremembered that, looks it was discussed during the prerelease flag implementation and when |
After investigating further, I found that For this bug, I will hide this section for users without write access to settings and file an issue to move to UI storage setting and then unhide this section. |
Hi Team, We have revalidated this issue on latest 8.15.0 BC3 kibana cloud environment and found it still reproducible. Observations:
Screen Recording: Browse.integrations.-.Integrations.-.Elastic.-.Google.Chrome.2024-07-23.15-37-17.mp4Build details: Hence, we are reopening this issue. Thanks! |
@amolnater-qasource Thanks for testing again. I found that the PR somehow didn't make it to the 8.15 branch, so I'm triggering a backport and will close this again when it merges. |
elastic#187513) ## Summary Resolves [elastic#184639](elastic#184639). This PR hides the beta integrations toggle if user does not have sufficient privileges to write this to Fleet settings SO. The real fix should be handled with elastic#187511. (cherry picked from commit 3dfcb85)
…rivilege (#187513) (#189146) Resolves #184639. # Backport This will backport the following commits from `main` to `8.15`: - [[UII] Only show beta integrations setting for settings write privilege (#187513)](#187513) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Jen Huang","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-07-04T08:07:31Z","message":"[UII] Only show beta integrations setting for settings write privilege (#187513)\n\n## Summary\r\n\r\nResolves [#184639](https://github.com/elastic/kibana/issues/184639).\r\n\r\nThis PR hides the beta integrations toggle if user does not have\r\nsufficient privileges to write this to Fleet settings SO. The real fix\r\nshould be handled with #187511.","sha":"3dfcb859c4e5c7f9ec0deef7fc15cae655e0b17a","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","backport:prev-minor","v8.16.0"],"title":"[UII] Only show beta integrations setting for settings write privilege","number":187513,"url":"https://github.com/elastic/kibana/pull/187513","mergeCommit":{"message":"[UII] Only show beta integrations setting for settings write privilege (#187513)\n\n## Summary\r\n\r\nResolves [#184639](https://github.com/elastic/kibana/issues/184639).\r\n\r\nThis PR hides the beta integrations toggle if user does not have\r\nsufficient privileges to write this to Fleet settings SO. The real fix\r\nshould be handled with #187511.","sha":"3dfcb859c4e5c7f9ec0deef7fc15cae655e0b17a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Jen Huang <[email protected]>
Hi Team, We have revalidated this issue on latest 8.15.0 BC5 kibana cloud environment and found it fixed now. Observations:
Screen Recording: Agent.policies.-.Fleet.-.Elastic.-.Google.Chrome.2024-08-02.15-35-03.mp4Build details: Hence, we are marking this issue as QA:Validated. Thanks! |
Kibana Build details:
Role:
Preconditions:
Steps to reproduce:
Expected Result:
User should be able to enable display beta integrations toggle with user role Integrations: All and Fleet: Read.
Screen Recording:
Browse.integrations.-.Integrations.-.Elastic.-.Google.Chrome.2024-06-03.15-29-39.mp4
Feature:
https://github.com/elastic/ingest-dev/issues/2903
The text was updated successfully, but these errors were encountered: