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

推荐订阅源

爱范儿
爱范儿
H
Help Net Security
Jina AI
Jina AI
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
博客园 - 叶小钗
Y
Y Combinator Blog
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
C
Check Point Blog
Recent Announcements
Recent Announcements
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
美团技术团队
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
B
Blog

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 Understand CephX Authentication Protocol
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

CephX is Ceph's built-in authentication protocol, similar in concept to Kerberos. It provides mutual authentication between clients and Ceph daemons, ensuring that only authorized entities can access the cluster. Understanding CephX is fundamental to securing and troubleshooting Ceph deployments.

How CephX Works

CephX uses a shared-secret system with the following actors:

  • Monitor - acts as the authentication server (like a KDC)
  • Client - any entity accessing Ceph (application, OSD, MDS)
  • Daemon - OSDs, MDS, RGW that the client wants to communicate with

The authentication flow:

  1. Client sends an authentication request to the monitor
  2. Monitor verifies the client's secret key
  3. Monitor issues a session ticket encrypted with the daemon's key
  4. Client presents the ticket to the daemon
  5. Daemon decrypts the ticket using its shared key with the monitor

Key Structure in CephX

Each entity in Ceph has a keyring file. View a key:

kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph auth get client.admin

Output format:

[client.admin]
    key = AQBxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==
    caps mds = "allow *"
    caps mgr = "allow *"
    caps mon = "allow *"
    caps osd = "allow *"

Capability System

CephX capabilities control what authenticated entities can do. Common capability strings:

# Read-only access to a specific pool
"allow r pool=mypool"

# Read-write access to all pools
"allow rw"

# Full access
"allow *"

# OSD-specific capabilities
"allow class-read object_prefix rbd_children"

View All CephX Keys

List all existing authentication entries:

kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph auth ls

How Rook Manages CephX Keys

Rook automatically creates and manages CephX keys for all Ceph components. Keys are stored as Kubernetes Secrets:

kubectl -n rook-ceph get secrets | grep ceph

View the admin key secret:

kubectl -n rook-ceph get secret rook-ceph-admin-keyring -o jsonpath='{.data.keyring}' | \
  base64 -d

Verify Authentication is Working

Check if a client can authenticate:

kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- \
  ceph -n client.admin --keyring=/etc/ceph/keyring auth get client.admin

Summary

CephX provides mutual authentication using shared secrets and a ticket-based system where the monitor acts as the authentication authority. Every Ceph entity - clients, OSDs, MDS, and RGW - has its own keyring with capability strings that define permitted operations. Rook manages these keys automatically as Kubernetes Secrets, but understanding the underlying protocol is essential for debugging authentication failures and designing secure access policies.