Repository navigation
umbrella: mgr/dashboard: RBAC issues - #70482
Conversation
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)
…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 src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts
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)
|
jenkins test windows |
|
@abhidesai6 fix: Missing Backport Tracker: Main tracker #77952 does not have a backport tracker for umbrella. Please adjust the 'Backport' field on the main tracker appropriately and remove 'backport_processed' from 'Tags (freeform)'. |
|
This PR has been added to wip-yuri15-testing-20260803.134326-umbrella. |
|
This PR has been added to wip-yuri10-testing-20260804.162800-umbrella. |
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #70482 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| b597169 umbrella: mgr/dashboard: allow read-only users to view Silences page | PR #69958 | 2fba7b7 mgr/dashboard: allow read-only users to view Silences page |
| 8407567 umbrella: 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 | |
| 8db7d28 umbrella: mgr/dashboard: exclude user scope from read-only system role | 65034ed mgr/dashboard: exclude user scope from read-only system role | |
| 3df1e8a umbrella: mgr/dashboard: grant pool read to cluster-manager role | 4bdd697 mgr/dashboard: grant pool read to cluster-manager role | |
| d8c7c24 umbrella: mgr/dashboard: grant hosts read to smb-manager role | 622483c mgr/dashboard: grant hosts read to smb-manager role | |
| fe77e67 umbrella: 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 b597169 (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 (b5971694)
@@ -1,4 +1,4 @@
-mgr/dashboard: allow read-only users to view Silences page
+umbrella: 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,5 @@
Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.html
- Added permissions
+
+(cherry picked from commit 2fba7b733ac7f0b7b9316f96bf5af871a23b0751)
================================================================================
RANGE DIFF
================================================================================
1: 2fba7b733ac ! 1: b5971694abf 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
+ umbrella: 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)
+
+ ## src/pybind/mgr/dashboard/frontend/diff.txt (new) ##
+@@
++commit 3516e905c1c8b3661ba4c9c0678157af0367b131
++Author: Abhishek Desai <[email protected]>
++Date: Tue Jul 21 12:12:40 2026 +0530
++
++ mgr/dashboard/downstream : Fix Favicon Issue
++ Reolves : IBMCEPH-14246
++ Signed-off-by: Abhishek Desai <[email protected]>
++
++diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/services/favicon.service.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/services/favicon.service.ts
++index 4e6db76379b..c83c124faa0 100644
++--- a/src/pybind/mgr/dashboard/frontend/src/app/shared/services/favicon.service.ts
+++++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/services/favicon.service.ts
++@@ -5,6 +5,7 @@ import { Subscription } from 'rxjs';
++
++ import { CssHelper } from '~/app/shared/classes/css-helper';
++ import { HealthColor } from '~/app/shared/enum/health-color.enum';
+++import { AppConstants } from '~/app/shared/constants/app.constants';
++ import { SummaryService } from './summary.service';
++
++ @Injectable()
++@@ -20,7 +21,7 @@ export class FaviconService implements OnDestroy {
++ ) {}
++
++ init() {
++- this.url = this.document.getElementById('cdFavicon')?.getAttribute('href');
+++ this.url = AppConstants.cephLogo;
++
++ this.sub = this.summaryService.subscribe((summary) => {
++ this.changeIcon(summary.health_status);
++diff --git a/src/pybind/mgr/dashboard/frontend/src/index.html b/src/pybind/mgr/dashboard/frontend/src/index.html
++index 4cceb2cb490..d3abe712887 100644
++--- a/src/pybind/mgr/dashboard/frontend/src/index.html
+++++ b/src/pybind/mgr/dashboard/frontend/src/index.html
++@@ -10,7 +10,7 @@
++ </script>
++
++ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
++- <link rel="icon" type="image/x-icon" id="cdFavicon" href="assets/RedHat_favicon_0319.svg">
+++ <link rel="icon" type="image/png" id="cdFavicon" href="assets/RedHat_favicon_0319.svg">
++ </head>
++ <body>
++ <noscript>
+
## src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.html ##
@@
- ></a
- >
+ <cds-tag *ngIf="prometheusAlertService.activeWarningAlerts > 0"
+ class="tag-warning ms-1">{{ prometheusAlertService.activeWarningAlerts }}</cds-tag></a>
</ng-container>
- <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>
+ @if (canViewSilences) {
+ <ng-container ngbNavItem>
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tab
+ </ng-container>
+ }
<ng-container ngbNavItem>
- <a
- class="nav-link"
+ <a class="nav-link"
+ routerLink="/monitoring/alerts"
## 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';
@@ src/pybind/mgr/dashboard/frontend/src/app/shared/models/alertmanager-silence.ts:
- silencedAlerts?: PrometheusRule[];
+ silencedAlerts?: string[];
}
+
+ ## src/pybind/mgr/dashboard/frontend/src/environments/environment.ibm.ts (new) ##
+@@
++// The file contents for the current environment will overwrite these during build.
++// The build system defaults to the dev environment which uses `environment.ts`, but if you do
++// `ng build --env=prod` then `environment.prod.ts` will be used instead.
++// The list of which env maps to which file can be found in `.angular-cli.json`.
++
++export const environment = {
++ default_lang: 'en-US',
++ production: true,
++ year: '2026',
++ build: 'ibm'
++};Deviation in Backport 8407567 (cherry-pick of 21c6df7)
Affected File(s)
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.htmlsrc/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts
Range Diff
Click to expand
--- Original (21c6df7d)
+++ Backport (8407567a)
@@ -1,7 +1,12 @@
-mgr/dashboard: hide Report an Issue for users without config-opt read
+umbrella: 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
+ src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts
================================================================================
RANGE DIFF
================================================================================
1: 21c6df7d22b ! 1: 8407567ac4b 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
+ umbrella: 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
+ src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts
## 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)="openFeedbackModal()"
-- i18n
-- >Report an issue...</cds-overflow-menu-option
-- >
-+ <cds-overflow-menu-option (click)="openAboutModal()"
-+ i18n>About</cds-overflow-menu-option>
+ <cds-overflow-menu-option (click)="openAboutModal()"
+ i18n>About</cds-overflow-menu-option>
+- <cds-overflow-menu-option (click)="openFeedbackModal()"
+- i18n>Report an issue...</cds-overflow-menu-option>
+ @if (configOptPermission.read) {
+ <cds-overflow-menu-option (click)="openFeedbackModal()"
+ i18n>Report an issue...</cds-overflow-menu-option>
@@ src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboa
icons = Icons;
+ configOptPermission: Permission;
- constructor(
- private docService: DocService,
-- private modalCdsService: ModalCdsService
-- ) {}
+- constructor(private docService: DocService, private modalCdsService: ModalCdsService) {}
++ constructor(
++ private docService: DocService,
+ private modalCdsService: ModalCdsService,
+ private authStorageService: AuthStorageService
+ ) {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.
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.