Skip to content

umbrella: auth/cephx: harden service ticket verification - #72126

Merged
batrick merged 2 commits into
ceph:umbrellafrom
mheler:wip-80935-umbrella
Oct 7, 2026
Merged

batrick merged 2 commits into
ceph:umbrellafrom
mheler:wip-80935-umbrella

Conversation

@mheler

@mheler mheler commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

mheler and others added 2 commits September 27, 2026 09:08
The verifier accepted every field in a service ticket once it decrypted,
so nothing checked that the values inside were the ones the key server
put there.

Reject unexpected auid, allow_all, malformed capability buffers, and
invalid ticket timestamps. Compare ticket creation with session-key
creation, allowing five minutes either way for a clock step or
scheduling delay between the two stamps.

Co-authored-by: Dan van der Ster <[email protected]>
Signed-off-by: Dan van der Ster <[email protected]>
Signed-off-by: Matthew Heler <[email protected]>
(cherry picked from commit 16edd07)
Exercise fixed and rotating tickets through cephx_verify_authorizer.
Cover valid and long-lived tickets, allow_all changes, auid corruption,
malformed capability buffers, and timestamp corruption.

Check symmetric creation-time slack, reversed timestamps, and
nanosecond boundaries. Historical timestamps verify that the checks
do not depend on the service daemon's clock.

Co-authored-by: Dan van der Ster <[email protected]>
Signed-off-by: Dan van der Ster <[email protected]>
Signed-off-by: Matthew Heler <[email protected]>
(cherry picked from commit 02b616e)
@mheler
mheler requested review from a team as code owners September 27, 2026 14:08
@mheler mheler added this to the umbrella milestone Sep 27, 2026
@mheler mheler added the core label Sep 27, 2026
@github-actions github-actions Bot added documentation tests releng-audit-pass Release engineering: passed backport verification audit. labels Sep 27, 2026
@batrick batrick modified the milestones: umbrella, v21.2.0 Sep 28, 2026
@batrick

batrick commented Sep 28, 2026

Copy link
Copy Markdown
Member

jenkins test make check

@batrick

batrick commented Sep 28, 2026

Copy link
Copy Markdown
Member

jenkins test api

@batrick

batrick commented Sep 29, 2026

Copy link
Copy Markdown
Member

jenkins test make check

@batrick

batrick commented Sep 29, 2026

Copy link
Copy Markdown
Member

@batrick

batrick commented Oct 1, 2026

Copy link
Copy Markdown
Member

jenkins test api

@batrick

batrick commented Oct 1, 2026

Copy link
Copy Markdown
Member

jenkins test make check

@batrick
batrick merged commit 30b75b0 into ceph:umbrella Oct 7, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core documentation releng-audit-pass Release engineering: passed backport verification audit. tests wip-pdonnell-testing3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants