Basic authentication not working in Alertmanager v.0.15.0

473 views
Skip to first unread message

m.n...@gmail.com

unread,
Jul 4, 2018, 5:40:07 AM7/4/18
to Prometheus Users
I'm trying to use basic authentication in Alertmanager v.0.15.0 by configuring a receiver with basic_auth in http_config in the following way (alertmanager.yml):

global:
  resolve_timeout
: 5m

route
:
  group_by
: ['alertname']
  group_wait
: 1s
  group_interval
: 1s
  repeat_interval
: 1m
  receiver
: user
receivers
:
- name: 'user'
  webhook_configs
:
 
- url: 'http://127.0.0.1:8999/v1/event'
    send_resolved
: true
    http_config
:
      basic_auth
:
        username
: 'admin'
        password
: 'password'


inhibit_rules
:
 
- source_match:
      severity
: 'critical'
    target_match
:
      severity
: 'warning'
    equal
: ['alertname', 'dev', 'instance'


In the receiver side I print the header of the request and I get just the following fields without Authorization header:

Content-Length : 2213
User-Agent : Alertmanager/0.15.0
Host : 127.0.0.1:8999
Content-Type : application/json


Do I have something wrong with the configuration file? or something is messing?!

Brian Brazil

unread,
Jul 4, 2018, 6:54:17 AM7/4/18
to m.n...@gmail.com, Prometheus Users
That looks like a bug, can you file one please? 


--

m.n...@gmail.com

unread,
Jul 4, 2018, 7:32:44 AM7/4/18
to Prometheus Users
Reply all
Reply to author
Forward
0 new messages