TwiN / gatus

⛑ Automated developer-oriented status page

Home Page:https://gatus.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for HTTP Basic Auth in endpoints

thomasvvugt opened this issue · comments

Describe the feature request

In HTTP endpoints, e.g. when checking "[STATUS] == 200", I would like to see the availability to pass on HTTP Basic credentials (username and password), similar to the security section.

Example endpoint configuration could be:

  - name: Authenticated endpoint
    url: "http://myservice:8080"
    interval: 30s
    conditions:
      - "[STATUS] == 200"
    security:
      basic:
        username: admin
        password: YWRtaW4=  # base64 encoded

Why do you personally want this feature to be implemented?

It would be perfect to monitor the HTTP status codes of some authenticated pages

How long have you been using this project?

No response

Additional information

No response

Hi. Have you tried pasting you credentials in the url itself? Or sending basic Auth in the Header?

image