[Koha-bugs] [Bug 23068] New: Add ability for Koha to handle X-Forwarded-For headers so REMOTE_ADDR features work behind a proxy

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 6 21:12:17 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23068

            Bug ID: 23068
           Summary: Add ability for Koha to handle X-Forwarded-For headers
                    so REMOTE_ADDR features work behind a proxy
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: kyle at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org
  Target Milestone: ---

Koha has a number of features that rely on knowing the IP address of the
connecting client. If that server is behind a proxy these features do not work.
We can use Plack::Middleware::RealIP to automatically convert the
X-Forwarded-For header into the REMOTE_ADDR environment variable so no Koha
code need be modified. 

A future enhancement could be to take advantage of the module's trusted_proxy
setting to allow Koha to use these feature even after going through *multiple*
proxies. This would require being able to read configuration from the
plack.psgi file and is beyond the scope of this enhancement.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list