Skip to content

squid: rgw/beast: add ssl_ciphersuites option for tls 1.3 - #69179

Merged
neha-ojha merged 1 commit into
ceph:squidfrom
cbodley:wip-77003-squid
Jun 27, 2026
Merged

neha-ojha merged 1 commit into
ceph:squidfrom
cbodley:wip-77003-squid

Conversation

@cbodley

@cbodley cbodley commented May 29, 2026

Copy link
Copy Markdown
Contributor

the existing ssl_ciphers option is passed to `SSL_CTX_set_cipher_list()`
which only applies to "TLSv1.2 and below". there's a separate
`SSL_CTX_set_ciphersuites()` for TLSv1.3

because the frontend's default configuration for `ssl_options` accepts
both 1.2 and 1.3, users may need to specify ciphers for each. that's why
`ssl_ciphersuites` is introduced as a separate option

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

Signed-off-by: Casey Bodley <[email protected]>
(cherry picked from commit c62f537)

Conflicts:
	doc/radosgw/frontends.rst  openssl -> OpenSSL
	src/rgw/rgw_asio_frontend.cc  no tls_groups on squid
@cbodley
cbodley requested review from a team as code owners May 29, 2026 18:47
@cbodley cbodley added this to the squid milestone May 29, 2026
@cbodley cbodley added the rgw label May 29, 2026

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

Automated Backport Parity Review - Backport Deviation Alert

A conflict or unapproved 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.

Deviation in Backport e7c252e (cherry-pick of c62f537f)

Affected File(s)

Range Diff

Click to expand
--- Original (c62f537f)
+++ Backport (e7c252ea)
@@ -11,3 +11,8 @@
 Fixes: https://tracker.ceph.com/issues/76578
 
 Signed-off-by: Casey Bodley <[email protected]>
+(cherry picked from commit c62f537f2c99513ef04595c748d392e9da36a7fd)
+
+Conflicts:
+	doc/radosgw/frontends.rst  openssl -> OpenSSL
+	src/rgw/rgw_asio_frontend.cc  no tls_groups on squid

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

1:  c62f537f2c9 ! 1:  e7c252ea3e9 rgw/beast: add ssl_ciphersuites option for tls 1.3
    @@ Commit message
         Fixes: https://tracker.ceph.com/issues/76578
     
         Signed-off-by: Casey Bodley <[email protected]>
    +    (cherry picked from commit c62f537f2c99513ef04595c748d392e9da36a7fd)
    +
    +    Conflicts:
    +            doc/radosgw/frontends.rst  openssl -> OpenSSL
    +            src/rgw/rgw_asio_frontend.cc  no tls_groups on squid
     
      ## doc/radosgw/frontends.rst ##
     @@ doc/radosgw/frontends.rst: Options
    @@ doc/radosgw/frontends.rst: Options
     +``ssl_ciphers`` and ``ssl_ciphersuites``
      
      :Description: Optional list of one or more cipher strings separated by colons.
    -               The format of the string is described in OpenSSL's ciphers(1)
    +-              The format of the string is described in openssl's ciphers(1)
     -              manual.
    ++              The format of the string is described in OpenSSL's ciphers(1)
     +              manual. The ``ssl_ciphers`` option only applies to connections
     +              using TLS v1.2 and below, while ``ssl_ciphersuites`` only applies
     +              to TLS v1.3.
    @@ src/rgw/rgw_asio_frontend.cc: int AsioFrontend::ssl_reload() {
     +    }
     +  }
     +
    -   std::optional<std::string> groups = conf->get_val("tls_groups");
    -   if (groups) {
    -     if (!cert) {
    +   bool key_is_cert = false;
    +   bool have_cert = false;
    +   if (cert) {

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.


Commit Parity Visualizer

BACKPORT PR #69179 SOURCE PR SOURCE STATUS
e7c252e rgw/beast: add ssl_ciphersuites option for tls 1.3 PR #68934 c62f537 rgw/beast: add ssl_ciphersuites option for tls 1.3

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

CI Run Log: View Workflow Details

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label May 29, 2026
@yuriw

yuriw commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri2-testing-20260602.202206-squid.

@yuriw

yuriw commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri2-testing-20260622.144905-squid.

@yuriw

yuriw commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This PR has been removed from wip-yuri2-testing-20260622.144905-squid.

@yuriw

yuriw commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri9-testing-20260622.172413-squid.

@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Jun 24, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

jenkins test make check

@neha-ojha

Copy link
Copy Markdown
Member

make check failure

Traceback (most recent call last):
  File "/ceph/src/pybind/mgr/cephadm/serve.py", line 602, in _apply_all_services
    if self._apply_service(spec):
  File "/ceph/src/pybind/mgr/cephadm/serve.py", line 947, in _apply_service
    daemon_spec = svc.prepare_create(daemon_spec)
  File "/ceph/src/pybind/mgr/cephadm/services/monitoring.py", line 27, in prepare_create
    daemon_spec.final_config, daemon_spec.deps = self.generate_config(daemon_spec)
  File "/ceph/src/pybind/mgr/cephadm/services/monitoring.py", line 102, in generate_config
    cert, pkey = self.prepare_certificates(daemon_spec)
  File "/ceph/src/pybind/mgr/cephadm/services/monitoring.py", line 148, in prepare_certificates
    cert, pkey = create_self_signed_cert('Ceph', host_fqdn)
  File "/ceph/src/pybind/mgr/mgr_util.py", line 545, in create_self_signed_cert
    req = crypto.X509Req()
  File "/ceph/src/pybind/mgr/.tox/py3/lib/python3.10/site-packages/cryptography/utils.py", line 76, in __getattr__
    obj = getattr(self._module, name)
AttributeError: module 'OpenSSL.crypto' has no attribute 'X509Req'

@neha-ojha

Copy link
Copy Markdown
Member

jenkins test make check

1 similar comment
@neha-ojha

Copy link
Copy Markdown
Member

jenkins test make check

@neha-ojha
neha-ojha merged commit 2c99dab into ceph:squid Jun 27, 2026
10 of 11 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.

4 participants