Repository navigation
mgr/dashboard: "Access Denied" being shown on overview page for read-only user - #68653
Conversation
afreen23
left a comment
There was a problem hiding this comment.
can you add some decription to your PR ? What you fixed ?
| @@ -220,7 +220,7 @@ def map_to_system_roles(cls, roles: List[str]) -> List['Role']: | |||
| 'read-only', | |||
| 'allows read permission for all security scope except dashboard settings and config-opt', { | |||
| scope_name: [_P.READ] for scope_name in Scope.all_scopes() | |||
| if scope_name not in (Scope.DASHBOARD_SETTINGS, Scope.CONFIG_OPT) | |||
There was a problem hiding this comment.
To allow some extra permissions to avoid access-issues for read-only user. @nizamial09 can say more on it.
There was a problem hiding this comment.
I think @devikab25 this was needed because we were relying on this.prometheusService.ifPrometheusConfigured( which internally relied on some of the dashboard setting endpoint which is scoped as DASHBOARD_SETTINGS. But now that you have removed the dependency to that particular function completely, maybe we don't need it? can you recheck that? thanks
There was a problem hiding this comment.
I have added back the DASHBOARD_SETTINGS part, as @nizamial09 mentioned its not needed anymore.
d838b7a to
d899dc6
Compare
afreen23
left a comment
There was a problem hiding this comment.
LGTM test failures there please check
8828d35 to
97df8e1
Compare
97df8e1 to
8182bb0
Compare
|
jenkins test windows |
nizamial09
left a comment
There was a problem hiding this comment.
code lgtm, but left a comment to check on the python code.
8182bb0 to
58f2aba
Compare
…only user Fix: https://tracker.ceph.com/issues/76293 Signed-off-by: Devika Babrekar <[email protected]>
58f2aba to
4ebd227
Compare
Fix: https://tracker.ceph.com/issues/76293
Signed-off-by: Devika Babrekar [email protected]
read-only.user.overview.access.denied.mp4
Description:
Following fix helps resolve "Access Denied" error with overview component for read-only user.
For read-only user specific scenario, Prometheus service as well as daemon check is by passed for this particular fix.
Earlier, read-only user was not able to access overview component. When he clicks on Go to overview button, it did not get redirected to new overview page. This PR fixes the issue.
How to test:
Future approach:
A separate development must be considered to provide read access to certain services like Prometheus and Manager module after discussion.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.