Open valleedelisle opened 6 months ago
I can confirm that this problem still exists in k6 version v0.48.0 paired with xk6-output-remote v0.3.1 and the only work-around I have is to base64-encode the username:password and add that as one of the header key/values with Header name "Authorization" and value "Basic
Is it enough to use this? https://pkg.go.dev/net/http#Request.SetBasicAuth
When we pass
K6_PROMETHEUS_RW_PASSWORD
/K6_PROMETHEUS_RW_USERNAME
coupled withK6_PROMETHEUS_RW_HTTP_HEADERS
, the latter will override the credentials. We need to pass aAuthorization: Basic xxx
header to authenticate.