Uploaded image for project: 'RH-SSO'
  1. RH-SSO
  2. RHSSO-2018

[RH-SSO 7.5.2+ container images] Add a pre-launch check to throw an error message when generated standalone-openshift.xml XML configuration file is invalid / malformed

XMLWordPrintable

    • False
    • None
    • False
    • Compatibility/Configuration, User Experience
    • Hide

      See the accompanied SSOSUP-207 ticket for one-way example on how the resulting XML configuration file can get invalid.

      Show
      See the accompanied SSOSUP-207 ticket for one-way example on how the resulting XML configuration file can get invalid.
    • CIAM Sprint 17

      The resulting standalone-openshift.xml XML configuration file, used by RH-SSO container images heavily depends (is autogenerated) based on the environment variables, specified at the moment of RH-SSO container start.

      Since the values of these environment variables can contain basically arbitrary characters, upon an error encountered during variable value expansion process, the resulting XML configuration file might get invalid / malformed in to such a state, it's not possible to start the RH-SSO container image at all.

      Therefore, instead of blindly relying such a dynamically generated XML file is valid, add a container image pre-launch check to verify the syntax/correctness of the XML configuration as a whole, and in the case a XML validation error is detected, throw appropriate error, and abort launch of the container image.

            rh_vmuzikar Václav Muzikář
            rhn-jlieskov Ján Lieskovský
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: