]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson: update osd when peer gets authenticated 27416/head
authorKefu Chai <kchai@redhat.com>
Sat, 6 Apr 2019 13:00:59 +0000 (21:00 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 9 Apr 2019 03:38:04 +0000 (11:38 +0800)
commite2f2a7f6061b08a971c87468f8c69c5bf6f1a97e
tree409e48298ef19b4613b31b6c1e5d67895b006eba
parent30c822120a903f31417c3e2a677eedbce461f002
crimson: update osd when peer gets authenticated

* common/auth_handler.h: add an abstract class of AuthHandler, the one who is interested in
  an authenticated peer should implement this class
* mon/MonClient: let mon::Client implement AuthServer, as it has access the keyring. it
  will update the registered AuthHandler if the client (peer) is
  authenticated.
* osd: implement AuthHandler class. we will keep track of the connected
  sessions along their caps in a follow-up change.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/common/auth_handler.h [new file with mode: 0644]
src/crimson/mon/MonClient.cc
src/crimson/mon/MonClient.h
src/crimson/osd/osd.cc
src/crimson/osd/osd.h