Project

General

Profile

Bug #44666

mgr/dashboard: error when enabling SSO with certificate file

Added by Alfonso Martínez 14 days ago. Updated 8 days ago.

Status:
Fix Under Review
Priority:
High
Category:
dashboard/auth-sso
Target version:
% Done:

0%

Source:
Tags:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

When following instructions to enable SSO
[[https://docs.ceph.com/docs/master/mgr/dashboard/#dashboard-sso-support]]

and passing a certificate file path for signing and encryption, I get this error:

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)

History

#1 Updated by Alfonso Martínez 14 days ago

  • Subject changed from mgr/dashboard: error when enbaling SSO with certificate to mgr/dashboard: error when enabling SSO with certificate file
  • Description updated (diff)
  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 34033

#2 Updated by Lenz Grimmer 12 days ago

  • Priority changed from Normal to High

#3 Updated by Alfonso Martínez 8 days ago

  • Backport changed from octopus nautilus to octopus

Also available in: Atom PDF