]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
auth: make connection_secret a std::string
authorSage Weil <sage@redhat.com>
Wed, 23 Jan 2019 16:14:16 +0000 (10:14 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Feb 2019 18:10:33 +0000 (12:10 -0600)
commit951da2fbfa1639c881e46ce211db6fa762e61313
tree5c54acbf2b7b119a7c5c5a23aa1d4324ff7edcc7
parentc7ee66c3e54b276b219a0ef26e2475bde8a0fc8b
auth: make connection_secret a std::string

Move connection mode decision to initial auth_request point so that it
can inform auth implementation how big the connection secret should be.
Pass that value through where appropriate.

The connection_secret is now a std::string filled with random bytes.

For now the v2 protocol just uses the session_key CryptoKey to encrypt,
but this is about to change.

Signed-off-by: Sage Weil <sage@redhat.com>
48 files changed:
src/auth/Auth.h
src/auth/AuthAuthorizeHandler.h
src/auth/AuthClient.h
src/auth/AuthClientHandler.h
src/auth/AuthServiceHandler.h
src/auth/AuthSessionHandler.cc
src/auth/AuthSessionHandler.h
src/auth/cephx/CephxAuthorizeHandler.cc
src/auth/cephx/CephxAuthorizeHandler.h
src/auth/cephx/CephxClientHandler.cc
src/auth/cephx/CephxClientHandler.h
src/auth/cephx/CephxProtocol.cc
src/auth/cephx/CephxProtocol.h
src/auth/cephx/CephxServiceHandler.cc
src/auth/cephx/CephxServiceHandler.h
src/auth/cephx/CephxSessionHandler.cc
src/auth/cephx/CephxSessionHandler.h
src/auth/krb/KrbAuthorizeHandler.cpp
src/auth/krb/KrbAuthorizeHandler.hpp
src/auth/krb/KrbClientHandler.cpp
src/auth/krb/KrbClientHandler.hpp
src/auth/krb/KrbProtocol.hpp
src/auth/krb/KrbServiceHandler.cpp
src/auth/krb/KrbServiceHandler.hpp
src/auth/krb/KrbSessionHandler.hpp
src/auth/none/AuthNoneAuthorizeHandler.cc
src/auth/none/AuthNoneAuthorizeHandler.h
src/auth/none/AuthNoneClientHandler.h
src/auth/none/AuthNoneProtocol.h
src/auth/none/AuthNoneServiceHandler.h
src/auth/none/AuthNoneSessionHandler.h
src/auth/unknown/AuthUnknownAuthorizeHandler.cc
src/auth/unknown/AuthUnknownAuthorizeHandler.h
src/auth/unknown/AuthUnknownClientHandler.h
src/auth/unknown/AuthUnknownServiceHandler.h
src/auth/unknown/AuthUnknownSessionHandler.h
src/crimson/net/SocketConnection.cc
src/mon/AuthMonitor.cc
src/mon/MonClient.cc
src/mon/MonClient.h
src/mon/Monitor.cc
src/mon/Monitor.h
src/msg/Messenger.cc
src/msg/Messenger.h
src/msg/async/ProtocolV1.cc
src/msg/async/ProtocolV2.cc
src/msg/simple/Pipe.cc
src/msg/xio/XioConnection.cc