Skip to content
Snippets Groups Projects

Filter '/-/' path from externally visible nginx endpoints

Closed Paweł Chojnacki requested to merge nginx_filters_hidden_paths into master

Currently we protect metrics and healthcheck endpoints via special token that is required to access them. This token is burdensome to change and manage. It is not entirely safe since that token can easily be leaked via tools not meant to hold secrets.

This MR introduces blocking of healthcheck and metric endpoints prefixed with '/-/' from other host than localhost with additional caveat that no X-Forwarded-For header must be present.

/cc: @pcarranza @bjk-gitlab @marin

Related to: gitlab-ce#29118

Edited by Paweł Chojnacki

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading