Skip to content

umbrella: mgr/dashboard: RBAC issues - #70482

Merged
batrick merged 6 commits into
ceph:umbrellafrom
rhcs-dashboard:wip-rbac-umrella
Aug 5, 2026
Merged

batrick merged 6 commits into
ceph:umbrellafrom
rhcs-dashboard:wip-rbac-umrella

Conversation

@abhidesai6

@abhidesai6 abhidesai6 commented Jul 23, 2026 •

Copy link
Copy Markdown

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Abhishek Desai added 6 commits July 23, 2026 19:03
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)
@abhidesai6
abhidesai6 requested a review from a team as a code owner July 23, 2026 13:47
@github-actions github-actions Bot added this to the umbrella milestone Jul 23, 2026
@abhidesai6 abhidesai6 changed the title Wip rbac umrella umrella: mgr/dashboard: RBAC issues Jul 23, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 23, 2026
@abhidesai6

Copy link
Copy Markdown
Author

jenkins test windows

@abhidesai6 abhidesai6 changed the title umrella: mgr/dashboard: RBAC issues umbrella: mgr/dashboard: RBAC issues Jul 28, 2026
@afreen23

Copy link
Copy Markdown
Contributor

@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)'.

@yuriw

yuriw commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri15-testing-20260803.134326-umbrella.

@yuriw

yuriw commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri10-testing-20260804.162800-umbrella.

@batrick batrick removed the releng-audit-fail Release engineering: failed backport verification audit. label Aug 5, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

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)

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)

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.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Aug 5, 2026
@batrick
batrick merged commit 2f67f9f into ceph:umbrella Aug 5, 2026
27 of 34 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Aug 5, 2026
@batrick batrick modified the milestones: umbrella, v21.1.1 Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard needs-qa pybind releng-audit-fail Release engineering: failed backport verification audit. tests wip-yuri10-testing

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants