SAML IdP certificate is not accepted, if comments are present

XMLWordPrintable

    • Type: Problem report
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: 6.0.22, 6.4.7, 7.0.0alpha6
    • Component/s: Frontend (F)
    • None
    • Sprint 107 (Dec 2023), Sprint candidates, S2401, S24-W44/45

      Steps to reproduce:

      1. Configure SAML auth with any provider
      2. Place the certificates where they belong
      3. Edit the IdP certificate by adding any comment to it (example on the screenshot)
      4. Try logging in using SAML

      Result:
      "- Unable to extract public key" error (second screenshot)

      Expected:
      Successful login because comments beyond the beginning and end of the certificate should be ignored. 

       

      Can cause problems when automating configuration. For example Ansible adds this comment:

      # ansible managed. ALL CHANGES WILL BE LOST.

        1. first.jpeg
          254 kB
          Maksym Buz
        2. second.jpeg
          10 kB
          Maksym Buz

            Assignee:
            Zabbix Development Team
            Reporter:
            Maksym Buz
            Team C
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: