RGW with Keystone: best practices, gaps, and who’s working on it?
Hi all, I operate object storage for an OpenStack cloud, with RGW authenticating users through Keystone for both the S3 and Swift APIs. The individual features work fine, but we’ve had to work around some gaps between what RGW and Keystone each handle. Two examples: Quotas: Out of the box, there doesn’t seem to be an “OpenStack way” to set quotas in RGW. We built a small tool to manage per-project quotas, and plan to have it read them from Keystone unified limits. https://github.com/ChameleonCloud/rgw-quota-sync Access and identity: Right now, each Keystone project is mapped to a single RGW user, which makes it difficult to, for example, create a bucket with access rules narrower than “one project”, such as restricting to a specific service account. I saw that Squid added RGW “accounts”, and there are recent commits relating to Keystone policy, but it isn’t clear to me how they are meant to fit together. Is there a recommended recipe for how RGW and Keystone are intended to be used together in production? I’d be happy to contribute to docs or improvements, and generally collaborate. 😊 Thanks! -Mike -- Michael Sherman Infrastructure Lead – Chameleon Computer Science, University of Chicago MCS, Argonne National Lab
We have a similar setup, with one S3 service provided by RGW direct auth for individual accounts and Keystone group role assignments for project members. We have also had some good experiments with Keystone user role assignments for project members, in the cases where the Principal Investigator (research groups) is willing to take on the extra complexity. That complexity includes needing to use X-Amz-Acl:bucket-owner-full-control ACLs when granting bucket policy to non-'admins', at least until we upgrade to Tentacle (or is it Umbrella? I forget right now) with stronger bucket policy support. Meanwhile, there is also the stronger IAM support which I understand Ceph now has. At the May Ceph Science meetup Theofilos Mouratidis from Switch in Switzerland talked about their journey to implementing it[1]. [1] https://pad.ceph.com/p/Ceph_Science_User_Group_20260526 Also, Casey Bodley has been a helpful source of info and support for this. I've spoken with him at Ceph Science or User+Dev meetings - I don't recall which. We also have a RGW S3 setup to serve to Nectar, Australia's federated OpenStack research cloud. I know Keystone is involved, and I suspect it is where quotas are set. HTH, Greg. On 12/11/26 04:34, Michael Sherman wrote:
Hi all,
I operate object storage for an OpenStack cloud, with RGW authenticating users through Keystone for both the S3 and Swift APIs. The individual features work fine, but we’ve had to work around some gaps between what RGW and Keystone each handle. Two examples:
Quotas: Out of the box, there doesn’t seem to be an “OpenStack way” to set quotas in RGW. We built a small tool to manage per-project quotas, and plan to have it read them from Keystone unified limits. https://github.com/ChameleonCloud/rgw-quota-sync
Access and identity: Right now, each Keystone project is mapped to a single RGW user, which makes it difficult to, for example, create a bucket with access rules narrower than “one project”, such as restricting to a specific service account. I saw that Squid added RGW “accounts”, and there are recent commits relating to Keystone policy, but it isn’t clear to me how they are meant to fit together.
Is there a recommended recipe for how RGW and Keystone are intended to be used together in production? I’d be happy to contribute to docs or improvements, and generally collaborate. 😊
Thanks! -Mike
-- Michael Sherman Infrastructure Lead – Chameleon Computer Science, University of Chicago MCS, Argonne National Lab
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
-- Gregory Orange
Hi, We've been using Keystone authentication for years, mainly because we migrated our object store service from OpenStack Swift to Ceph RGW, and this allowed us to keep the existing user accounts in place. However, we are now phasing out Keystone in favor of Ceph's internal authentication, for various reasons. One is that we have no other OpenStack components in the setup, so dropping Keystone is one less component to maintain. This is of course different for you. Another is the fact that in current versions of Ceph, there is only a single role mapping from a Keystone project, and a user with any accepted role has full access to the Ceph RGW account. This is being worked on, but it's not in any released version yet, not even Umbrella: https://docs.ceph.com/en/latest/radosgw/keystone/#project-scoped-reader-role Thirdly and most importantly, the self-service IAM functionality is just awesome, and the IAM policies are far superior to the older ACL's. Afaik getting this to work with Keystone is impossible, or at least very difficult. To be fair, since we've already decided to drop Keystone I stopped working on that integration so I'm not fully versed on the latest developments in that area. We have observed that Keystone authentication totally outperforms internal authentication when it comes to performance, due to the caching of tokens. So for us there is at least that drawback in dropping Keystone. Not the answer you were looking for, I know, just sharing our experience :) Regards, JM On 11/11/26 21:34, Michael Sherman wrote:
Hi all,
I operate object storage for an OpenStack cloud, with RGW authenticating users through Keystone for both the S3 and Swift APIs. The individual features work fine, but we’ve had to work around some gaps between what RGW and Keystone each handle. Two examples:
Quotas: Out of the box, there doesn’t seem to be an “OpenStack way” to set quotas in RGW. We built a small tool to manage per-project quotas, and plan to have it read them from Keystone unified limits. https://github.com/ChameleonCloud/rgw-quota-sync
Access and identity: Right now, each Keystone project is mapped to a single RGW user, which makes it difficult to, for example, create a bucket with access rules narrower than “one project”, such as restricting to a specific service account. I saw that Squid added RGW “accounts”, and there are recent commits relating to Keystone policy, but it isn’t clear to me how they are meant to fit together.
Is there a recommended recipe for how RGW and Keystone are intended to be used together in production? I’d be happy to contribute to docs or improvements, and generally collaborate. 😊
Thanks! -Mike
-- Michael Sherman Infrastructure Lead – Chameleon Computer Science, University of Chicago MCS, Argonne National Lab
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
On Wed, Nov 11, 2026 at 3:35 PM Michael Sherman <ceph-users@ceph.io> wrote:
Hi all,
I operate object storage for an OpenStack cloud, with RGW authenticating users through Keystone for both the S3 and Swift APIs. The individual features work fine, but we’ve had to work around some gaps between what RGW and Keystone each handle. Two examples:
Quotas: Out of the box, there doesn’t seem to be an “OpenStack way” to set quotas in RGW. We built a small tool to manage per-project quotas, and plan to have it read them from Keystone unified limits. https://github.com/ChameleonCloud/rgw-quota-sync
Access and identity: Right now, each Keystone project is mapped to a single RGW user, which makes it difficult to, for example, create a bucket with access rules narrower than “one project”, such as restricting to a specific service account. I saw that Squid added RGW “accounts”, and there are recent commits relating to Keystone policy, but it isn’t clear to me how they are meant to fit together.
the user accounts feature in https://docs.ceph.com/en/squid/radosgw/account/ was modeled after aws accounts and doesn't have a good story for keystone. it is possible to migrate an existing keystone user into an account using the instructions from https://docs.ceph.com/en/squid/radosgw/account/#migrate-an-existing-user-int.... but if the user is given is account-root privileges, that would allow them to create additional users/roles and authenticate through those instead of keystone. this may be desirable in some cases, but it may also defeat the purpose of using keystone for authentication on the iam policy side, the umbrella release adds new condition keys keystone:role and keystone:userid, documented in https://docs.ceph.com/en/umbrella/radosgw/keystone/#keystone-integration-wit.... those can be used in bucket policy without the need for user accounts
Is there a recommended recipe for how RGW and Keystone are intended to be used together in production? I’d be happy to contribute to docs or improvements, and generally collaborate. 😊
Thanks! -Mike
-- Michael Sherman Infrastructure Lead – Chameleon Computer Science, University of Chicago MCS, Argonne National Lab
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
was modeled after aws accounts and doesn't have a good story for keystone… Yes, although I think this is also a relevant limitation elsewhere on the openstack side, so I’m looking into this in the context of “how do I grant permissions only to particular resources: object store, nova instances, neutron networks …”
In some ways the limiting case is “give an API key to a totally untrusted LLM agent”, and make sure it can only modify expected resources. None of this is “AI” specific, just an example of when you’d want to grant access to something so untrusted. I think some brainstorming is required to figure out a reasonable model, before deciding how to synchronize such a thing. I should also say that I’m at OpenInfra today if anyone wants to chat about this in person. -Mike From: Casey Bodley <cbodley@redhat.com> Date: Friday, November 13, 2026 at 9:00 AM To: Michael Sherman <shermanm@uchicago.edu> Cc: ceph-users@ceph.io <ceph-users@ceph.io> Subject: Re: [ceph-users] RGW with Keystone: best practices, gaps, and who’s working on it? On Wed, Nov 11, 2026 at 3:35 PM Michael Sherman <ceph-users@ceph.io> wrote:
Hi all,
I operate object storage for an OpenStack cloud, with RGW authenticating users through Keystone for both the S3 and Swift APIs. The individual features work fine, but we’ve had to work around some gaps between what RGW and Keystone each handle. Two examples:
Quotas: Out of the box, there doesn’t seem to be an “OpenStack way” to set quotas in RGW. We built a small tool to manage per-project quotas, and plan to have it read them from Keystone unified limits. https://urldefense.com/v3/__https://github.com/ChameleonCloud/rgw-quota-sync__;!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cUgjd1hs$<https://urldefense.com/v3/__https:/github.com/ChameleonCloud/rgw-quota-sync__;!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cUgjd1hs$>
Access and identity: Right now, each Keystone project is mapped to a single RGW user, which makes it difficult to, for example, create a bucket with access rules narrower than “one project”, such as restricting to a specific service account. I saw that Squid added RGW “accounts”, and there are recent commits relating to Keystone policy, but it isn’t clear to me how they are meant to fit together.
the user accounts feature in https://urldefense.com/v3/__https://docs.ceph.com/en/squid/radosgw/account/__;!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cRfReHnY$<https://urldefense.com/v3/__https:/docs.ceph.com/en/squid/radosgw/account/__;!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cRfReHnY$> was modeled after aws accounts and doesn't have a good story for keystone. it is possible to migrate an existing keystone user into an account using the instructions from https://urldefense.com/v3/__https://docs.ceph.com/en/squid/radosgw/account/*migrate-an-existing-user-into-an-account__;Iw!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cbkXvcxg$<https://urldefense.com/v3/__https:/docs.ceph.com/en/squid/radosgw/account/*migrate-an-existing-user-into-an-account__;Iw!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cbkXvcxg$> . but if the user is given is account-root privileges, that would allow them to create additional users/roles and authenticate through those instead of keystone. this may be desirable in some cases, but it may also defeat the purpose of using keystone for authentication on the iam policy side, the umbrella release adds new condition keys keystone:role and keystone:userid, documented in https://urldefense.com/v3/__https://docs.ceph.com/en/umbrella/radosgw/keystone/*keystone-integration-with-the-s3-api__;Iw!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cmUX04KY$<https://urldefense.com/v3/__https:/docs.ceph.com/en/umbrella/radosgw/keystone/*keystone-integration-with-the-s3-api__;Iw!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cmUX04KY$> . those can be used in bucket policy without the need for user accounts
Is there a recommended recipe for how RGW and Keystone are intended to be used together in production? I’d be happy to contribute to docs or improvements, and generally collaborate. 😊
Thanks! -Mike
-- Michael Sherman Infrastructure Lead – Chameleon Computer Science, University of Chicago MCS, Argonne National Lab
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
Hi, I wrote the keystone:role and keystone:userid condition keys (in Umbrella) and two new Keystone roles (in main, not in Umbrella yet): project reader: the user can read everything in the project, but cannot write Implicit deny: the user can log in, but has no access by default. The idea is to use these two new roles and new condition keys to get finer control than “one project”. For your service account case: give it only an implicit deny role, and use keystone:user id on the one bucket in the bucket policy. Note: the user should hold only that one role. If they also have member or admin, they get full access again. Docs: https://docs.ceph.com/en/latest/radosgw/keystone/#project-scoped-reader-role https://docs.ceph.com/en/latest/radosgw/keystone/#implicit-deny-roles
On 17. Nov 2026, at 15:51, Michael Sherman <shermanm@uchicago.edu> wrote:
was modeled after aws accounts and doesn't have a good story for keystone… Yes, although I think this is also a relevant limitation elsewhere on the openstack side, so I’m looking into this in the context of “how do I grant permissions only to particular resources: object store, nova instances, neutron networks …”
In some ways the limiting case is “give an API key to a totally untrusted LLM agent”, and make sure it can only modify expected resources. None of this is “AI” specific, just an example of when you’d want to grant access to something so untrusted.
I think some brainstorming is required to figure out a reasonable model, before deciding how to synchronize such a thing.
I should also say that I’m at OpenInfra today if anyone wants to chat about this in person.
-Mike
From: Casey Bodley <cbodley@redhat.com> Date: Friday, November 13, 2026 at 9:00 AM To: Michael Sherman <shermanm@uchicago.edu> Cc: ceph-users@ceph.io <ceph-users@ceph.io> Subject: Re: [ceph-users] RGW with Keystone: best practices, gaps, and who’s working on it? On Wed, Nov 11, 2026 at 3:35 PM Michael Sherman <ceph-users@ceph.io> wrote:
Hi all,
I operate object storage for an OpenStack cloud, with RGW authenticating users through Keystone for both the S3 and Swift APIs. The individual features work fine, but we’ve had to work around some gaps between what RGW and Keystone each handle. Two examples:
Quotas: Out of the box, there doesn’t seem to be an “OpenStack way” to set quotas in RGW. We built a small tool to manage per-project quotas, and plan to have it read them from Keystone unified limits. https://urldefense.com/v3/__https://github.com/ChameleonCloud/rgw-quota-sync__;!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cUgjd1hs$<https://urldefense.com/v3/__https:/github.com/ChameleonCloud/rgw-quota-sync__;!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cUgjd1hs$>
Access and identity: Right now, each Keystone project is mapped to a single RGW user, which makes it difficult to, for example, create a bucket with access rules narrower than “one project”, such as restricting to a specific service account. I saw that Squid added RGW “accounts”, and there are recent commits relating to Keystone policy, but it isn’t clear to me how they are meant to fit together.
the user accounts feature in https://urldefense.com/v3/__https://docs.ceph.com/en/squid/radosgw/account/__;!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cRfReHnY$<https://urldefense.com/v3/__https:/docs.ceph.com/en/squid/radosgw/account/__;!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cRfReHnY$> was modeled after aws accounts and doesn't have a good story for keystone. it is possible to migrate an existing keystone user into an account using the instructions from https://urldefense.com/v3/__https://docs.ceph.com/en/squid/radosgw/account/*migrate-an-existing-user-into-an-account__;Iw!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cbkXvcxg$<https://urldefense.com/v3/__https:/docs.ceph.com/en/squid/radosgw/account/*migrate-an-existing-user-into-an-account__;Iw!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cbkXvcxg$> . but if the user is given is account-root privileges, that would allow them to create additional users/roles and authenticate through those instead of keystone. this may be desirable in some cases, but it may also defeat the purpose of using keystone for authentication
on the iam policy side, the umbrella release adds new condition keys keystone:role and keystone:userid, documented in https://urldefense.com/v3/__https://docs.ceph.com/en/umbrella/radosgw/keystone/*keystone-integration-with-the-s3-api__;Iw!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cmUX04KY$<https://urldefense.com/v3/__https:/docs.ceph.com/en/umbrella/radosgw/keystone/*keystone-integration-with-the-s3-api__;Iw!!BpyFHLRN4TMTrA!4168JuxeKZmd76jyRSyr7iW-YgqXIaTJKpRskIwbRdgRQ02tpkh5gBTFFMhjUsqgrV0gZMLsYs-cmUX04KY$> . those can be used in bucket policy without the need for user accounts
Is there a recommended recipe for how RGW and Keystone are intended to be used together in production? I’d be happy to contribute to docs or improvements, and generally collaborate. 😊
Thanks! -Mike
-- Michael Sherman Infrastructure Lead – Chameleon Computer Science, University of Chicago MCS, Argonne National Lab
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
participants (5)
-
Casey Bodley
-
Gregory Orange
-
Jean-Marie de Boer
-
Michael Sherman
-
Supriti Singh