]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/monc: unify handling auth_service_ticket_ttl with classical OSD
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 26 Jul 2022 09:31:38 +0000 (09:31 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 26 Jul 2022 12:04:54 +0000 (12:04 +0000)
commitb9d2456fa6939eed317eaddef8ddf7ca077b564d
tree013825a0bdc46c427c0941e2ff3d2a40e3aecb7e
parent7ea3d373b7224b80112a179c4f38448d31eece65
crimson/monc: unify handling auth_service_ticket_ttl with classical OSD

In the classical `MonClient` the `auth_service_ticket_ttl` is lower
bounded to `30` units.

```cpp
  utime_t now = ceph_clock_now();
  utime_t cutoff = now;
  cutoff -= std::min(30.0, cct->_conf->auth_service_ticket_ttl / 4.0);
  utime_t issued_at_lower_bound = now;
  issued_at_lower_bound -= cct->_conf->auth_service_ticket_ttl;
  if (!rotating_secrets->need_new_secrets(cutoff)) {
    ldout(cct, 10) << "_check_auth_rotating have uptodate secrets (they expire after " << cutoff << ")" << dendl;
    rotating_secrets->dump_rotating();
    return 0;
  }
```

The unification affects also the debug mesages.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/mon/MonClient.cc