]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
RGW/Roles: honor "--max-session-duration" option when CREATING a role
authorOguzhan Ozmen <oozmen@bloomberg.net>
Sat, 7 Oct 2023 01:53:23 +0000 (21:53 -0400)
committerOguzhan Ozmen <oozmen@bloomberg.net>
Fri, 20 Oct 2023 20:07:13 +0000 (16:07 -0400)
commit08dffc23921fe1be98bce72d16d8bcc73e5e6b63
treeb025c2eea3ea5af73acb88b9cb9387cccd8daef6
parentebbc50c90794f6d8eef6dbf9b55fbc68e01c7b15
RGW/Roles: honor "--max-session-duration" option when CREATING a role

Currently, this option is not honored and the default (3600s) is used
regardless of whether this option is provided when creating a role:

$ radosgw-admin role create  --role-name=myrole --max-session-duration=43200 ...
$ radosgw-admin role get --role-name=myrole | jq '.MaxSessionDuration'
3600

With this commit, the value given by the --max-session-duration is
considered when creating the role. This would reduce the need for
updating the role's max-session-duration using a separate "role update"
radosgw-admin command call after the role is created:

$ radosgw-admin role create  --role-name=myrole --max-session-duration=43200 ...
$ radosgw-admin role get --role-name=myrole | jq '.MaxSessionDuration'
43200

Signed-off-by: Oguzhan Ozmen <oozmen@bloomberg.net>
src/rgw/rgw_admin.cc