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

fix(get_rgw_users): use metadata query for listing users #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rgruyters
Copy link

The /admin/user?format=json&list only output the first 1000 users that it come across. /admin/metadata/user?format=json will output all users.

The official Go library for Ceph still uses "metadata/user" for listing all users. (https://github.com/ceph/go-ceph/blob/master/rgw/admin/user.go#L136-L149)

This will fix issue #48

The `/admin/user?format=json&list` only output the first 1000 users that
it come across. `/admin/metadata/user?format=json` will output all
users.

The official Go library for Ceph still uses "metadata/user" for listing
all users. (https://github.com/ceph/go-ceph/blob/master/rgw/admin/user.go#L136-L149)
@rgruyters rgruyters changed the title fix(get_rgw_users): use metadata query for listing users (#48) fix(get_rgw_users): use metadata query for listing users Aug 7, 2024
@k0ste
Copy link
Contributor

k0ste commented Aug 7, 2024

The max-entries=1000, is by design. The real fix is a adding support to query the next users via marker (marker is returned with API answer`)

admin/user?list&max-entries=100&marker=<marker>

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

Successfully merging this pull request may close these issues.

2 participants