2018-11-09 09:41:00 -06:00
---
2022-11-09 15:44:33 -07:00
title : CephObjectStoreUser CRD
2018-11-09 09:41:00 -06:00
---
Rook allows creation and customization of object store users through the custom resource definitions (CRDs). The following settings are available
for Ceph object store users.
2022-05-12 19:29:40 +02:00
## Example
2018-11-09 09:41:00 -06:00
```yaml
2018-12-03 15:08:29 -07:00
apiVersion : ceph.rook.io/v1
2018-12-03 23:48:40 -07:00
kind : CephObjectStoreUser
2018-11-09 09:41:00 -06:00
metadata :
name : my-user
namespace : rook-ceph
spec :
store : my-store
displayName : my-display-name
2021-06-28 14:40:54 +05:30
quotas :
maxBuckets : 100
maxSize : 10G
maxObjects : 10000
capabilities :
user : "*"
bucket : "*"
2018-11-09 09:41:00 -06:00
```
## Object Store User Settings
### Metadata
2019-10-24 10:22:08 +02:00
* `name` : The name of the object store user to create, which will be reflected in the secret and other resource names.
* `namespace` : The namespace of the Rook cluster where the object store user is created.
2018-11-09 09:41:00 -06:00
### Spec
2019-10-24 10:22:08 +02:00
* `store` : The object store in which the user will be created. This matches the name of the objectstore CRD.
* `displayName` : The display name which will be passed to the `radosgw-admin user create` command.
2023-08-15 17:01:30 -06:00
* `clusterNamespace` : The namespace where the parent CephCluster and CephObjectStore are found. If not specified,
2024-04-22 11:54:27 -06:00
the user must be in the same namespace as the cluster and object store.
To enable this feature, the CephObjectStore allowUsersInNamespaces must include the namespace of this user.
2023-05-10 17:25:45 -06:00
* `quotas` : This represents quota limitation can be set on the user. Please refer [here ](https://docs.ceph.com/en/latest/radosgw/admin/#quota-management ) for details.
2023-01-17 15:01:33 +01:00
* `maxBuckets` : The maximum bucket limit for the user.
* `maxSize` : Maximum size limit of all objects across all the user's buckets.
* `maxObjects` : Maximum number of objects across all the user's buckets.
2023-05-10 17:25:45 -06:00
* `capabilities` : Ceph allows users to be given additional permissions. Due to missing APIs in go-ceph for updating the user capabilities, this setting can currently only be used during the creation of the object store user. If a user's capabilities need modified, the user must be deleted and re-created.
2022-05-12 19:29:40 +02:00
See the [Ceph docs ](https://docs.ceph.com/en/latest/radosgw/admin/#add-remove-admin-capabilities ) for more info.
Rook supports adding `read` , `write` , `read, write` , or `*` permissions for the following resources:
2023-11-02 11:56:16 +01:00
* `user`
2023-01-17 15:01:33 +01:00
* `buckets`
* `usage`
* `metadata`
* `zone`
2023-05-19 21:08:42 +05:30
* `roles`
* `info`
* `amz-cache`
* `bilog`
* `mdlog`
* `datalog`
* `user-policy`
* `odic-provider`
* `ratelimit`