Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
services:
- rgw
with_legacy: true
+- name: rgw_keystone_expired_token_cache_expiration
+ type: int
+ level: advanced
+ desc: The number of seconds to add to current time for expired token expiration
+ fmt_desc: The expired token that is allowed when a valid service token is given
+ need a new expiration date for the caching. This is the seconds to add to the
+ current time and then set on an expired token that is verified with a service token.
+ default: 3600
+ services:
+ - rgw
+ with_legacy: true
- name: rgw_keystone_barbican_user
type: str
level: advanced
/* If this token was an allowed expired token because we got a
* service token we need to update the expiration before we cache it. */
if (allow_expired) {
- /* TODO(tobias-urdin): Make an hour here configurable. */
- uint64_t new_expires = ceph_clock_now().sec() + 3600;
+ uint64_t new_expires = ceph_clock_now().sec() + g_conf()->rgw_keystone_expired_token_cache_expiration;
ldpp_dout(dpp, 20) << "updating expiration of allowed expired token"
<< " from " << t->get_expires() << " to "
<< new_expires << dendl;