]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
auth/cephx: rotate auth tickets less often
authorIlya Dryomov <idryomov@gmail.com>
Mon, 22 Mar 2021 18:16:32 +0000 (19:16 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 12 Apr 2021 19:59:41 +0000 (21:59 +0200)
commit3890b64c6fdddff86dfbef747e2bc5a92d9083df
treecb723a51e2d8756bed2256a8ae69418e68d40750
parent01c52b1eae929e86fc7777ba3fcff544c5aba8af
auth/cephx: rotate auth tickets less often

If unauthorized global_id (re)use is disallowed, a client that has
been disconnected from the network long enough for keys to rotate
and its auth ticket to expire (i.e. become invalid/unverifiable)
would not be able to reconnect.

The default TTL is 12 hours, resulting in a 12-24 hour reconnect
window (the previous key is kept around, so the actual window can be
up to double the TTL).  The setting has stayed the same since 2009,
but it also hasn't been enforced.  Bump it to get a 72 hour reconnect
window to cover for something breaking on Friday and not getting fixed
until Monday.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 522a52e6c258932274f0753feb623ce008519216)
src/common/options.cc