Skip to content

squid: rgw/auth: fix internal server error for presigned urls - #69049

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

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

Conversation

@cbodley

@cbodley cbodley commented May 21, 2026

Copy link
Copy Markdown
Contributor

We have special error handling for these cases but we
don't check the negative value of the error so it
instead gets caught as an error not defined with a
response and throws a http 500.

This was implement by [1] and the same way done
with [2].

[1] ceph#55371
[2] ceph#56044

Signed-off-by: Tobias Urdin <[email protected]>
(cherry picked from commit c01b5b1)
@cbodley
cbodley requested a review from a team as a code owner May 21, 2026 14:38
@cbodley cbodley added this to the squid milestone May 21, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label May 21, 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.

@neha-ojha

Copy link
Copy Markdown
Member

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

@neha-ojha
neha-ojha merged commit e198544 into ceph:squid Jun 27, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-qa releng-audit-pass Release engineering: passed backport verification audit. rgw wip-yuri9-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants