Repository navigation
tentacle: mgr/dashoard: rbac issues tentacle - #70485
abhidesai6 wants to merge 6 commits into
Conversation
|
jenkins test windows |
|
jenkins test make check |
|
jenkins test api |
|
jenkins test make check |
|
jenkins test windows |
|
jenkins test api |
1 similar comment
|
jenkins test api |
|
jenkins test make check |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Remove SilenceFormComponent from the silences list page, which incorrectly required create permission and caused a blank page for users with prometheus read access only. Fixes: https://tracker.ceph.com/issues/77952 Signed-off-by: Abhishek Desai <[email protected]> Conflicts: src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.html - Added permissions (cherry picked from commit 2fba7b7) Conflicts: src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.html - lint errors
…g-opt read The Help menu option redirected read-only users to an Access Denied page. Hide it when the user lacks config-opt read permission. Fixes: https://tracker.ceph.com/issues/77952 Signed-off-by: Abhishek Desai <[email protected]> (cherry picked from commit 21c6df7) Conflicts: src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.html - lint fixes src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts - lint fixes
Read-only users could see the Settings icon but were denied access to user management pages. Remove user read permission from the read-only role so the administration menu stays hidden. Fixes: https://tracker.ceph.com/issues/77952 Signed-off-by: Abhishek Desai <[email protected]> (cherry picked from commit 65034ed)
Cluster-manager users were denied access to the CRUSH map page because the underlying API requires pool read permission. Fixes: https://tracker.ceph.com/issues/77952 Signed-off-by: Abhishek Desai <[email protected]> (cherry picked from commit 4bdd697)
SMB cluster creation needs to list cluster hosts but the smb-manager role lacked hosts read permission, causing Access Denied errors. Fixes: https://tracker.ceph.com/issues/77952 Signed-off-by: Abhishek Desai <[email protected]> (cherry picked from commit 622483c)
Block-manager users were denied access to the NVMe/TCP page because host listing APIs require hosts read permission. Fixes: https://tracker.ceph.com/issues/77952 Signed-off-by: Abhishek Desai <[email protected]> (cherry picked from commit 0d0a241) Conflicts: src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/overview.component.ts - removed duplicate changes. No other conflicts
6eec2a0 to
2d375a6
Compare
afreen23
left a comment
There was a problem hiding this comment.
@abhidesai6 please mention original PRs and backport trackers and update the tracker to keep bot happy!
|
This PR has been added to wip-yuri5-testing-20261005.150507-tentacle. |
|
Hi @abhidesai6 Block-manager user is not able to create gateway or subsystem on NVMe page It is failing with Access Denied screen Screencast.From.2026-10-06.12-20-50.mp4Screencast.From.2026-10-06.12-19-37.mp4 |
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Automated Redmine Linkage Audit
The following tracking irregularities were found:
- Missing PR Link: Backport tracker #79092 has no 'Pull Request ID' field set. Please link it to PR #70485.
Commit Parity Visualizer
| BACKPORT PR #70485 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| f271465 tentacle: mgr/dashboard: allow read-only users to view Silences page | PR #69958 | 2fba7b7 mgr/dashboard: allow read-only users to view Silences page |
| 3b508e8 tentacle: mgr/dashboard: hide Report an Issue for users without config-opt read | 21c6df7 mgr/dashboard: hide Report an Issue for users without config-opt read | |
| 47f8729 tentacle: mgr/dashboard: exclude user scope from read-only system role | 65034ed mgr/dashboard: exclude user scope from read-only system role | |
| 7e578b6 tentacle: mgr/dashboard: grant pool read to cluster-manager role | 4bdd697 mgr/dashboard: grant pool read to cluster-manager role | |
| 8a877dc tentacle: mgr/dashboard: grant hosts read to smb-manager role | 622483c mgr/dashboard: grant hosts read to smb-manager role | |
| 2d375a6 tentacle: mgr/dashboard: grant hosts read to block-manager role | 0d0a241 mgr/dashboard: grant hosts read to block-manager role |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport f271465 (cherry-pick of 2fba7b7)
Affected File(s)
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.html
Range Diff
Click to expand
--- Original (2fba7b73)
+++ Backport (f271465d)
@@ -1,4 +1,4 @@
-mgr/dashboard: allow read-only users to view Silences page
+tentacle: mgr/dashboard: allow read-only users to view Silences page
Remove SilenceFormComponent from the silences list page, which
incorrectly required create permission and caused a blank page for
@@ -10,3 +10,9 @@
Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.html
- Added permissions
+
+(cherry picked from commit 2fba7b733ac7f0b7b9316f96bf5af871a23b0751)
+
+ Conflicts:
+ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.html
+ - lint errors
================================================================================
RANGE DIFF
================================================================================
1: 2fba7b733ac ! 1: f271465dfa1 mgr/dashboard: allow read-only users to view Silences page
@@ Metadata
Author: Abhishek Desai <[email protected]>
## Commit message ##
- mgr/dashboard: allow read-only users to view Silences page
+ tentacle: mgr/dashboard: allow read-only users to view Silences page
Remove SilenceFormComponent from the silences list page, which
incorrectly required create permission and caused a blank page for
@@ Commit message
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.html
- Added permissions
+ (cherry picked from commit 2fba7b733ac7f0b7b9316f96bf5af871a23b0751)
+
+ Conflicts:
+ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.html
+ - lint errors
+
## src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.html ##
@@
+-<ul class="nav nav-tabs">
+- <li class="nav-item">
++<nav
++ class="nav nav-tabs"
++ ngbNav
++ #nav="ngbNav"
++>
++ <ng-container ngbNavItem>
+ <a
+ class="nav-link"
+ routerLink="/monitoring/active-alerts"
+@@
+ >{{ prometheusAlertService.activeWarningAlerts }}</cds-tag
></a
>
- </ng-container>
-- <ng-container ngbNavItem>
+- </li>
+- <li class="nav-item">
- <a
- class="nav-link"
- routerLink="/monitoring/silences"
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tab
- i18n
- >Silences</a
- >
-- </ng-container>
+- </li>
+- <li class="nav-item">
++ </ng-container>
+ @if (canViewSilences) {
+ <ng-container ngbNavItem>
+ <a class="nav-link"
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tab
+ i18n>Silences</a>
+ </ng-container>
+ }
- <ng-container ngbNavItem>
++ <ng-container ngbNavItem>
<a
class="nav-link"
+ routerLink="/monitoring/alerts"
+@@
+ i18n
+ >Alert Rules</a
+ >
+- </li>
+-</ul>
++ </ng-container>
++</nav>
## src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.spec.ts ##
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.spec.ts: import { RouterTestingModule } from '@angular/router/testing';Deviation in Backport 3b508e8 (cherry-pick of 21c6df7)
Affected File(s)
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.htmlsrc/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.html
Range Diff
Click to expand
--- Original (21c6df7d)
+++ Backport (3b508e88)
@@ -1,7 +1,14 @@
-mgr/dashboard: hide Report an Issue for users without config-opt read
+tentacle: mgr/dashboard: hide Report an Issue for users without config-opt read
The Help menu option redirected read-only users to an Access Denied
page. Hide it when the user lacks config-opt read permission.
Fixes: https://tracker.ceph.com/issues/77952
Signed-off-by: Abhishek Desai <[email protected]>
+(cherry picked from commit 21c6df7d22b7f7de7a2bf9e97fae981827318207)
+
+ Conflicts:
+ src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.html
+ - lint fixes
+ src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts
+ - lint fixes
================================================================================
RANGE DIFF
================================================================================
1: 21c6df7d22b ! 1: 3b508e888af mgr/dashboard: hide Report an Issue for users without config-opt read
@@ Metadata
Author: Abhishek Desai <[email protected]>
## Commit message ##
- mgr/dashboard: hide Report an Issue for users without config-opt read
+ tentacle: mgr/dashboard: hide Report an Issue for users without config-opt read
The Help menu option redirected read-only users to an Access Denied
page. Hide it when the user lacks config-opt read permission.
Fixes: https://tracker.ceph.com/issues/77952
Signed-off-by: Abhishek Desai <[email protected]>
+ (cherry picked from commit 21c6df7d22b7f7de7a2bf9e97fae981827318207)
+
+ Conflicts:
+ src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.html
+ - lint fixes
+ src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts
+ - lint fixes
+
+ ## src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.html ##
+@@
+ </ng-container>
+ @if (canViewSilences) {
+ <ng-container ngbNavItem>
+- <a class="nav-link"
+- routerLink="/monitoring/silences"
+- routerLinkActive="active"
+- ariaCurrentWhenActive="page"
+- [routerLinkActiveOptions]="{exact: true}"
+- i18n>Silences</a>
++ <a
++ class="nav-link"
++ routerLink="/monitoring/silences"
++ routerLinkActive="active"
++ ariaCurrentWhenActive="page"
++ [routerLinkActiveOptions]="{ exact: true }"
++ i18n
++ >Silences</a
++ >
+ </ng-container>
+ }
+ <ng-container ngbNavItem>
## src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.html ##
@@
- ></svg>
- </a>
- </li>
-- <cds-overflow-menu-option
-- (click)="openAboutModal()"
-- i18n
-- >About</cds-overflow-menu-option
-- >
+ i18n
+ >About</cds-overflow-menu-option
+ >
- <cds-overflow-menu-option
- (click)="openFeedbackModal()"
- i18n
- >Report an issue...</cds-overflow-menu-option
- >
-+ <cds-overflow-menu-option (click)="openAboutModal()"
-+ i18n>About</cds-overflow-menu-option>
+ @if (configOptPermission.read) {
-+ <cds-overflow-menu-option (click)="openFeedbackModal()"
-+ i18n>Report an issue...</cds-overflow-menu-option>
++ <cds-overflow-menu-option
++ (click)="openFeedbackModal()"
++ i18n
++ >Report an issue...</cds-overflow-menu-option
++ >
+ }
</cds-overflow-menu>
Deviation in Backport 2d375a6 (cherry-pick of 0d0a241)
Affected File(s)
src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/overview.component.ts
Range Diff
Click to expand
--- Original (0d0a241b)
+++ Backport (2d375a68)
@@ -1,7 +1,12 @@
-mgr/dashboard: grant hosts read to block-manager role
+tentacle: mgr/dashboard: grant hosts read to block-manager role
Block-manager users were denied access to the NVMe/TCP page because
host listing APIs require hosts read permission.
Fixes: https://tracker.ceph.com/issues/77952
Signed-off-by: Abhishek Desai <[email protected]>
+(cherry picked from commit 0d0a241ba733ca804df2f42b59f2e0a31e36e180)
+
+ Conflicts:
+ src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/overview.component.ts
+ - removed duplicate changes. No other conflicts
================================================================================
RANGE DIFF
================================================================================
1: 0d0a241ba73 ! 1: 2d375a6846d mgr/dashboard: grant hosts read to block-manager role
@@ Metadata
Author: Abhishek Desai <[email protected]>
## Commit message ##
- mgr/dashboard: grant hosts read to block-manager role
+ tentacle: mgr/dashboard: grant hosts read to block-manager role
Block-manager users were denied access to the NVMe/TCP page because
host listing APIs require hosts read permission.
Fixes: https://tracker.ceph.com/issues/77952
Signed-off-by: Abhishek Desai <[email protected]>
+ (cherry picked from commit 0d0a241ba733ca804df2f42b59f2e0a31e36e180)
+
+ Conflicts:
+ src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/overview.component.ts
+ - removed duplicate changes. No other conflicts
## qa/tasks/mgr/dashboard/test_host.py ##
@@ qa/tasks/mgr/dashboard/test_host.py: class HostControllerTest(DashboardTestCase):
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tab
- @if (canViewSilences) {
+ @if (prometheusPermissions.read) {
<ng-container ngbNavItem>
-- <a class="nav-link"
-- routerLink="/monitoring/silences"
-- routerLinkActive="active"
-- ariaCurrentWhenActive="page"
-- [routerLinkActiveOptions]="{exact: true}"
-- i18n>Silences</a>
-+ <a
-+ class="nav-link"
-+ routerLink="/monitoring/silences"
-+ routerLinkActive="active"
-+ ariaCurrentWhenActive="page"
-+ [routerLinkActiveOptions]="{ exact: true }"
-+ i18n
-+ >Silences</a
-+ >
- </ng-container>
- }
- <ng-container ngbNavItem>
+ <a
+ class="nav-link"
## src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.spec.ts ##
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.spec.ts: describe('PrometheusTabsComponent', () => {
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tab
}
}
- ## src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/overview.component.ts ##
-@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/overview.component.ts: export class OverviewComponent {
- );
-
- readonly hasNoOSDs$ = this.healthData$.pipe(
-- map((data: HealthSnapshotMap) => (data?.osdmap?.num_osds ?? 0) === 0),
-+ map((data: HealthSnapshotMap) => {
-+ if (data?.osdmap == null) {
-+ return false;
-+ }
-+ return data.osdmap.num_osds === 0;
-+ }),
- shareReplay({ bufferSize: 1, refCount: true })
- );
-
-
- ## src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.html ##
-@@
- ></svg>
- </a>
- </li>
-- <cds-overflow-menu-option (click)="openAboutModal()"
-- i18n>About</cds-overflow-menu-option>
-+ <cds-overflow-menu-option
-+ (click)="openAboutModal()"
-+ i18n
-+ >About</cds-overflow-menu-option
-+ >
- @if (configOptPermission.read) {
-- <cds-overflow-menu-option (click)="openFeedbackModal()"
-- i18n>Report an issue...</cds-overflow-menu-option>
-+ <cds-overflow-menu-option
-+ (click)="openFeedbackModal()"
-+ i18n
-+ >Report an issue...</cds-overflow-menu-option
-+ >
- }
- </cds-overflow-menu>
-
-
## src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.spec.ts ##
@@ src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.spec.ts: describe('DashboardHelpComponent', () => {
expect(component).toBeTruthy();How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
@afreen23
How should we go with this , bit confused here? |
Creating/Deleting/Edit gateway -> should be scoped same as other service. If no Host scope there - we show a message that no admin access present. Kindly ask admin to give Host scope acesss to create. Only reading gateway and CRUD -subsystem, namespace -> should be allowed Ref: #70643 We can fix this in main first and then backport all PRs altogether to tentacle. Lets close this PR for now. Thanks |
Thanks for the clarification @afreen23 |
|
@afreen23 If everything looks good, can we add releng override for this PR. |
|
@abhidesai6 can we backport all together or remove the block manager commit As this is not complete fix. Kindly create a PR in main for same and then backport. |
|
Sure @afreen23 , |

backport tracker: https://tracker.ceph.com/issues/79092
backport of #69958
parent tracker: https://tracker.ceph.com/issues/77952
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.