Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-3099

IP-authentication is not working in docker environment

    XMLWordPrintable

Details

    • High
    • Add a new configuration value to enable the usage of IP authentication behind a local proxy.

    Description

      problem

      In dockerized setups translate5 is reached via a proxy, normally a nginx. Therefore the REMOTE_ADDR evaluated by PHP is always the IP of the nginx server. The real IP is placed in another variable.

      resolution

      • Investigate if the real IP is always in $_SERVER['HTTP_X_REAL_IP'] or is this only the case for nginx
      • Introduce a config to the ipauth plugin that the HTTP_X_REAL_IP should be used instead of the ordinare REMOTE_ADDR
      • Investigate if the IP for the HTTP_X_REAL_IP header can be spoofed somehow - by adding such a header in the orginal request or so.

      Attachments

        Activity

          People

            leonkiz Leon Kiz
            leonkiz Leon Kiz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: