]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
auth: msgr2 can return incorrect allowed_modes through AuthBadMethodFrame 65335/head
authorMiki Patel <miki.patel132@gmail.com>
Mon, 28 Jul 2025 10:31:54 +0000 (16:01 +0530)
committerMiki Patel <miki.patel132@gmail.com>
Tue, 2 Sep 2025 17:04:50 +0000 (22:34 +0530)
commitd9703a999eee5896762b78a4027d5beaa795c4c9
treeaf6519108cb2703c7edff7c27f18eeb8f6e13d35
parente9c0107c77d8374f43bec1ef6456b4e99800c473
auth: msgr2 can return incorrect allowed_modes through AuthBadMethodFrame

Updating AuthServer interface to return correct modes by dividing function
get_supported_auth_methods() into two functions to get methods and modes separately.

Fixes: https://tracker.ceph.com/issues/72265
Signed-off-by: Miki Patel <miki.patel132@gmail.com>
(cherry picked from commit 5de7e746b79ca454010e1358d198beb625cb93e9)
src/auth/AuthServer.h
src/crimson/auth/AuthServer.h
src/crimson/auth/DummyAuth.h
src/crimson/mon/MonClient.cc
src/crimson/mon/MonClient.h
src/crimson/net/ProtocolV2.cc
src/msg/async/ProtocolV2.cc