Skip to content

Commit 67f5769

Browse files
committed
doc/rados: pool and namespace are independent osdcap restrictions
For the "profile {name}" syntax, pool and namespace restrictions are independent of each other (i.e. specifying namespace doesn't also require specifying pool like is currently suggested). A cap can look like "profile rbd namespace=myns", signifying that the RBD profile is to be allowed in myns namespace of any pool. For the "allow {access-spec}" syntax, pool restriction is optional. A cap can look like "allow r namespace=myns", "allow w object_prefix myprefix" or "allow rw namespace=myns object_prefix myprefix", for example. Signed-off-by: Ilya Dryomov <[email protected]>
1 parent e203f85 commit 67f5769

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

doc/rados/operations/user-management.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,22 @@ Capability syntax follows this form::
134134

135135
osd 'allow {access-spec} [{match-spec}] [network {network/prefix}]'
136136

137-
osd 'profile {name} [pool={pool-name} [namespace={namespace-name}]] [network {network/prefix}]'
137+
osd 'profile {name} [pool={pool-name}] [namespace={namespace-name}] [network {network/prefix}]'
138138

139139
There are two alternative forms of the ``{access-spec}`` syntax: ::
140140

141141
* | all | [r][w][x] [class-read] [class-write]
142142

143143
class {class name} [{method name}]
144144

145-
There are two alternative forms of the optional ``{match-spec}`` syntax::
145+
There are four alternative forms of the optional ``{match-spec}`` syntax::
146146

147147
pool={pool-name} [namespace={namespace-name}] [object_prefix {prefix}]
148148

149+
[pool={pool-name}] namespace={namespace-name} [object_prefix {prefix}]
150+
151+
[pool={pool-name}] [namespace={namespace-name}] object_prefix {prefix}
152+
149153
[namespace={namespace-name}] tag {application} {key}={value}
150154

151155
The optional ``{network/prefix}`` is a standard network name and prefix

0 commit comments

Comments
 (0)