Project

General

Profile

Actions

Bug #44666

closed

mgr/dashboard: error when enabling SSO with certificate file

Added by Alfonso Martínez about 4 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
High
Category:
Security & Auth
Target version:
% Done:

0%

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

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)


Related issues 1 (0 open1 closed)

Copied to Dashboard - Backport #44932: octopus: mgr/dashboard: error when enabling SSO with certificate fileResolvedAlfonso MartínezActions
Actions #1

Updated by Alfonso Martínez about 4 years 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
Actions #2

Updated by Lenz Grimmer about 4 years ago

  • Priority changed from Normal to High
Actions #3

Updated by Alfonso Martínez about 4 years ago

  • Backport changed from octopus nautilus to octopus
Actions #4

Updated by Lenz Grimmer about 4 years ago

  • Status changed from Fix Under Review to Pending Backport

Fix for Nautilus: https://github.com/ceph/ceph/pull/34129 (not cherry-picked)

Actions #5

Updated by Alfonso Martínez about 4 years ago

  • Copied to Backport #44932: octopus: mgr/dashboard: error when enabling SSO with certificate file added
Actions #6

Updated by Lenz Grimmer about 4 years ago

  • Status changed from Pending Backport to Resolved
Actions #7

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 145 to Security & Auth
Actions

Also available in: Atom PDF