cephx tickets, message by message
In the book: Chapter 8
cephx tickets, message by message
Follow a client's authentication from the MON to an OSD step by step: which key protects each part of each message, who can open it, and where an attack is stopped.
4. AUTH ticket and service tickets
The session key is encrypted with the client secret, so only the client opens it; the ticket blob uses the service's rotating secret and is opaque to the client. Since Nautilus the service tickets come in the same reply.
- { CephxServiceTicket (auth session_key, expires) }client secret The Client can open it
- { CephxTicketBlob (AuthTicket: name, global_id, caps) }AUTH rotating secret Opaque to the Client; only carried
- { connection_secret }auth session key The Client can open it
- { OSD CephxServiceTicket (OSD session_key) }auth session key The Client can open it
- { OSD CephxTicketBlob (session_key, AuthTicket, caps) }OSD rotating secret Opaque to the Client; only carried
Keys each party holds by this step
Client
client secret auth session key OSD session key
MON
client secret AUTH rotating secret OSD rotating secret the OSD's own key
OSD
OSD rotating secret the OSD's own key
Clock warnings on MONs and expired-ticket errors on clients often come from clock skew, because tickets carry expiry times; take NTP seriously (chapter 7).
Follows:
doc/dev/cephx.rst :: Phase I, Phase III, Rotating service secretsThe protocol designsrc/auth/cephx/CephxServiceHandler.cc, CephxClientHandler.cc, CephxProtocol.ccClient and service implementationsrc/auth/cephx/CephxKeyServer.cc :: rotating secretsRotating secretssrc/common/options/global.yaml.in :: auth_service_ticket_ttl (1 h), auth_mon_ticket_ttl (72 h)Ticket lifetimes