Skip to content

tentacle: mgr/dashoard: rbac issues tentacle - #70485

Open
abhidesai6 wants to merge 6 commits into
ceph:tentaclefrom
rhcs-dashboard:wip-rbac-tentacle
Open

abhidesai6 wants to merge 6 commits into
ceph:tentaclefrom
rhcs-dashboard:wip-rbac-tentacle

Conversation

@abhidesai6

@abhidesai6 abhidesai6 commented Jul 23, 2026 •

Copy link
Copy Markdown

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 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.

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 abhidesai6 changed the title Wip rbac tentacle tentacle: mgr/dashoard: rbac issues tentacle Jul 24, 2026
@abhidesai6

Copy link
Copy Markdown
Author

jenkins test windows

@abhidesai6

Copy link
Copy Markdown
Author

jenkins test make check

@abhidesai6

Copy link
Copy Markdown
Author

jenkins test api

@syedali237

Copy link
Copy Markdown
Contributor

jenkins test make check

@syedali237

Copy link
Copy Markdown
Contributor

jenkins test windows

@syedali237

Copy link
Copy Markdown
Contributor

jenkins test api

1 similar comment
@abhidesai6

Copy link
Copy Markdown
Author

jenkins test api

@abhidesai6

Copy link
Copy Markdown
Author

jenkins test make check

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

Abhishek Desai added 6 commits September 8, 2026 11:26
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

@afreen23 afreen23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@abhidesai6 please mention original PRs and backport trackers and update the tracker to keep bot happy!

@yuriw

yuriw commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri5-testing-20261005.150507-tentacle.

@devikab25

Copy link
Copy Markdown
Contributor

Hi @abhidesai6

Block-manager user is not able to create gateway or subsystem on NVMe page It is failing with Access Denied screen
Same screen is being encounted while deleting gateway even when Role has all CRUD permissions.
Can you look into this?

Screencast.From.2026-10-06.12-20-50.mp4
Screencast.From.2026-10-06.12-19-37.mp4

@batrick batrick removed the releng-audit-fail Release engineering: failed backport verification audit. label Oct 12, 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

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

⚠️ 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 f271465 (cherry-pick of 2fba7b7)

Affected File(s)

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)

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)

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.


⚠️ 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 Oct 12, 2026
@abhidesai6

abhidesai6 commented Oct 13, 2026 •

Copy link
Copy Markdown
Author

Hi @abhidesai6

Block-manager user is not able to create gateway or subsystem on NVMe page It is failing with Access Denied screen Same screen is being encounted while deleting gateway even when Role has all CRUD permissions. Can you look into this?

Screencast.From.2026-10-06.12-20-50.mp4
Screencast.From.2026-10-06.12-19-37.mp4

@afreen23
Problem desription :

  • Under the hood, creating or deleting a gateway group invokes the service management API:
    Create: POST /api/service
    Delete: DELETE /api/service/{service_name}
  • The Service controller is protected by Scope.HOSTS security scope.
  • Since the block-manager role only has Scope.HOSTS: ['read'] permissions, they are denied access.
  • If we directly grant create/delete permissions on Scope.HOSTS to the block-manager role, we introduce a critical security risk: the user would immediately gain authority to deploy or delete any other high-privilege service in the cluster (such as osd, mon, or mgr services), as well as manage host infrastructures (add/delete nodes).

How should we go with this , bit confused here?

@afreen23

afreen23 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Hi @abhidesai6
Block-manager user is not able to create gateway or subsystem on NVMe page It is failing with Access Denied screen Same screen is being encounted while deleting gateway even when Role has all CRUD permissions. Can you look into this?
Screencast.From.2026-10-06.12-20-50.mp4
Screencast.From.2026-10-06.12-19-37.mp4

@afreen23 Problem desription :

  • Under the hood, creating or deleting a gateway group invokes the service management API:
    Create: POST /api/service
    Delete: DELETE /api/service/{service_name}
  • The Service controller is protected by Scope.HOSTS security scope.
  • Since the block-manager role only has Scope.HOSTS: ['read'] permissions, they are denied access.
  • If we directly grant create/delete permissions on Scope.HOSTS to the block-manager role, we introduce a critical security risk: the user would immediately gain authority to deploy or delete any other high-privilege service in the cluster (such as osd, mon, or mgr services), as well as manage host infrastructures (add/delete nodes).

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

@abhidesai6

Copy link
Copy Markdown
Author

Hi @abhidesai6
Block-manager user is not able to create gateway or subsystem on NVMe page It is failing with Access Denied screen Same screen is being encounted while deleting gateway even when Role has all CRUD permissions. Can you look into this?
Screencast.From.2026-10-06.12-20-50.mp4
Screencast.From.2026-10-06.12-19-37.mp4

@afreen23 Problem desription :

  • Under the hood, creating or deleting a gateway group invokes the service management API:
    Create: POST /api/service
    Delete: DELETE /api/service/{service_name}
  • The Service controller is protected by Scope.HOSTS security scope.
  • Since the block-manager role only has Scope.HOSTS: ['read'] permissions, they are denied access.
  • If we directly grant create/delete permissions on Scope.HOSTS to the block-manager role, we introduce a critical security risk: the user would immediately gain authority to deploy or delete any other high-privilege service in the cluster (such as osd, mon, or mgr services), as well as manage host infrastructures (add/delete nodes).

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
Created a tracker for same https://tracker.ceph.com/issues/81696

@abhidesai6

Copy link
Copy Markdown
Author

@afreen23 If everything looks good, can we add releng override for this PR.

@abhidesai6
abhidesai6 requested a review from afreen23 October 13, 2026 08:31
@yuriw yuriw added needs-merge QA-approved, awaiting merge window wip-yuri5-testing and removed wip-yuri5-testing needs-merge QA-approved, awaiting merge window labels Nov 11, 2026
@afreen23

Copy link
Copy Markdown
Contributor

@abhidesai6 can we backport all together or remove the block manager commit
image

As this is not complete fix. Kindly create a PR in main for same and then backport.
Thanks

@abhidesai6

Copy link
Copy Markdown
Author

Sure @afreen23 ,
Let me update the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard needs-merge QA-approved, awaiting merge window needs-qa pybind releng-audit-fail Release engineering: failed backport verification audit. tests ui-tested-needed

Projects

Status: Review in progress

Development

Successfully merging this pull request may close these issues.

6 participants