Repository navigation
Conversation
|
Please explain the missing commit in the description. |
@adamemerson done, thank you for pointing that out. |
This hasn't been codified yet but IMO the best way to express this is via an empty cherry-pick commit which explains the conflict, i.e. the dependencies do not exist. It makes the bot happy and explains in the git history what happened. |
Ack, done.. thank you for the direction here. |
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]> (cherry picked from commit 488cb91) Conflicts: PendingReleaseNotes dropped the duplicate CVE-2026-54330 note the pick added.
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]> (cherry picked from commit 82c7878) Conflicts: doc/radosgw/frontends.rst used upstream's ssl_certificate and ssl_private_key text.
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]> (cherry picked from commit 29df658) Conflicts: src/test/mgr/test_mgrcap.cc kept squid's array form and added the two profile rgw entries.
dev clusters exercise the profile instead of blanket rw caps. Signed-off-by: Matthew N. Heler <[email protected]> (cherry picked from commit d91f40c)
a8dfc93 to
dde2670
Compare
|
New commits were pushed to this PR, so the previous override has been removed. |
|
/audit override |
|
Override again and again and again and again… |
|
✅ Audit Override Applied by @adamemerson. |
there has to be a better way for this |
|
jenkins test make check |
From your keyboard to Claude's ears. |
|
jenkins test make check |
Maybe relevant. |
Looking into this |
replace mon 'allow *', mgr 'allow rw', osd 'allow rwx tag rgw *=*' with the rgw profile once every mon and osd reports version 19.2.8 or newer. require_osd_release cannot distinguish squid point releases. check metadata for every mapped daemon, including down osds, and keep the old caps when metadata is missing or the version cannot be parsed. existing keys pick up the profile through auth caps on redeployment. nfs embeds librgw, so its rgw key takes the same osd profile behind the shared rgw_profile_supported() helper. its mon cap stays 'allow r'. Signed-off-by: Matthew N. Heler <[email protected]> (cherry picked from commit ecdc7ab) Conflicts: src/pybind/mgr/cephadm/services/cephadmservice.py omitted upstream's docstring; gated the profile on 19.2.8. the version check reads mon and osd metadata, tolerates a mon map with no mons, and keeps the metadata lookup in its own statement so the cephadm unit tests still pass. src/pybind/mgr/cephadm/services/nfs.py kept squid's imports and used the shared version helper. src/pybind/mgr/cephadm/tests/services/test_rgw.py dropped; only the fixture defaults it needs are kept.
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]> (cherry picked from commit 853cdfa) Conflicts: src/pybind/mgr/smb/rgw_auth.py the mgr/smb module does not exist in squid; there is nothing to apply.
dde2670 to
74dfeea
Compare
|
New commits were pushed to this PR, so the previous override has been removed. |
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #71362 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 71223bc mon,osd,mgr: add rgw cap profile | PR #70538 | 488cb91 mon,osd,mgr: add rgw cap profile |
| b664905 doc: describe the rgw cap profile | 82c7878 doc: describe the rgw cap profile | |
| d9b91e2 test/mon,osd,mgr: cover the rgw cap profile | 29df658 test/mon,osd,mgr: cover the rgw cap profile | |
| c17e929 vstart: create rgw keys with the rgw profile | d91f40c vstart: create rgw keys with the rgw profile | |
| 5479949 cephadm: create rgw keys with the rgw profile | ecdc7ab cephadm: create rgw keys with the rgw profile | |
| 74dfeea mgr/smb: create rgw keys with the rgw profile | 853cdfa mgr/smb: create rgw keys with the rgw profile |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport 71223bc (cherry-pick of 488cb91)
Affected File(s)
PendingReleaseNotes
Range Diff
Click to expand
--- Original (488cb91e)
+++ Backport (71223bc9)
@@ -14,3 +14,8 @@
commands.
Signed-off-by: Matthew N. Heler <[email protected]>
+(cherry picked from commit 488cb91e47036475637bc7bb4fd1941daaa85663)
+
+Conflicts:
+ PendingReleaseNotes
+ dropped the duplicate CVE-2026-54330 note the pick added.
================================================================================
RANGE DIFF
================================================================================
1: 488cb91e470 ! 1: 71223bc9e91 mon,osd,mgr: add rgw cap profile
@@ Commit message
commands.
Signed-off-by: Matthew N. Heler <[email protected]>
+ (cherry picked from commit 488cb91e47036475637bc7bb4fd1941daaa85663)
+
+ Conflicts:
+ PendingReleaseNotes
+ dropped the duplicate CVE-2026-54330 note the pick added.
## PendingReleaseNotes ##
@@
- Sigv4 requests with `host` and `x-amz-` headers not included in the
- signed subset. Unfortunately, the REST client used in multisite was
- generating such improperly signed requests.
+ ``rgw_keystone_scope_include_roles`` (default true).
+ * RGW: S3 Select is deprecated. The default value of ``rgw_disable_s3select``
+ changed from ``false`` to ``true``.
+* RGW: New CephX profile ``profile rgw`` grants a Ceph Object Gateway the
+ permissions it needs. Create keys with
+ ``mon 'profile rgw' osd 'profile rgw'``.
- If you are running multisite, you must set the
- ``rgw_sigv4_insecure`` option to true before you begin to
+
+ * DASHBOARD: A new Overview landing page provides an at-a-glance cluster summary
## src/mgr/MgrCap.cc ##
@@ src/mgr/MgrCap.cc: void MgrCapGrant::expand_profile(std::ostream *err) const {
@@ src/mgr/MgrCap.cc: void MgrCapGrant::expand_profile(std::ostream *err) const {
## src/mon/MonCap.cc ##
@@ src/mon/MonCap.cc: void MonCapGrant::expand_profile(const EntityName& name) const
- // alow getpoolstats for mgr modules
- profile_grants.push_back(MonCapGrant("pg", MON_CAP_R));
+ profile_grants.push_back(MonCapGrant("heap"));
+ profile_grants.push_back(MonCapGrant("dump_mempools"));
}
+ if (profile == "rgw") {
+ // mapsDeviation in Backport b664905 (cherry-pick of 82c7878)
Affected File(s)
doc/radosgw/frontends.rst
Range Diff
Click to expand
--- Original (82c78783)
+++ Backport (b6649051)
@@ -6,3 +6,8 @@
say that where ssl_certificate and ssl_private_key describe config://.
Signed-off-by: Matthew N. Heler <[email protected]>
+(cherry picked from commit 82c7878389b0e9834f03b714776ee1b1aef73b64)
+
+Conflicts:
+ doc/radosgw/frontends.rst
+ used upstream's ssl_certificate and ssl_private_key text.
================================================================================
RANGE DIFF
================================================================================
1: 82c7878389b ! 1: b66490518f3 doc: describe the rgw cap profile
@@ Commit message
say that where ssl_certificate and ssl_private_key describe config://.
Signed-off-by: Matthew N. Heler <[email protected]>
+ (cherry picked from commit 82c7878389b0e9834f03b714776ee1b1aef73b64)
+
+ Conflicts:
+ doc/radosgw/frontends.rst
+ used upstream's ssl_certificate and ssl_private_key text.
## doc/install/manual-deployment.rst ##
@@ doc/install/manual-deployment.rst: thread on the ceph-users mailing list
@@ doc/radosgw/frontends.rst: Options
:Description: Path to the SSL certificate file used for SSL-enabled endpoints.
If path is prefixed with ``config://``, the certificate will be
-- pulled from the Ceph Monitor ``config-key`` database.
+- pulled from the ceph monitor ``config-key`` database.
+ pulled from the Ceph Monitor ``config-key`` database. Keep
+ certificates under the ``rgw/`` prefix; an RGW with
+ ``profile rgw`` Monitor caps can only read keys under that
@@ doc/radosgw/frontends.rst: Options
endpoints. If one is not given, the ``ssl_certificate`` file
is used as the private key.
- If path is prefixed with ``config://``, the certificate will be
-- pulled from the Ceph Monitor ``config-key`` database.
+- pulled from the ceph monitor ``config-key`` database.
+ If path is prefixed with ``config://``, the key will be
+ pulled from the Ceph Monitor ``config-key`` database, and the
+ same ``rgw/`` prefix restriction applies.Deviation in Backport d9b91e2 (cherry-pick of 29df658)
Affected File(s)
src/test/mgr/test_mgrcap.cc
Range Diff
Click to expand
--- Original (29df658c)
+++ Backport (d9b91e20)
@@ -5,3 +5,8 @@
pools with pool narrowing honored, and the mgr form parses as a no-op.
Signed-off-by: Matthew N. Heler <[email protected]>
+(cherry picked from commit 29df658cceb87a17bebd469802822efc09ad04f2)
+
+Conflicts:
+ src/test/mgr/test_mgrcap.cc
+ kept squid's array form and added the two profile rgw entries.
================================================================================
RANGE DIFF
================================================================================
1: 29df658cceb ! 1: d9b91e20e4c test/mon,osd,mgr: cover the rgw cap profile
@@ Commit message
pools with pool narrowing honored, and the mgr form parses as a no-op.
Signed-off-by: Matthew N. Heler <[email protected]>
+ (cherry picked from commit 29df658cceb87a17bebd469802822efc09ad04f2)
+
+ Conflicts:
+ src/test/mgr/test_mgrcap.cc
+ kept squid's array form and added the two profile rgw entries.
## src/test/mgr/test_mgrcap.cc ##
-@@ src/test/mgr/test_mgrcap.cc: const std::vector<std::string> parse_good = {
- "profile crash"s,
- "profile osd"s,
- "profile mds"s,
-+ "profile rgw"s,
- "profile rbd pool=ABC namespace=NS"s,
- "profile \"rbd-read-only\", profile crash"s,
- "allow * network 1.2.3.4/24"s,
-@@ src/test/mgr/test_mgrcap.cc: const std::vector<std::string> parse_identity = {
- "allow rwx"s,
- "allow service foo x"s,
- "profile crash"s,
-+ "profile rgw"s,
- "profile rbd-read-only, allow *"s,
- "profile rbd namespace=NS pool=ABC"s,
- "allow command abc"s,
+@@ src/test/mgr/test_mgrcap.cc: const char *parse_good[] = {
+ "profile crash",
+ "profile osd",
+ "profile mds",
++ "profile rgw",
+ "profile rbd pool=ABC namespace=NS",
+ "profile \"rbd-read-only\", profile crash",
+ "allow * network 1.2.3.4/24",
+@@ src/test/mgr/test_mgrcap.cc: const char *parse_identity[] = {
+ "allow rwx",
+ "allow service foo x",
+ "profile crash",
++ "profile rgw",
+ "profile rbd-read-only, allow *",
+ "profile rbd namespace=NS pool=ABC",
+ "allow command abc",
## src/test/mon/moncap.cc ##
@@ src/test/mon/moncap.cc: const char *parse_good[] = {Deviation in Backport 5479949 (cherry-pick of ecdc7ab)
Affected File(s)
src/pybind/mgr/cephadm/services/cephadmservice.pysrc/pybind/mgr/cephadm/services/nfs.pysrc/pybind/mgr/cephadm/tests/services/test_rgw.py
Range Diff
Click to expand
--- Original (ecdc7ab5)
+++ Backport (5479949d)
@@ -1,11 +1,25 @@
cephadm: create rgw keys with the rgw profile
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.
+the rgw profile once every mon and osd reports version 19.2.8 or newer.
+require_osd_release cannot distinguish squid point releases. check
+metadata for every mapped daemon, including down osds, and keep the
+old caps when metadata is missing or the version cannot be parsed.
+existing keys pick up the profile through auth caps on redeployment.
nfs embeds librgw, so its rgw key takes the same osd profile behind the
-same gate. its mon cap stays 'allow r'.
+shared rgw_profile_supported() helper. its mon cap stays 'allow r'.
Signed-off-by: Matthew N. Heler <[email protected]>
+(cherry picked from commit ecdc7ab5fcd7fd9ffc236eed0710d8db895d54c7)
+
+Conflicts:
+ src/pybind/mgr/cephadm/services/cephadmservice.py
+ omitted upstream's docstring; gated the profile on 19.2.8.
+ the version check reads mon and osd metadata, tolerates a
+ mon map with no mons, and keeps the metadata lookup in its
+ own statement so the cephadm unit tests still pass.
+ src/pybind/mgr/cephadm/services/nfs.py
+ kept squid's imports and used the shared version helper.
+ src/pybind/mgr/cephadm/tests/services/test_rgw.py
+ dropped; only the fixture defaults it needs are kept.
================================================================================
RANGE DIFF
================================================================================
1: ecdc7ab5fcd < -: ----------- cephadm: create rgw keys with the rgw profile
-: ----------- > 1: 5479949d9c6 cephadm: create rgw keys with the rgw profileDeviation in Backport 74dfeea (cherry-pick of 853cdfa)
Affected File(s)
src/pybind/mgr/smb/rgw_auth.py
Range Diff
Click to expand
--- Original (853cdfa7)
+++ Backport (74dfeea8)
@@ -9,3 +9,9 @@
the old caps and would error on the next apply.
Signed-off-by: Matthew N. Heler <[email protected]>
+(cherry picked from commit 853cdfa78fb9574b0d1bd54a668ac45a9e492bd4)
+
+Conflicts:
+ src/pybind/mgr/smb/rgw_auth.py
+ the mgr/smb module does not exist in squid;
+ there is nothing to apply.
================================================================================
RANGE DIFF
================================================================================
1: 853cdfa78fb < -: ----------- mgr/smb: create rgw keys with the rgw profile
-: ----------- > 1: 74dfeea8734 mgr/smb: create rgw keys with the rgw profileHow to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
@batrick it's relevant, that test uses a mon map with no mons and the profile's version check didn't handle it, fixed and repushed |


backport tracker: https://tracker.ceph.com/issues/79936
backport of #70538
parent tracker: https://tracker.ceph.com/issues/78672
Note: commit 853cdfa was skipped, as it's prerequisites (#69103) have not been merged to Squid.
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh