Bug 1814806 - [Ceph-dashboard] Error when enabling SSO with certificate file
Summary: [Ceph-dashboard] Error when enabling SSO with certificate file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 4.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: 4.1
Assignee: Alfonso Martínez
QA Contact: Sunil Angadi
Anjana Suparna Sriram
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-18 16:56 UTC by Alfonso Martínez
Modified: 2020-05-19 17:33 UTC (History)
6 users (show)

Fixed In Version: ceph-14.2.8-28.el8cp, ceph-14.2.8-21.el7cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-19 17:33:05 UTC
Embargoed:
hyelloji: needinfo+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 44666 0 None None None 2020-03-18 16:56:05 UTC
Github ceph ceph pull 34129 0 None closed nautilus: mgr/dashboard: fix error when enabling SSO with cert. file 2020-05-13 20:27:05 UTC
Red Hat Product Errata RHSA-2020:2231 0 None None None 2020-05-19 17:33:33 UTC

Description Alfonso Martínez 2020-03-18 16:56:06 UTC
Description of problem:
When following instructions to enable SSO
[[https://docs.ceph.com/docs/master/mgr/dashboard/#dashboard-sso-support]]

ceph dashboard sso setup saml2 <ceph_dashboard_base_url> <idp_metadata> {<idp_username_attribute>} {<idp_entity_id>} {<sp_x_509_cert>} {<sp_private_key>}

and passing idp_metadat, certificate & private key as file paths, I get this error:
<pre>
Error EINVAL: Traceback (most recent call last):
  File "/ceph/src/pybind/mgr/mgr_module.py", line 1153, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/ceph/src/pybind/mgr/dashboard/module.py", line 379, in handle_command
    res = handle_sso_command(cmd)
  File "/ceph/src/pybind/mgr/dashboard/services/sso.py", line 195, in handle_sso_command
    sp_x_509_cert = f.read()
  File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)
</pre>


Expected results:
It should work.

Comment 1 RHEL Program Management 2020-03-18 16:56:14 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 10 errata-xmlrpc 2020-05-19 17:33:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:2231


Note You need to log in before you can comment on or make changes to this bug.