Skip to content

rgw/iam: fix NotEquals handling for multiple values - #65606

Merged
anrao19 merged 3 commits into
ceph:mainfrom
VVoidV:fix-stringnotequals-logic
Oct 6, 2025
Merged

anrao19 merged 3 commits into
ceph:mainfrom
VVoidV:fix-stringnotequals-logic

Conversation

@VVoidV

@VVoidV VVoidV commented Sep 19, 2025

Copy link
Copy Markdown
Contributor

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket () 73146
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

- andible/orrible → multimap_all/multimap_any
- shortible → typed_any
- add typed_none and multimap_none

Improves code readability by making function purposes explicit.

Signed-off-by: liubingrun <[email protected]>
All NotEquals operators (String/Numeric/Date/IP/ARN) now correctly require
the reference value to differ from ALL condition values, not just ANY value.

Signed-off-by: liubingrun <[email protected]>
Signed-off-by: liubingrun <[email protected]>
@VVoidV
VVoidV requested a review from a team as a code owner September 19, 2025 20:01
@adamemerson

Copy link
Copy Markdown
Contributor

@anrao19 Please pull this into a QA run when you can.

@anrao19

anrao19 commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

pr testing completed : https://tracker.ceph.com/issues/73209 and got approved by @ivancich
@VVoidV could please let me know if further testing is need. If not I can merge the pr

@VVoidV

VVoidV commented Sep 26, 2025

Copy link
Copy Markdown
Contributor Author

@anrao19 Thanks, please merge it.

@anrao19
anrao19 merged commit 3320016 into ceph:main Oct 6, 2025
@VVoidV
VVoidV deleted the fix-stringnotequals-logic branch December 30, 2025 06:11
irq0 added a commit to irq0/ceph that referenced this pull request Mar 6, 2026
PR ceph#65606 (not in squid yet) changes the multi env behavior from OR to
AND
irq0 added a commit to irq0/ceph that referenced this pull request Mar 6, 2026
…nto release/cobaltcore-storage-v19.2.3-fasttrack-5

PR ceph#66111 + WIP S3 Bucket Policy Keystone Role Support

* backports/19.2.3/rgw-keystone-scope-s3-bucket-policy:
  rgw: fix role name copy only up to admin
  rgw: Feature flag keystone role injection
  backport: Account for pre NotEquals OR->AND PR ceph#65606
  rgw: Inject keystone roles into IAM policy
  backport: iam policy condition test infrastructure
  rgw: Add Keystone scope information to ops logging
irq0 added a commit to irq0/ceph that referenced this pull request Mar 10, 2026
PR ceph#65606 (not in squid yet) changes the multi env behavior from OR to
AND

(cherry picked from commit 4e0bcf4)
irq0 added a commit to irq0/ceph that referenced this pull request Mar 10, 2026
…nto release/cobaltcore-storage-v19.2.3-fasttrack-6

PR ceph#66111 + WIP S3 Bucket Policy Keystone Role Support

* backports/19.2.3/rgw-keystone-scope-s3-bucket-policy:
  backport: Account for pre NotEquals OR->AND PR ceph#65606
  rgw: Inject keystone roles into IAM policy
  backport: iam policy condition test infrastructure
  rgw: Fix missing keystone scope initialization
  rgw: Add Keystone scope information to ops logging
irq0 added a commit to irq0/ceph that referenced this pull request Mar 10, 2026
PR ceph#65606 (not in squid yet) changes the multi env behavior from OR to
AND

(cherry picked from commit 4e0bcf4)
irq0 added a commit to irq0/ceph that referenced this pull request Mar 10, 2026
…nto release/cobaltcore-storage-v19.2.3-fasttrack-7

PR ceph#66111 + WIP S3 Bucket Policy Keystone Role Support

* backports/19.2.3/rgw-keystone-scope-s3-bucket-policy:
  backport: Account for pre NotEquals OR->AND PR ceph#65606
  rgw: Inject keystone roles into IAM policy
  backport: iam policy condition test infrastructure
  rgw: Fix missing keystone scope initialization
  rgw: Add Keystone scope information to ops logging
irq0 added a commit to irq0/ceph that referenced this pull request Mar 10, 2026
PR ceph#65606 (not in squid yet) changes the multi env behavior from OR to
AND

(cherry picked from commit 4e0bcf4)
irq0 added a commit to irq0/ceph that referenced this pull request Mar 10, 2026
…nto release/cobaltcore-storage-v19.2.3-fasttrack-8

PR ceph#66111 + WIP S3 Bucket Policy Keystone Role Support

* backports/19.2.3/rgw-keystone-scope-s3-bucket-policy:
  backport: Account for pre NotEquals OR->AND PR ceph#65606
  rgw: Inject keystone roles into IAM policy
  backport: iam policy condition test infrastructure
  rgw: Fix missing keystone scope initialization
  rgw: Add Keystone scope information to ops logging
irq0 added a commit to irq0/ceph that referenced this pull request Mar 11, 2026
…nto release/cobaltcore-storage-v19.2.3-fasttrack-9

PR ceph#66111 + WIP S3 Bucket Policy Keystone Role Support

* backports/19.2.3/rgw-keystone-scope-s3-bucket-policy:
  backport: Account for pre NotEquals OR->AND PR ceph#65606
  rgw: Inject keystone roles into IAM policy
  backport: iam policy condition test infrastructure
  rgw: Fix missing keystone scope initialization
  rgw: Add Keystone scope information to ops logging
irq0 added a commit to irq0/ceph that referenced this pull request Mar 11, 2026
…nto release/cobaltcore-storage-v19.2.3-fasttrack-10

PR 66111 + WIP S3 Bucket Policy Keystone Role Support

* backports/19.2.3/rgw-keystone-scope-s3-bucket-policy:
  backport: Account for pre NotEquals OR->AND PR ceph#65606
  rgw: Inject keystone roles into IAM policy
  backport: iam policy condition test infrastructure
  rgw: Fix missing keystone scope initialization
  rgw: Add Keystone scope information to ops logging
supriti added a commit to cobaltcore-dev/ceph that referenced this pull request Sep 24, 2026
Upstream fixed the NotEquals operators in 225241d (ceph#65606),
which is not on squid. Without it they return wrong results when
keystone:role holds several values, which is the normal case.

That fix is not included here: it changes evaluation of every condition
key, so it needs its own backport and review. The upstream squid
backport is ceph#67213. Until one of those lands, document
StringEquals only and warn against the NotEquals variants.

Signed-off-by: Supriti Singh <[email protected]>
uw-sc pushed a commit to cobaltcore-dev/ceph that referenced this pull request Oct 14, 2026
Upstream fixed the NotEquals operators in 225241d (ceph#65606),
which is not on squid. Without it they return wrong results when
keystone:role holds several values, which is the normal case.

That fix is not included here: it changes evaluation of every condition
key, so it needs its own backport and review. The upstream squid
backport is ceph#67213. Until one of those lands, document
StringEquals only and warn against the NotEquals variants.

Signed-off-by: Supriti Singh <[email protected]>
dvanders pushed a commit to dvanders/ceph that referenced this pull request Oct 20, 2026
Upstream fixed the NotEquals operators in 225241d (ceph#65606),
which is not on squid. Without it they return wrong results when
keystone:role holds several values, which is the normal case.

That fix is not included here: it changes evaluation of every condition
key, so it needs its own backport and review. The upstream squid
backport is ceph#67213. Until one of those lands, document
StringEquals only and warn against the NotEquals variants.

Signed-off-by: Supriti Singh <[email protected]>
(cherry picked from commit 5d27a8f)
Signed-off-by: Uwe Schwaeke <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants