Bug 2019870

Summary: [cee/sd][rgw][rfe] add method to modify role max_session_duration for existing role
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Tomas Petr <tpetr>
Component: RGWAssignee: Pritha Srivastava <prsrivas>
Status: CLOSED ERRATA QA Contact: Madhavi Kasturi <mkasturi>
Severity: medium Docs Contact: Akash Raj <akraj>
Priority: medium    
Version: 5.0CC: akraj, cbodley, ceph-eng-bugs, fkellehe, kbader, mbenjamin, mkasturi, pasik, prsrivas, tserlin, vereddy
Target Milestone: ---Keywords: FutureFeature
Target Release: 5.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.2.10-7.el8cp Doc Type: Enhancement
Doc Text:
.STS `max_session_duration` for a role can now be updated With this release, the STS `max_session_duration` for a role can be updated using the `radosgw-admin` command-line interface.
Story Points: ---
Clone Of:
: 2019878 2137015 (view as bug list) Environment:
Last Closed: 2023-01-11 17:38:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2126049, 2137015    

Description Tomas Petr 2021-11-03 14:14:53 UTC
Description of problem:
Currently there is no option to modify max_session_duration for existing roles, such attempt returns: "MethodNotAllowed", HTTP status 405.  

----
Example of boto3 code is:
iam_client.update_role(
RoleName=myrole,
MaxSessionDuration=43200
)
----

Using "radosgw-admin role modify" does not work either:
# radosgw-admin role modify --role-name=S3Access1 --max-session-duration=7200
ERROR: invalid flag --max-session-duration=7200


Version-Release number of selected component (if applicable):
RHCS 5

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 93 errata-xmlrpc 2023-01-11 17:38:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Ceph Storage 5.3 security update and Bug Fix), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:0076

Comment 94 Red Hat Bugzilla 2023-09-18 04:27:40 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days