Repository navigation
umbrella: auth/cephx: harden service ticket verification - #72126
Merged
Merged
Conversation
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)
batrick
approved these changes
Sep 28, 2026
Member
|
jenkins test make check |
Member
|
jenkins test api |
Member
|
jenkins test make check |
Member
|
This PR has been added to umbrella integration testing by pdonnell started 2026-09-29-17:26. |
Member
|
jenkins test api |
Member
|
jenkins test make check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport tracker: https://tracker.ceph.com/issues/80935
backport of #71231
parent tracker: https://tracker.ceph.com/issues/80932
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh