[go: up one dir, main page]

Skip to content

Do not accept client-supplied X-Forwarded-For header

This pulls in the change introduced by labkit!104 (merged).

By default labkit will accept any client-provided X-Forwarded-For header for logging. Pages has its own X-Forwarded-For middleware that replaces http.Request.RemoteAddr when configured behind a proxy. So it is already taken care of.

Thus we want to disable the XFF parsing on the labkit logging side, and this patch does just that.

fixes https://gitlab.com/gitlab-org/gitlab-pages/-/issues/525

Edited by Igor

Merge request reports

Loading