-
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]: Unable to view integration Assets when logged in as User with role: Fleet-All, Integrations-Read and Saved Objects Management- Read. #161058
Comments
Pinging @elastic/fleet (Team:Fleet) |
@manishgupta-qasource Please review. |
Secondary review for this ticket is Done |
@criamico could this be related to one of the recent changes you did around saved objects? |
@jlind23 Because it's in the |
Fixes #161058 ## Summary Fix permissions for Integrations assets tab. A user with role "Fleet All - Integration Read" wasn't able to visualize the assets tab. ### Test - Create a user with "Fleet All - Integration Read" as shown in this video: https://github.com/elastic/kibana/assets/16084106/a13c6ddd-a3d1-4e15-9c9d-9d56e1dbb0f0 - Log in with this new user - Navigate to any installed integration, then to the Assets tab - Verify that the assets are shown as usual (no warnings are shown) <img width="2556" alt="Screenshot 2023-07-05 at 10 22 36" src="https://github.com/elastic/kibana/assets/16084106/b050d7ee-3794-41c4-b429-50eb6291697a">
Fixes elastic#161058 ## Summary Fix permissions for Integrations assets tab. A user with role "Fleet All - Integration Read" wasn't able to visualize the assets tab. ### Test - Create a user with "Fleet All - Integration Read" as shown in this video: https://github.com/elastic/kibana/assets/16084106/a13c6ddd-a3d1-4e15-9c9d-9d56e1dbb0f0 - Log in with this new user - Navigate to any installed integration, then to the Assets tab - Verify that the assets are shown as usual (no warnings are shown) <img width="2556" alt="Screenshot 2023-07-05 at 10 22 36" src="https://github.com/elastic/kibana/assets/16084106/b050d7ee-3794-41c4-b429-50eb6291697a"> (cherry picked from commit 38b487a)
…161236) # Backport This will backport the following commits from `main` to `8.9`: - [[Fleet] Fix permissions in integrations Assets page (#161233)](#161233) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Cristina Amico","email":"criamico@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-07-05T09:27:54Z","message":"[Fleet] Fix permissions in integrations Assets page (#161233)\n\nFixes https://github.com/elastic/kibana/issues/161058\r\n\r\n## Summary\r\nFix permissions for Integrations assets tab. A user with role \"Fleet All\r\n- Integration Read\" wasn't able to visualize the assets tab.\r\n\r\n### Test\r\n\r\n- Create a user with \"Fleet All - Integration Read\" as shown in this\r\nvideo:\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/16084106/a13c6ddd-a3d1-4e15-9c9d-9d56e1dbb0f0\r\n\r\n- Log in with this new user\r\n- Navigate to any installed integration, then to the Assets tab\r\n- Verify that the assets are shown as usual (no warnings are shown)\r\n\r\n<img width=\"2556\" alt=\"Screenshot 2023-07-05 at 10 22 36\"\r\nsrc=\"https://github.com/elastic/kibana/assets/16084106/b050d7ee-3794-41c4-b429-50eb6291697a\">","sha":"38b487a879ba12a2a6b37930fd05d60aa3c7ae10","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","backport:prev-minor","v8.10.0"],"number":161233,"url":"https://github.com/elastic/kibana/pull/161233","mergeCommit":{"message":"[Fleet] Fix permissions in integrations Assets page (#161233)\n\nFixes https://github.com/elastic/kibana/issues/161058\r\n\r\n## Summary\r\nFix permissions for Integrations assets tab. A user with role \"Fleet All\r\n- Integration Read\" wasn't able to visualize the assets tab.\r\n\r\n### Test\r\n\r\n- Create a user with \"Fleet All - Integration Read\" as shown in this\r\nvideo:\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/16084106/a13c6ddd-a3d1-4e15-9c9d-9d56e1dbb0f0\r\n\r\n- Log in with this new user\r\n- Navigate to any installed integration, then to the Assets tab\r\n- Verify that the assets are shown as usual (no warnings are shown)\r\n\r\n<img width=\"2556\" alt=\"Screenshot 2023-07-05 at 10 22 36\"\r\nsrc=\"https://github.com/elastic/kibana/assets/16084106/b050d7ee-3794-41c4-b429-50eb6291697a\">","sha":"38b487a879ba12a2a6b37930fd05d60aa3c7ae10"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/161233","number":161233,"mergeCommit":{"message":"[Fleet] Fix permissions in integrations Assets page (#161233)\n\nFixes https://github.com/elastic/kibana/issues/161058\r\n\r\n## Summary\r\nFix permissions for Integrations assets tab. A user with role \"Fleet All\r\n- Integration Read\" wasn't able to visualize the assets tab.\r\n\r\n### Test\r\n\r\n- Create a user with \"Fleet All - Integration Read\" as shown in this\r\nvideo:\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/16084106/a13c6ddd-a3d1-4e15-9c9d-9d56e1dbb0f0\r\n\r\n- Log in with this new user\r\n- Navigate to any installed integration, then to the Assets tab\r\n- Verify that the assets are shown as usual (no warnings are shown)\r\n\r\n<img width=\"2556\" alt=\"Screenshot 2023-07-05 at 10 22 36\"\r\nsrc=\"https://github.com/elastic/kibana/assets/16084106/b050d7ee-3794-41c4-b429-50eb6291697a\">","sha":"38b487a879ba12a2a6b37930fd05d60aa3c7ae10"}}]}] BACKPORT--> Co-authored-by: Cristina Amico <criamico@users.noreply.github.com>
Hi Team, We have revalidated this issue on latest 8.9.0 BC4 kibana cloud environment and found it fixed now. Observations:
Build details: Hence we are marking this issue as QA:Validated. Thanks! |
Kibana Build details:
Host OS and Browser version: All, All
Preconditions:
Fleet- All
andIntegrations- Read
and Saved Objects Management- Read.Steps to reproduce:
Fleet- All
andIntegrations- Read
and Saved Objects Management- Read.Permission error
.Expected Result:
User should be able to view integration Assets when logged in as User with role: Fleet-All, Integrations-Read and Saved Objects Management- Read.
Screen Recording:
Assets.Issue.mp4
Note:
Impacted Testcase:
#T2110055
The text was updated successfully, but these errors were encountered: