Skip to content

squid: rgw: match CORS rules like Amazon S3 - #69648

Merged
batrick merged 6 commits into
ceph:squidfrom
RaminNietzsche:wip-77581-squid
Oct 20, 2026
Merged

batrick merged 6 commits into
ceph:squidfrom
RaminNietzsche:wip-77581-squid

Conversation

@RaminNietzsche

@RaminNietzsche RaminNietzsche commented Jun 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Backport of #69190 to squid.

RGW previously selected a CORS rule with host_name_rule() (origin only), then
validated method and headers on that single rule. Bucket configs with multiple
CORSRule elements sharing the same AllowedOrigin but different
AllowedMethod values could fail preflight when a later rule should match.
This aligns rule selection with Amazon S3 (first rule matching origin, method,
and preflight headers).

Why squid: the buggy origin-only matching exists on squid; users running
multi-rule bucket CORS on squid RGW hit the same preflight failures fixed on
main.

Minimal change: cherry-pick of all six commits from PR #69190 with git cherry-pick -x.
Conflict in rgw_op.cc resolved by dropping global CORS
(optional_global_cors) because squid does not have global CORS; bucket
CORS uses match_rule() only.

Parent tracker: https://tracker.ceph.com/issues/77575
Official backport tracker: https://tracker.ceph.com/issues/77586

Testing

  • Includes unittest_rgw_cors (from main PR)
  • Not run locally on squid yet

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • 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)

Fixes: https://tracker.ceph.com/issues/77586

RaminNietzsche and others added 6 commits June 22, 2026 20:14
Select the first CORSRule whose AllowedOrigin, AllowedMethod, and (for
preflight) AllowedHeader all match the request. Previously host_name_rule
matched origin only, so a second rule with the same origin but different
methods was never used.

Add RGWCORSRule::matches() and RGWCORSConfiguration::match_rule(), wire
generate_cors_headers and RGWOptionsCORS to them (including global CORS), and
add unittest_rgw_cors.

Signed-off-by: ramin.najarbashi <[email protected]>
Co-authored-by: Cursor <[email protected]>
(cherry picked from commit cc1dcec)

Conflicts:
 src/rgw/rgw_op.cc
 Dropped optional_global_cors and validate_global_cors_request() because
 squid does not have global CORS. Applied match_rule() for bucket CORS
 only, with req_meth/req_hdrs captured in the lambda (as in main PR ceph#69190
 review feedback).
Signed-off-by: ramin.najarbashi <[email protected]>
(cherry picked from commit bbec695)
Signed-off-by: ramin.najarbashi <[email protected]>
(cherry picked from commit b5624b6)
- matches_method: reject null/empty method; short-circuit RGW_CORS_ALL
- matches_preflight_headers: add logging for skip and disallowed headers
- generate_cors_headers: capture req_meth/req_hdrs in lambda
- remove unused validate_cors_rule_method/header helpers

Signed-off-by: ramin.najarbashi <[email protected]>

On branch fix/rgw-cors-aws-rule-matching
Changes to be committed:
	modified:   src/rgw/rgw_cors.cc
	modified:   src/rgw/rgw_op.cc

(cherry picked from commit 8b3f907)
get_multi_cors_method_flags() calls ceph::for_each_substr(), but
rgw_cors.h did not include str_list.h. The CORS unit test includes
only this header, so the build failed with an undeclared identifier.
Qualify the call and add the missing include.

Signed-off-by: ramin.najarbashi <[email protected]>
(cherry picked from commit 830f0e5)
unittest_rgw_cors used GMock::Main without global_init, so dout() in
RGWCORSRule::matches() dereferenced a null g_ceph_context and segfaulted
on the first test. Link unit-main like unittest_rgw_compression.

Assisted-by: Cursor:composer-2.5-fast
Signed-off-by: ramin.najarbashi <[email protected]>
Co-authored-by: Cursor <[email protected]>
(cherry picked from commit c147865)
@RaminNietzsche
RaminNietzsche requested a review from a team as a code owner June 22, 2026 16:46
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

9 similar comments
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@cbodley

cbodley commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

updated pr description with

backport tracker: https://tracker.ceph.com/issues/77586

@RaminNietzsche

Copy link
Copy Markdown
Member Author

Hi @ceph/rgw — gentle ping for review when you have a moment. This is the squid backport of #69190 (tracker https://tracker.ceph.com/issues/77586). Could someone also comment ok to test so Jenkins can run? Thanks!

@adamemerson

Copy link
Copy Markdown
Contributor

ok to test

@RaminNietzsche

Copy link
Copy Markdown
Member Author

@adamemerson @ceph/rgw — gentle ping when you have a moment.

This squid CORS backport is still approved with green CI (make check, ceph API tests, windows). The tentacle sibling #69647 has merged. Could this pick up needs-qa / merge when convenient?

Thank you.

@RaminNietzsche

Copy link
Copy Markdown
Member Author

/audit retest

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

🔄 Audit Retest Triggered by @RaminNietzsche.

View workflow run

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ceph Release Engineering Audit Report

Commit Parity Visualizer

BACKPORT PR #69648 SOURCE PR SOURCE STATUS
4519234 rgw: match CORS rules like Amazon S3 PR #69190 cc1dcec rgw: match CORS rules like Amazon S3
bfea60b reject null or empty method in matches_method bbec695 reject null or empty method in matches_method
8b0ec0e fix: some issue based on CORS spec 6.2.4 b5624b6 fix: some issue based on CORS spec 6.2.4
0747fae rgw: address CORS rule-matching review feedback 8b3f907 rgw: address CORS rule-matching review feedback
06f6a57 rgw: include str_list.h for ceph::for_each_substr in CORS header 830f0e5 rgw: include str_list.h for ceph::for_each_substr in CORS header
7952d8f test/rgw: init CephContext in unittest_rgw_cors c147865 test/rgw: init CephContext in unittest_rgw_cors

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

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 4519234 (cherry-pick of cc1dcec)

Affected File(s)

Range Diff

Click to expand
--- Original (cc1dcece)
+++ Backport (4519234b)
@@ -11,3 +11,11 @@
 
 Signed-off-by: ramin.najarbashi <[email protected]>
 Co-authored-by: Cursor <[email protected]>
+(cherry picked from commit cc1dcecee0892d7552ead76e3fb534e95df15fc5)
+
+Conflicts:
+ src/rgw/rgw_op.cc
+ Dropped optional_global_cors and validate_global_cors_request() because
+ squid does not have global CORS. Applied match_rule() for bucket CORS
+ only, with req_meth/req_hdrs captured in the lambda (as in main PR #69190
+ review feedback).

================================================================================
RANGE DIFF
================================================================================

1:  cc1dcecee08 ! 1:  4519234b289 rgw: match CORS rules like Amazon S3
    @@ Commit message
     
         Signed-off-by: ramin.najarbashi <[email protected]>
         Co-authored-by: Cursor <[email protected]>
    +    (cherry picked from commit cc1dcecee0892d7552ead76e3fb534e95df15fc5)
    +
    +    Conflicts:
    +     src/rgw/rgw_op.cc
    +     Dropped optional_global_cors and validate_global_cors_request() because
    +     squid does not have global CORS. Applied match_rule() for bucket CORS
    +     only, with req_meth/req_hdrs captured in the lambda (as in main PR #69190
    +     review feedback).
     
      ## src/rgw/rgw_cors.cc ##
     @@
    @@ src/rgw/rgw_cors.cc: void RGWCORSRule::format_exp_headers(string& s) {
     
      ## src/rgw/rgw_cors.h ##
     @@ src/rgw/rgw_cors.h: public:
    -   void dump_origins();
    +   void dump_origins(); 
        void dump(Formatter *f) const;
        bool is_header_allowed(const char *hdr, size_t len);
     +  bool matches_method(const char *req_meth);
    @@ src/rgw/rgw_op.cc: bool RGWOp::generate_cors_headers(string& origin, string& met
      
     -  /* CORS 6.2.2. */
     -  RGWCORSRule *rule = bucket_cors.host_name_rule(orig);
    +-  if (!rule)
    +-    return false;
    +-
    +-  /*
    +-   * Set the Allowed-Origin header to a asterisk if this is allowed in the rule
    +-   * and no Authorization was send by the client
    +-   *
    +-   * The origin parameter specifies a URI that may access the resource.  The browser must enforce this.
    +-   * For requests without credentials, the server may specify "*" as a wildcard,
    +-   * thereby allowing any origin to access the resource.
    +-   */
    +-  const char *authorization = s->info.env->get("HTTP_AUTHORIZATION");
    +-  if (!authorization && rule->has_wildcard_origin())
    +-    origin = "*";
    +-
    +-  /* CORS 6.2.3. */
     +  /* CORS 6.2.2–6.2.5: first rule matching origin, method, and preflight headers. */
    -+  const char *req_meth = s->info.env->get("HTTP_ACCESS_CONTROL_REQUEST_METHOD");
    -+  if (!req_meth) {
    -+    req_meth = s->info.method;
    -+  }
    +   const char *req_meth = s->info.env->get("HTTP_ACCESS_CONTROL_REQUEST_METHOD");
    +   if (!req_meth) {
    +     req_meth = s->info.method;
    +   }
     +  const char *req_hdrs = s->info.env->get("HTTP_ACCESS_CONTROL_REQUEST_HEADERS");
     +
     +  RGWCORSRule *rule = bucket_cors.match_rule(orig, req_meth, req_hdrs);
    -   auto is_allowed_to_generate_rule_cors_header = [this, &origin, &method, &headers, &exp_headers, &max_age] (RGWCORSRule *rule) {
    -     if (!rule)
    -       return false;
    -@@ src/rgw/rgw_op.cc: bool RGWOp::generate_cors_headers(string& origin, string& method, string& header
    -       origin = "*";
    - 
    -     /* CORS 6.2.3. */
    --    const char *req_meth = s->info.env->get("HTTP_ACCESS_CONTROL_REQUEST_METHOD");
    --    if (!req_meth) {
    --      req_meth = s->info.method;
    -+    const char *req_meth_inner = s->info.env->get("HTTP_ACCESS_CONTROL_REQUEST_METHOD");
    -+    if (!req_meth_inner) {
    -+      req_meth_inner = s->info.method;
    -     }
    ++  auto is_allowed_to_generate_rule_cors_header = [this, &origin, &method, &headers, &exp_headers, &max_age, req_meth, req_hdrs] (RGWCORSRule *rule) {
    ++    if (!rule)
    ++      return false;
    ++
    ++    /*
    ++     * Set the Allowed-Origin header to a asterisk if this is allowed in the rule
    ++     * and no Authorization was send by the client
    ++     *
    ++     * The origin parameter specifies a URI that may access the resource.  The browser must enforce this.
    ++     * For requests without credentials, the server may specify "*" as a wildcard,
    ++     * thereby allowing any origin to access the resource.
    ++     */
    ++    const char *authorization = s->info.env->get("HTTP_AUTHORIZATION");
    ++    if (!authorization && rule->has_wildcard_origin())
    ++      origin = "*";
      
    --    if (req_meth) {
    --      method = req_meth;
    --      /* CORS 6.2.5. */
    --      if (!validate_cors_rule_method(this, rule, req_meth)) {
    --        return false;
    --      }
    -+    if (req_meth_inner) {
    -+      method = req_meth_inner;
    +-  if (req_meth) {
    +-    method = req_meth;
    +-    /* CORS 6.2.5. */
    +-    if (!validate_cors_rule_method(this, rule, req_meth)) {
    +-     return false;
    ++    /* CORS 6.2.3. */
    ++    if (req_meth) {
    ++      method = req_meth;
          }
    +-  }
      
    -     /* CORS 6.2.4. */
    --    const char *req_hdrs = s->info.env->get("HTTP_ACCESS_CONTROL_REQUEST_HEADERS");
    -+    const char *req_hdrs_inner = s->info.env->get("HTTP_ACCESS_CONTROL_REQUEST_HEADERS");
    - 
    -     /* CORS 6.2.6. */
    --    get_cors_response_headers(this, rule, req_hdrs, headers, exp_headers, max_age);
    -+    get_cors_response_headers(this, rule, req_hdrs_inner, headers, exp_headers, max_age);
    +-  /* CORS 6.2.4. */
    +-  const char *req_hdrs = s->info.env->get("HTTP_ACCESS_CONTROL_REQUEST_HEADERS");
    ++    /* CORS 6.2.6. */
    ++    get_cors_response_headers(this, rule, req_hdrs, headers, exp_headers, max_age);
      
    -     return true;
    -   };
    -@@ src/rgw/rgw_op.cc: bool RGWOp::generate_cors_headers(string& origin, string& method, string& header
    -     return true;
    -   }
    +-  /* CORS 6.2.6. */
    +-  get_cors_response_headers(this, rule, req_hdrs, headers, exp_headers, max_age);
    ++    return true;
    ++  };
      
    --  if (optional_global_cors.has_value() && is_allowed_to_generate_rule_cors_header(&(*optional_global_cors))) {
    -+  if (optional_global_cors.has_value() &&
    -+      optional_global_cors->matches(orig, req_meth, req_hdrs) &&
    -+      is_allowed_to_generate_rule_cors_header(&(*optional_global_cors))) {
    -     return true;
    -   }
    +-  return true;
    ++  if (is_allowed_to_generate_rule_cors_header(rule)) {
    ++    return true;
    ++  }
    ++
    ++  return false;
    + }
      
    + int rgw_policy_from_attrset(const DoutPrefixProvider *dpp, CephContext *cct, map<string, bufferlist>& attrset, RGWAccessControlPolicy *policy)
     @@ src/rgw/rgw_op.cc: void RGWOptionsCORS::get_response_params(string& hdrs, string& exp_hdrs, unsigne
      }
      
    @@ src/rgw/rgw_op.cc: void RGWOptionsCORS::get_response_params(string& hdrs, string
     -
     -  if (!validate_cors_rule_header(this, rule, req_hdrs)) {
     +    ldpp_dout(this, 10) << "no CORS rule matching origin=" << origin
    -+                        << " method=" << req_meth << dendl;
    -     return -ENOENT;
    -   }
    - 
    -@@ src/rgw/rgw_op.cc: int RGWOptionsCORS::validate_cors_request(RGWCORSConfiguration *cc) {
    - int RGWOptionsCORS::validate_global_cors_request(RGWCORSRule *global_cors_rule) {
    -   ldpp_dout(this, 20) << "Validating request with global CORS" << dendl;
    -   rule = global_cors_rule;
    --  if (!rule) {
    --    ldpp_dout(this, 10) << "There is no global cors rule present" << dendl;
    --    return -ENOENT;
    --  }
    --
    --  if (!rule->is_origin_present(origin)) {
    --    ldpp_dout(this, 10) << "There is no cors rule present for " << origin << dendl;
    --    return -ENOENT;
    --  }
    --
    --  if (!validate_cors_rule_method(this, rule, req_meth)) {
    --    return -ENOENT;
    --  }
    --
    --  if (!validate_cors_rule_header(this, rule, req_hdrs)) {
    -+  if (!rule || !rule->matches(origin, req_meth, req_hdrs)) {
    -+    ldpp_dout(this, 10) << "no global CORS rule matching origin=" << origin
     +                        << " method=" << req_meth << dendl;
          return -ENOENT;
        }

Deviation in Backport 0747fae (cherry-pick of 8b3f907)

Affected File(s)

Range Diff

Click to expand
--- Original (8b3f907f)
+++ Backport (0747faef)
@@ -11,3 +11,5 @@
 Changes to be committed:
 	modified:   src/rgw/rgw_cors.cc
 	modified:   src/rgw/rgw_op.cc
+
+(cherry picked from commit 8b3f907f7c819b16f098142c9242d2abb6fa2829)

================================================================================
RANGE DIFF
================================================================================

1:  8b3f907f7c8 ! 1:  0747faef77e rgw: address CORS rule-matching review feedback
    @@ Commit message
                 modified:   src/rgw/rgw_cors.cc
                 modified:   src/rgw/rgw_op.cc
     
    +    (cherry picked from commit 8b3f907f7c819b16f098142c9242d2abb6fa2829)
    +
      ## src/rgw/rgw_cors.cc ##
     @@ src/rgw/rgw_cors.cc: bool RGWCORSRule::matches_preflight_headers(const char *req_hdrs)
        get_str_vec(req_hdrs, hdrs);
    @@ src/rgw/rgw_op.cc: int RGWOp::init_quota()
     -    return false;
     -  }
     -
    --  uint8_t flags = get_multi_cors_method_flags(req_meth);
    +-  uint8_t flags = get_cors_method_flags(req_meth);
     -
     -  if (rule->get_allowed_methods() & flags) {
     -    ldpp_dout(dpp, 10) << "Method " << req_meth << " is supported" << dendl;
    @@ src/rgw/rgw_op.cc: int RGWOp::init_quota()
      int RGWOp::read_bucket_cors()
      {
        bufferlist bl;
    -@@ src/rgw/rgw_op.cc: bool RGWOp::generate_cors_headers(string& origin, string& method, string& header
    -   const char *req_hdrs = s->info.env->get("HTTP_ACCESS_CONTROL_REQUEST_HEADERS");
    - 
    -   RGWCORSRule *rule = bucket_cors.match_rule(orig, req_meth, req_hdrs);
    --  auto is_allowed_to_generate_rule_cors_header = [this, &origin, &method, &headers, &exp_headers, &max_age] (RGWCORSRule *rule) {
    -+  auto is_allowed_to_generate_rule_cors_header = [this, &origin, &method, &headers, &exp_headers, &max_age, req_meth, req_hdrs] (RGWCORSRule *rule) {
    -     if (!rule)
    -       return false;
    - 
    -@@ src/rgw/rgw_op.cc: bool RGWOp::generate_cors_headers(string& origin, string& method, string& header
    -       origin = "*";
    - 
    -     /* CORS 6.2.3. */
    --    const char *req_meth_inner = s->info.env->get("HTTP_ACCESS_CONTROL_REQUEST_METHOD");
    --    if (!req_meth_inner) {
    --      req_meth_inner = s->info.method;
    -+    if (req_meth) {
    -+      method = req_meth;
    -     }
    - 
    --    if (req_meth_inner) {
    --      method = req_meth_inner;
    --    }
    --
    --    /* CORS 6.2.4. */
    --    const char *req_hdrs_inner = s->info.env->get("HTTP_ACCESS_CONTROL_REQUEST_HEADERS");
    --
    -     /* CORS 6.2.6. */
    --    get_cors_response_headers(this, rule, req_hdrs_inner, headers, exp_headers, max_age);
    -+    get_cors_response_headers(this, rule, req_hdrs, headers, exp_headers, max_age);
    - 
    -     return true;
    -   };

Deviation in Backport 06f6a57 (cherry-pick of 830f0e5)

Affected File(s)

Range Diff

Click to expand
--- Original (830f0e56)
+++ Backport (06f6a578)
@@ -6,3 +6,4 @@
 Qualify the call and add the missing include.
 
 Signed-off-by: ramin.najarbashi <[email protected]>
+(cherry picked from commit 830f0e562851a36abc2b450fcf0dd3e554abf24f)

================================================================================
RANGE DIFF
================================================================================

1:  830f0e56285 < -:  ----------- rgw: include str_list.h for ceph::for_each_substr in CORS header
-:  ----------- > 1:  06f6a578711 rgw: include str_list.h for ceph::for_each_substr in CORS header

How 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.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Sep 3, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Sep 3, 2026
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@anrao19 anrao19 added the wip-anrao6-testing wip-anrao6-testing label Sep 10, 2026
@anrao19

anrao19 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to squid integration testing by anuchaithra started 2026-09-10-10:23.

@anrao19

anrao19 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to squid integration testing by anuchaithra started 2026-09-10-10:23.

pr testing completed and approved by @ivancich , more details in : https://tracker.ceph.com/issues/80448.
@RaminNietzsche , if no further testing is needed then this pr can be merged

@anrao19 anrao19 added TESTED ready-to-merge and removed wip-anrao6-testing wip-anrao6-testing labels Sep 16, 2026
jhoblitt added a commit to jhoblitt/rgw-go that referenced this pull request Oct 16, 2026
…in matches

At v19.2.7 and v20.2.4, host_name_rule returns the first rule whose
AllowedOrigin matches, and both the preflight and generate_cors_headers
then refuse the request if that rule lacks its method or a requested
header, so a later rule for the same origin is never used. Amazon S3
takes the first rule that matches origin, method and requested headers.

main corrected it with match_rule in cc1dcecee08, from ceph/ceph#69190,
and the tentacle branch carries the backport 5f25f2bb0e2, from
ceph/ceph#69647, in no tag. The squid backport, ceph/ceph#69648, is
open, and the reef one, ceph/ceph#69649, was closed unmerged; trackers
77575, 77584 and 77586 follow them. rgw-go selects rules as main does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@batrick
batrick merged commit 50137a4 into ceph:squid Oct 20, 2026
24 checks passed
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.

6 participants