I am using Prometheus version 2.28, I enabled basic Authentication on Prometheus server and seems that after enabling that, /-/healthy and /-/ready endpoints are also secured. I am using these endpoints in Kubernates for liveness and rediness probe. I have option to pass in Authorization header as a part of yaml as follows. But, is their any other way we can securely pass the username and password as its only base64 encoded. Or is it possible to disable security on Prometheus health endpoints.
livenessProbe:
httpGet:
path: /-/healthy
port: 9090
httpHeaders:
- name: Authorization
value: Basic dXNlcjpwYXNz