From: Pritha Srivastava Date: Wed, 17 Jun 2020 07:02:00 +0000 (+0530) Subject: rgw/sts: Adding a configurable rgw_sts_min_session_duration X-Git-Tag: v16.1.0~737^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0e766f98b985a3ada6fdf627537449f27bfb9ecb;p=ceph.git rgw/sts: Adding a configurable rgw_sts_min_session_duration that can be used to set the lower limit of duration for which an STS token is valid. Fixes: https://tracker.ceph.com/issues/46049 Signed-off-by: Pritha Srivastava --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index ea16bc85cd71..a727bddd4a9e 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1547,6 +1547,7 @@ OPTION(rgw_sts_entry, OPT_STR) OPTION(rgw_sts_key, OPT_STR) OPTION(rgw_s3_auth_use_sts, OPT_BOOL) // should we try to use sts for s3? OPTION(rgw_sts_max_session_duration, OPT_U64) // Max duration in seconds for which the session token is valid. +OPTION(rgw_sts_min_session_duration, OPT_U64) // Min duration in seconds for which the session token is valid. OPTION(fake_statfs_for_testing, OPT_INT) // Set a value for kb and compute kb_used from total of num_bytes OPTION(rgw_sts_token_introspection_url, OPT_STR) // url for introspecting web tokens OPTION(rgw_sts_client_id, OPT_STR) // Client Id diff --git a/src/common/options.cc b/src/common/options.cc index 7d0e70b3bdda..0a526407972c 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7020,6 +7020,10 @@ std::vector