]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
auth/cephx: rotate auth tickets less often
authorIlya Dryomov <idryomov@gmail.com>
Mon, 22 Mar 2021 18:16:32 +0000 (19:16 +0100)
committerSage Weil <sage@newdream.net>
Tue, 6 Apr 2021 21:28:55 +0000 (17:28 -0400)
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>
src/common/options.cc

index a146adc041a079787a56057c15381b39b7667b5d..9f097a9af56e7b75005ee97909fd1325158185cd 100644 (file)
@@ -2385,7 +2385,7 @@ std::vector<Option> get_global_options() {
     .set_description(""),
 
     Option("auth_mon_ticket_ttl", Option::TYPE_FLOAT, Option::LEVEL_ADVANCED)
-    .set_default(12_hr)
+    .set_default(72_hr)
     .set_description(""),
 
     Option("auth_service_ticket_ttl", Option::TYPE_FLOAT, Option::LEVEL_ADVANCED)