Skip to content

[BUG] Health Check returns 401 when Auth is enabled #1600

@dinujoh

Description

@dinujoh

Describe the bug
Health Check to Log Source or Otel Source returns 401 when Auth is enabled. If we have data prepper fronted by load balancer and load balancer is doing health check, the health check path should be excluded from Auth.

To Reproduce
Steps to reproduce the behavior:

  1. Configure the Data Pepper Pipeline config with Auth
source:
  http:
    authentication:
      http_basic:
        username: my-user
        password: my_s3cr3t
  1. Start Data Prepper
  2. curl http://localhost:2021/health

Expected behavior
return Http status 200 with response {}.

Screenshots

curl http://localhost:2021/health
401 Unauthorized%

Environment (please complete the following information):

  • OS: Linux

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions