惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
U
Unit 42
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
雷峰网
雷峰网
罗磊的独立博客
Microsoft Security Blog
Microsoft Security Blog
Hugging Face - Blog
Hugging Face - Blog
L
LangChain Blog
人人都是产品经理
人人都是产品经理
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Help Net Security
P
Proofpoint News Feed
The Cloudflare Blog
D
Docker
大猫的无限游戏
大猫的无限游戏

OneUptime Blog

How to Monitor Azure App Services (PaaS) with OpenTelemetry Grafana Stack vs OneUptime: DIY Observability or Unified Platform? Your AI Workloads Are About to Blow Up Your Observability Bill The Great Observability Consolidation Is Here How to Write Custom Object Classes for Ceph How to Write Custom Ceph Manager Modules How to Write a ceph.conf Configuration File How to Use Rook-Ceph with OpenShift How to Use Rook-Ceph with Longhorn for Comparison How to Configure Volume Snapshot Class for RBD in Rook How to Configure VolumeReplicationClass Scheduling Intervals in Rook How to Set Up Volume Replication with Rook-Ceph How to Create Volume Group Snapshots with Rook CSI How to Visualize Ceph Network Performance in Grafana How to Enable Virtual Host-Style Bucket Access in Rook How to View Runtime Configuration via Admin Socket How to View Quota Settings and Update Stats in Ceph RGW How to View PG Scaling Recommendations with autoscale-status How to View PG Distribution via Admin Socket How to View Performance Metrics in the Ceph Dashboard How to View OSD Performance Counters in Ceph How to View Connection Status via Admin Socket How to View Ceph Cluster Summary Dashboard via CLI How to Version Control Rook-Ceph Configuration How to Version Control Ceph Infrastructure with Terraform How to Verify Kubernetes Node Requirements for Rook-Ceph Deployment How to Verify Health Before and After Rook Upgrades How to Verify Data Integrity with Deep Scrubbing How to Verify Complete Rook-Ceph Cleanup How to Verify Backup Integrity from Ceph Snapshots
How to Configure User Management in the Ceph Dashboard
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

Overview

The Ceph Dashboard supports multi-user access with role-based access control (RBAC). You can create users with specific roles (read-only, block-manager, etc.) to enable different team members to access only the sections they need.

Default Admin User

The initial admin user is created by Rook during cluster bootstrap. Access credentials:

# Get the admin password
kubectl -n rook-ceph get secret rook-ceph-dashboard-password \
  -o jsonpath='{.data.password}' | base64 --decode

# The default username is "admin"

Built-in Dashboard Roles

The Dashboard ships with these built-in roles:

RolePermissions
administratorFull access to all security scopes
read-onlyRead access to all security scopes except dashboard settings
block-managerFull access to the rbd-image, rbd-mirroring, and iscsi scopes
rgw-managerFull access to the rgw scope
cluster-managerFull access to the hosts, osd, monitor, manager, and config-opt scopes
pool-managerFull access to the pool scope
cephfs-managerFull access to the cephfs scope

Creating a New Dashboard User

Navigate to Administration > User Management > Users, click "Create":

CLI equivalent (these commands assume the rook-ceph-tools toolbox deployment is running):

# Write the password to a temporary file inside the toolbox pod
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- bash -lc \
  "printf '%s' 'SecurePassword123!' > /tmp/alice-password"

kubectl -n rook-ceph exec deploy/rook-ceph-tools -- \
  ceph dashboard ac-user-create \
  --enabled \
  alice \
  -i /tmp/alice-password \
  administrator

# Change the password later if needed
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- bash -lc \
  "printf '%s' 'EvenMoreSecurePassword123!' > /tmp/alice-password"

kubectl -n rook-ceph exec deploy/rook-ceph-tools -- \
  ceph dashboard ac-user-set-password \
  alice \
  -i /tmp/alice-password

# List users
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- \
  ceph dashboard ac-user-show

# Clean up the temporary password file
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- \
  rm -f /tmp/alice-password

Creating Custom Roles

Define granular permissions with custom roles:

# Create a role that can only view pools and RBD
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- \
  ceph dashboard ac-role-create dev-readonly

# Add read scopes to the role
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- \
  ceph dashboard ac-role-add-scope-perms dev-readonly pool read

kubectl -n rook-ceph exec deploy/rook-ceph-tools -- \
  ceph dashboard ac-role-add-scope-perms dev-readonly rbd-image read

# Assign role to a user
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- \
  ceph dashboard ac-user-set-roles bob dev-readonly

Available scopes for permissions include hosts, config-opt, pool, osd, monitor, rbd-image, rbd-mirroring, iscsi, rgw, cephfs, nfs-ganesha, manager, log, grafana, prometheus, and dashboard-settings.

Disable, Re-enable, or Delete a User

# Disable user (prevent login)
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- \
  ceph dashboard ac-user-disable alice

# Re-enable
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- \
  ceph dashboard ac-user-enable alice

# Delete user
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- \
  ceph dashboard ac-user-delete alice

Force Password Change on Next Login

kubectl -n rook-ceph exec deploy/rook-ceph-tools -- \
  ceph dashboard ac-user-create \
  --enabled \
  --pwd_update_required \
  alice \
  -i /tmp/alice-password \
  administrator

Summary

Ceph Dashboard RBAC allows assigning built-in roles (administrator, read-only, block-manager, etc.) or custom roles with granular scope-level permissions to each user. Using the ac-user-create and ac-role-add-scope-perms commands, you can implement least-privilege access for development, operations, and monitoring teams on the same dashboard.