Skip to content

Commit

Permalink
Merge pull request #9747 from cesarpferreira/9742-API_loadbalancer_bug
Browse files Browse the repository at this point in the history
Fixed incorrect behavior of :BlockedApiPolicy #9742
  • Loading branch information
kcondon authored Aug 1, 2023
2 parents d9f0952 + fa10475 commit 54fd71e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/sphinx-guides/source/installation/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ It is very important to keep the block in place for the "admin" endpoint, and to

It's also possible to prevent file uploads via API by adjusting the :ref:`:UploadMethods` database setting.

If you are using a load balancer or a reverse proxy, there are some additional considerations. If no additional configurations are made and the upstream is configured to redirect to localhost, the API will be accessible from the outside, as your installation will register as origin the localhost for any requests to the endpoints "admin" and "builtin-users". To prevent this, you have two options:

- If your upstream is configured to redirect to localhost, you will need to set the :ref:`JVM option <useripaddresssourceheader>` to one of the following values ``%client.name% %datetime% %request% %status% %response.length% %header.referer% %header.x-forwarded-for%`` and configure from the load balancer side the chosen header to populate with the client IP address.

- Another solution is to set the upstream to the client IP address. In this case no further configuration is needed.

Forcing HTTPS
+++++++++++++

Expand Down

0 comments on commit 54fd71e

Please sign in to comment.