Project

General

Profile

Bug #43060

mgr/dashboard: Invalid SSO configuration when certificate path does not exist

Added by Ricardo Marques 12 months ago. Updated 12 months ago.

Status:
Resolved
Priority:
Normal
Category:
dashboard/auth-sso
Target version:
% Done:

0%

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

Description

Since https://github.com/ceph/ceph/pull/29848 SSO setup no longer works with certificate content (only works with certificate paths).

But if I try to specify the certificate content, I will end up with an inconsistent configuration that doesn't have the certificate but encryption is enabled:

{
  "sp": {
    ...
    "x509cert": "",
    "privateKey": "" 
  },
  "security": {
    "nameIdEncrypted": true,
    "authnRequestsSigned": true,
    "logoutRequestSigned": true,
    "logoutResponseSigned": true,
    "signMetadata": true,
    "wantMessagesSigned": true,
    "wantAssertionsSigned": true,
    "wantAssertionsEncrypted": true,
    "wantNameIdEncrypted": true,
    "metadataValidUntil": "",
    "wantAttributeStatement": false
  },
  ...
}

How to reproduce:

# bin/ceph dashboard sso-saml2-setup https://cephdashboard.local  https://localhost:9443/idp/shibboleth uid https://cephdashboard/idp \
    MIIDYDCCAkigAwIBAgIJAOwAnH/ZKuTnMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwHhcNMTgwOTI0MTA0ODQwWhcNMjgwOTIzMTA0ODQwWjBFMQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArdsf7uMypSF/6/7W+dKGsveHa3nbkKRPbXAP9P9a9hb3vxVkd6Qqsgf4WJrwRAl1I5Hhfz6AfHDVJFJg+TDKBlba2NXASxGMWYcgdvAvzyrWaIfGUhajZ/cE2Zz16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H1ElFiE95Ey+ECgYA8vcf0CBCcVTUitTAFTPDFujFKlQ1a9HHbu3qFPP5A/Jo6Ki4eqmZfCBH7ZB/B1oOf0Jb/Er24nAql8VHqVrTfLhsKdM8djLWeFp7YRaWlNjQnoweHKBaBRL0HVkrwh/1fvtnlIB4K8kNc8liwCIOmpt0WMFkMKHBqeRJ/XS2gGQ== \
    | jq

History

#1 Updated by Ricardo Marques 12 months ago

  • Subject changed from mgr/dashboard: Invalid SSO configuration when certificate path does not exists to mgr/dashboard: Invalid SSO configuration when certificate path does not exist

#2 Updated by Ricardo Marques 12 months ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 31920

#3 Updated by Lenz Grimmer 12 months ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF