Repository navigation
rgw/logging: use assumed-role ARN as Requester for STS requests - #68887
Conversation
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
13 similar comments
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
please add test to cover this issue |
|
jenkins test pr |
d955971 to
4ca8d51
Compare
|
@ShreeJejurikar the "assume role" test is failing with: (please ignore the other failures as they are unrelated). |
from the radosgw log,
you'll want to copy |
0c69bec to
e3900f4
Compare
assume role test is passing. 2 tests are failing:
|
When a request is made with STS temporary credentials, the bucket logging Requester field was being set to the underlying user ID instead of the assumed-role ARN. Per the AWS S3 server-access-log spec, the Requester field should contain the assumed-role ARN (e.g. arn:aws:sts::<account>:assumed-role/<role>/<session>) for STS-credentialed requests. Detect TYPE_ROLE identities via s->auth.identity->get_identity_type() and use the ARN returned by Identity::get_caller_identity() (already implemented by RoleApplier in the expected AWS format) instead of falling straight through to s->user->get_id(). Existing behavior for account- and user-scoped requests is unchanged. Fixes: https://tracker.ceph.com/issues/71742 Signed-off-by: Shree Jejurikar <[email protected]>
e3900f4 to
ab9d278
Compare
Rebased
I tried searching for test_bucket_logging_requester_assumed_role in the teuthology logs but couldn't find it, can you point me to where the log is please? |
you are right. i was running againts the wrong s3tests branch. will re-test |
|
reran the test, this time against the right s3tests branch: test is now failing on bucket creation: i see this in the rgw log: this is the tethology rgw "overrides" yaml: overrides:
ceph:
conf:
client:
setuser: ceph
setgroup: ceph
debug rgw: 20
rgw bucket logging obj roll time: 5
rgw sts key: abcdefghijklmnop
rgw:
storage classes:
LUKEWARM:
FROZEN:
s3tests:
accounts:
iam root: RGW88888888888888888
iam alt root: RGW99999999999999999 |
|
ig the bucket-logging overrides yaml might be missing this? Don;t know for sure tho |
teuthology run with this extra lines: https://pulpito-ng.ceph.com/runs/yuvalif-2026-05-25_13:17:23-rgw:bucket-logging-wip-yuval-test1-distro-default-trial |
The test Passes, but these 2 still fail, even though I did do rebase: |
Set rgw sts key and enable rgw s3 auth use sts, both needed by test_bucket_logging_requester_assumed_role. Mirrors the existing settings in qa/suites/rgw/verify/overrides.yaml. Signed-off-by: ShreeJejurikar <[email protected]>
ab9d278 to
6ff6a55
Compare
i did not build a new shaman image after the rebase. so it makes sense. |
test passing, including |
|
jenkins test make check arm64 |
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
The referenced tickets are: Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them. |
When a request is made with STS temporary credentials, the bucket logging Requester field was being set to the underlying user ID instead of the assumed-role ARN. Per the AWS S3 server-access-log spec, the Requester field should contain the assumed-role ARN (e.g.
arn:aws:sts::<account>:assumed-role/<role>/<session>) for STS-credentialed requests.Detect
TYPE_ROLEidentities vias->auth.identity->get_identity_type()and use the ARN returned byIdentity::get_caller_identity()(already implemented byRoleApplierin the expected AWS format) instead of falling straight through tos->user->get_id(). Existing behavior for account- and user-scoped requests is unchanged.Verified locally against a vstart cluster: a PUT made with
sts:AssumeRolecredentials now produces a log record whose Requester field exactly matches theAssumedRoleUser.Arnreturned by STS.Fixes: https://tracker.ceph.com/issues/71742
Checklist
Tests for this fix will be added in a separate PR against ceph/s3-tests as agreed with the maintainer; that PR will link back here.