Repository navigation
rgw/sts: GetCallerIdentity API - #63672
Conversation
3926115 to
bc257a7
Compare
|
@cbodley : we found a test case that creates a role in an account here https://github.com/ceph/s3-tests/blob/master/s3tests_boto3/functional/test_iam.py:test_account_role_create. Is there any test case that tests assume role using cross account access (not tenants). |
the examples i found: |
bc257a7 to
893e852
Compare
893e852 to
74de6af
Compare
74de6af to
17d4cc1
Compare
17d4cc1 to
405a29d
Compare
a2c84e2 to
570749a
Compare
|
Overall the PR looks fine to me. |
same! but we should add s3test coverage for this API - at least for LocalApplier and RoleApplier cases |
570749a to
f7a3b8c
Compare
There was a problem hiding this comment.
driver->get_user() just allocates a handle, it doesn't load it from the backend - and we shouldn't try to load it here
RemoteApplier::load_acct_info() will have already loaded this 'shadow user' if it exists, or called RemoteApplier::create_account() to make a new one
if get_caller_identity() needs additional information from the RGWUserInfo, load_acct_info() should stash that in a member variable like we do with the account info:
// account and policies are loaded by load_acct_info()
mutable std::optional<RGWAccountInfo> account;but if we're just trying to be consistent with what we match in RemoteApplier::is_identity(), this alone should be sufficient:
return rgw::ARN(owner_acct_user.id, "user", owner_acct_user.tenant, true);There was a problem hiding this comment.
okay, but there was a example where driver->get_user() was used RemoteApplier::create_account().
Yes, Below is sufficient.
return rgw::ARN(owner_acct_user.id, "user", owner_acct_user.tenant, true);cf785ae to
97b0bf9
Compare
There was a problem hiding this comment.
shouldn't RemoteApplier::get_caller_identity be moved to previous commit?
There was a problem hiding this comment.
@cbodley : are keystone/ldap users created under accounts? from the comments I see handling for global tenant/implicit tenants only.
There was a problem hiding this comment.
are keystone/ldap users created under accounts?
no, RemoteApplier::create_account() only creates the 'shadow user' - no 'shadow accounts'
though once a shadow user exists, it is possible to migrate that into an account via https://docs.ceph.com/en/latest/radosgw/account/#migrate-an-existing-user-into-an-account
65e38fa to
abd127c
Compare
abd127c to
64444ba
Compare
64444ba to
abc3e75
Compare
Tracker: https://tracker.ceph.com/issues/72157 Signed-off-by: Raja Sharma <[email protected]>
Tracker: https://tracker.ceph.com/issues/72157 Signed-off-by: Raja Sharma <[email protected]>
abc3e75 to
a6e6885
Compare
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition