Hello,

we have a proxy that requires authentication using username and password. 
we upgraded to 2.42 version of prometheus and tried to use 
proxy_connect_header. 
Basically we need to send Authorization header as "Basic 
base64_encoded(user:password)"

as given in below links we tried to pass header without "Basic" word.

https://github.com/prometheus/prometheus/issues/11626

we tried passing as plain string, base64 and secret (bcrypt encrypted 
string) and nothing works. we also tried with and without Basic keyword. 
But no luck

Any help is highly appreciated

Thanks in advance

Here is our prometheus.yml, running on windows 2016 server as a windows 
service

global:
  scrape_interval: 4m
  scrape_timeout: 30s
  external_labels:    
    region: eu-west
    market: APAC
    country: IN
    city: Bangalore   
    environment: Test    
scrape_configs:
- job_name: prometheus_self_monitoring_job
  honor_timestamps: true
  honor_labels: true
  static_configs:
  - targets:
    - hostname1:9090
  tls_config:
    insecure_skip_verify: true
  scheme: http  
remote_write:
- url: https://test.remote-write.com/api/v1/receive
  follow_redirects: true
  proxy_url: http://1.2.3.4:8080
  proxy_connect_header:
    #user1:password1
    #first with bcrypt and then with base64
    #Authorization: 
[$2a$10$6wrfos7.qvCq5qT7Kqn00udJnjwHqILVGZe8A56UabnySwrRHIXd2]
    Authorization: [dXNlcjE6cGFzc3dvcmQx]
  headers:
    THANOS-TENANT: ThanosTenantId
  tls_config:
    insecure_skip_verify: false
    cert_file: ..\Certs\hostcert.crt
    key_file: ..\Certs\key.unencrypted.pem

Regards,
Kesav

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/3965cd73-0681-42bc-8691-e915f8a5d612n%40googlegroups.com.

Reply via email to