Repository navigation
mon,mgr,osd: Add an rgw cap profile - #70538
Merged
Merged
Conversation
mheler
force-pushed
the
wip-cephx-rgw-profile
branch
from
July 25, 2026 11:32
5b7e43b to
31dbd24
Compare
mheler
force-pushed
the
wip-cephx-rgw-profile
branch
from
July 26, 2026 13:59
31dbd24 to
dff82d9
Compare
mheler
force-pushed
the
wip-cephx-rgw-profile
branch
from
July 26, 2026 19:56
dff82d9 to
c08bf66
Compare
mheler
force-pushed
the
wip-cephx-rgw-profile
branch
from
July 26, 2026 23:55
c08bf66 to
3ef7280
Compare
mheler
force-pushed
the
wip-cephx-rgw-profile
branch
from
July 27, 2026 00:07
3ef7280 to
049b41b
Compare
Sodani
reviewed
Jul 27, 2026
avanthakkar
requested changes
Jul 27, 2026
mheler
force-pushed
the
wip-cephx-rgw-profile
branch
from
July 27, 2026 20:59
049b41b to
11bacc4
Compare
avanthakkar
reviewed
Jul 28, 2026
avanthakkar
left a comment
Contributor
There was a problem hiding this comment.
LGTM from smb side, thanks!
avanthakkar
approved these changes
Jul 28, 2026
Contributor
|
Please rebase. |
Contributor
Author
@adamemerson I thought I did yesterday 😟 |
Member
|
jenkins retest this please |
Contributor
|
@mheler Please resolve the merge test errors and feel free to merge the PR. If any retesting is required , please let me know. |
Contributor
|
I think you might need to rebase again to get rid of the QA Link failure. |
rgw keys have been created with mon 'allow rw' and osd 'allow rwx', far more than the daemon uses. profile rgw grants read on the mon and pg services, read and write on the osd service, the 'log' command that carries cluster log warnings, and config-key get under rgw/ on the mon; rwx on rgw-tagged pools on the osd; and nothing on the mgr. keys take it as mon 'profile rgw' osd 'profile rgw'. bootstrap-rgw only accepts the profile. the osd grant stays service-wide rather than a list of commands because Rados::pool_create() reaches the mon as MPoolOp, which is checked with no command name. so it also covers the rest of the osd service's write commands. Signed-off-by: Matthew N. Heler <[email protected]>
document profile rgw and move the rgw keyring examples onto the profile. a gateway using it can only read config-key under the rgw/ prefix, so say that where ssl_certificate and ssl_private_key describe config://. Signed-off-by: Matthew N. Heler <[email protected]>
parse and grant checks for profile rgw in the mon, osd, and mgr cap tests: config-key stops at the rgw/ prefix, osd rwx stops at rgw-tagged pools with pool narrowing honored, and the mgr form parses as a no-op. Signed-off-by: Matthew N. Heler <[email protected]>
dev clusters exercise the profile instead of blanket rw caps. Signed-off-by: Matthew N. Heler <[email protected]>
replace mon 'allow *', mgr 'allow rw', osd 'allow rwx tag rgw *=*' with the rgw profile, once require_osd_release says every mon and osd can read it. until then keys keep the old caps. existing keys pick the profile up through auth caps the next time the daemon is redeployed. nfs embeds librgw, so its rgw key takes the same osd profile behind the same gate. its mon cap stays 'allow r'. Signed-off-by: Matthew N. Heler <[email protected]>
Replace mon 'allow *' and the osd tag cap with the rgw profile. The profile covers pool creation on first write, which is what the mon cap was there for. auth get-or-create refuses an entity that already exists with different caps, so fall back to auth caps. Anything created before this carries the old caps and would error on the next apply. Signed-off-by: Matthew N. Heler <[email protected]>
mheler
force-pushed
the
wip-cephx-rgw-profile
branch
from
August 24, 2026 19:09
666c3ec to
853cdfa
Compare
This was referenced Aug 25, 2026
Greenpepper15
added a commit
to Greenpepper15/rook
that referenced
this pull request
Aug 31, 2026
The motivation bullet asserted that namespace-scoped cephx users achieve realm separation without naming the mon side, and a bare mon 'allow rw' undermines the separation. The claim now requires the profile rgw mon cap profile (ceph/ceph#70538) and gives the cleartext system_key in the zone record as an example of the confidentiality gap the scoped setup closes. The Non-Goals access-control bullet is aligned with the same wording. Addresses rook#18091 (comment) Signed-off-by: David Mohren <[email protected]>
Greenpepper15
added a commit
to Greenpepper15/rook
that referenced
this pull request
Aug 31, 2026
The motivation bullet asserted that namespace-scoped cephx users achieve realm separation without naming the mon side, and a bare mon 'allow rw' undermines the separation. The claim now requires the profile rgw mon cap profile from ceph/ceph#70538 and gives the cleartext system_key in the zone record as an example of the confidentiality gap the scoped setup closes. The Non-Goals access-control bullet is aligned with the same wording. Addresses rook#18091 (comment) Signed-off-by: David Mohren <[email protected]>
Greenpepper15
added a commit
to Greenpepper15/rook
that referenced
this pull request
Aug 31, 2026
The motivation bullet asserted that namespace-scoped cephx users achieve realm separation without naming the mon side, and a bare mon 'allow rw' undermines the separation. The claim now requires the profile rgw mon cap profile from ceph/ceph#70538 and gives the cleartext system_key in the zone record as an example of the confidentiality gap the scoped setup closes. The Non-Goals access-control bullet is aligned with the same wording. Addresses rook#18091 (comment) Signed-off-by: David Mohren <[email protected]>
This was referenced Aug 31, 2026
Greenpepper15
added a commit
to Greenpepper15/rook
that referenced
this pull request
Nov 9, 2026
The motivation bullet asserted that namespace-scoped cephx users achieve realm separation without naming the mon side, and a bare mon 'allow rw' undermines the separation. The claim now requires the profile rgw mon cap profile from ceph/ceph#70538 and gives the cleartext system_key in the zone record as an example of the confidentiality gap the scoped setup closes. The Non-Goals access-control bullet is aligned with the same wording. Addresses rook#18091 (comment) Signed-off-by: David Mohren <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: https://tracker.ceph.com/issues/78672
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.