]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon,auth: fix proposal of rotating keys
authorSage Weil <sage@newdream.net>
Wed, 29 Sep 2021 20:28:07 +0000 (16:28 -0400)
committerSage Weil <sage@newdream.net>
Fri, 1 Oct 2021 18:42:35 +0000 (14:42 -0400)
commit18864380cc3289e20fc1cbbfaefa34004265c774
treebd820833aa5bd44921d6fe15596e8db9e348a36c
parenteddfbbc421361d2f01704609b253a6d5ee7689b0
mon,auth: fix proposal of rotating keys

Instead of updating the live CephxKeyServer's rotating_keys and also
including them in a paxos proposal, propose new keys only in the proposal,
and only make them live once they are committed.  This keeps mons fully in
sync and avoids any inconsistency between the live behavior and committed
state (e.g., stale or divergent keys being applied and passed out to
daemons).

Signed-off-by: Sage Weil <sage@newdream.net>
src/auth/cephx/CephxKeyServer.cc
src/auth/cephx/CephxKeyServer.h
src/mon/AuthMonitor.cc
src/mon/AuthMonitor.h