Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-40755

Remove dependency between the Nginx and the Flask pods for the configuration set up

XMLWordPrintable

    • Quality / Stability / Reliability
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Unset
    • None

      Right now the way Nginx's configuration gets built is:

      1. The templates containing the Nginx configuration get copied to the Dockerfile.
      2. Once Nginx boots, it waits until the Flaks application is contacted which collects the "headers for the authentication" and "headers to forward" from plug ins that we have set up and the "/saml" blueprint's prefix which gets set in the "api_gateway" configuration file as a location.

      Any headers that are collected from the Flask application get printed in the templates, without any distinction per back end or authorization plug in —which makes sense, because Nginx will simply ignore them and not send them when they do not have any content—, but that begs the question: isn't it better just to hard-code those headers, which just will make it easier to reason about the configuration?

      It is true that any change will have to be made in both places, but until now no headers have been changed or added, and the number of custom headers to add in the Nginx config is so low that it doesn't seem like the automation is justified.

              mbarcina@redhat.com Mikel Barcina
              mbarcina@redhat.com Mikel Barcina
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: