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

推荐订阅源

V
V2EX
博客园 - 叶小钗
Last Week in AI
Last Week in AI
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
P
Proofpoint News Feed
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
量子位
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
博客园 - Franky
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net
博客园_首页
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow 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 User Type and ID Notation (TYPE.ID) in ...
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

The TYPE.ID Format

Every Ceph authentication entity is identified using a two-part name in the format TYPE.ID. The type indicates what kind of entity it is, and the ID is a unique identifier within that type. This notation is used consistently across all Ceph authentication commands, configuration files, and keyrings.

Examples of valid TYPE.ID names:

client.admin
client.myapp
osd.0
osd.14
mon.node1
mds.0
mgr.ceph-a

Supported Types

Ceph defines the following entity types:

TypeDescription
clientExternal applications, admins, service accounts
osdObject Storage Daemon
monMonitor daemon
mdsMetadata Server daemon
mgrManager daemon

The client type is the most commonly used type for manually created users. Internal daemon types are used by Ceph's own service processes.

How the Notation Appears in Keyrings

Keyring files store credentials using the TYPE.ID format as section headers:

[client.admin]
    key = AQA...==

[osd.0]
    key = AQB...==

[client.myapp]
    key = AQC...==

In Rook environments, these keyrings are stored as Kubernetes Secrets. For example:

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

Output:

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

Using TYPE.ID in ceph Commands

The full TYPE.ID must be used in most ceph auth commands:

# Get a specific user
ceph auth get client.myapp

# Delete a user
ceph auth del client.myapp

# Modify capabilities
ceph auth caps client.myapp mon 'allow r' osd 'allow rw pool=data'

# Export a user's keyring
ceph auth export client.myapp

For OSD and daemon users, use the same pattern:

ceph auth get osd.5
ceph auth caps osd.5 osd 'allow *' mon 'allow profile osd'

Short Form for Client Users

Some Ceph commands and tools accept the short form for client.* users. When specifying a user in the --name or -n flag, you can omit the client. prefix in some contexts, but it is best practice to always include the full TYPE.ID:

# Full form - always correct
ceph --name client.myapp --keyring /etc/ceph/myapp.keyring health

# Short form - works in some commands
rados --id myapp --keyring /etc/ceph/myapp.keyring ls mypool

ID Uniqueness Within a Type

IDs must be unique within each type, but the same ID can exist across different types. For example, osd.0 and client.0 are distinct entities:

ceph auth get osd.0   # OSD daemon with ID 0
ceph auth get client.0  # Client user with ID "0" (unusual but valid)

Creating Users with the Correct Notation

Always specify the full TYPE.ID when creating users:

ceph auth get-or-create client.prometheus \
  mon 'allow r' \
  mgr 'allow r'

Summary

Ceph authentication entities use a TYPE.ID format where type is one of client, osd, mon, mds, or mgr, and ID is a unique string within that type. Always use the full notation in commands like ceph auth get, ceph auth del, and ceph auth caps. Keyrings use this format as section headers, and Rook stores them as Kubernetes Secrets.