Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw/s3: ListObjectsV2 returns correct object owners #51265

Merged
merged 1 commit into from May 23, 2023

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented Apr 27, 2023

Fixes: https://tracker.ceph.com/issues/59471

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@github-actions github-actions bot added the rgw label Apr 27, 2023
Copy link
Contributor

@mattbenjamin mattbenjamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks plausible

@cbodley cbodley marked this pull request as ready for review April 27, 2023 14:52
@cbodley cbodley requested a review from a team as a code owner April 27, 2023 14:52
@cbodley
Copy link
Contributor Author

cbodley commented Apr 27, 2023

created a testbucket, enabled public read acl, and uploaded a single 'keyring' object. used awscli to send list-objects-v2 requests with two separate vstart users, and confirmed that they both correctly show 'testid' as the object owner:

(virtualenv) cbodley@fedora ~/ceph/build $ AWS_ACCESS_KEY_ID=ABCDEFGHIJKLMNOPQRST AWS_SECRET_ACCESS_KEY=abcdefghijklmnopqrstuvwxyzabcdefghijklmn aws --endpoint-url http://localhost:8000 s3api list-objects-v2 --bucket testbucket --fetch-owner
{
    "Contents": [
        {
            "Key": "keyring",
            "LastModified": "2023-04-27T14:47:53.505Z",
            "ETag": "\"898c361f90cb2a813fe0490c565d6031\"",
            "Size": 294,
            "StorageClass": "STANDARD",
            "Owner": {
                "DisplayName": "M. Tester",
                "ID": "testid"
            }
        }
    ]
}
(virtualenv) cbodley@fedora ~/ceph/build $ AWS_ACCESS_KEY_ID=0555b35654ad1656d804 AWS_SECRET_ACCESS_KEY=h7GhxuBLTrlhVUyxSPUKUV8r/2EI4ngqJxD7iBdBYLhwluN30JaT3Q== aws --endpoint-url http://localhost:8000 s3api list-objects-v2 --bucket testbucket --fetch-owner
{
    "Contents": [
        {
            "Key": "keyring",
            "LastModified": "2023-04-27T14:47:53.505Z",
            "ETag": "\"898c361f90cb2a813fe0490c565d6031\"",
            "Size": 294,
            "StorageClass": "STANDARD",
            "Owner": {
                "DisplayName": "M. Tester",
                "ID": "testid"
            }
        }
    ]
}

@cbodley
Copy link
Contributor Author

cbodley commented May 15, 2023

@cbodley
Copy link
Contributor Author

cbodley commented May 15, 2023

jenkins test make check

@cbodley
Copy link
Contributor Author

cbodley commented May 15, 2023

jenkins test make check

1 similar comment
@cbodley
Copy link
Contributor Author

cbodley commented May 22, 2023

jenkins test make check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants