Skip to content

proxy_url: can contain secrets #128

@karlhungus

Description

@karlhungus

Not sure if this is a bug or a feature request.

What did you do?

We use a proxy in our config of the form proxy_url: "http://proxy_user:proxy_password@...", because this isn't considered a Secret, these show up in our Status pages in alertmanager. and config pages on Prometheus web ui. Forcing us to block these pages

What did you expect to see?

I'd hoped we could mask these out, or mark the proxy as Secret

What did you see instead? Under which circumstances?

I saw the password.

Environment

  • System information:
/ # uname -srm
Linux 4.4.98-1.el7.elrepo.x86_64 x86_64
  • Alertmanager version:
/ # alertmanager --version
alertmanager, version 0.15.0-rc.0 (branch: HEAD, revision: 68122e7005958df611baec01b316355a6f408bae)
  build user:       root@46262c45c129
  build date:       20180228-11:57:18
  go version:       go1.10

I'd be happy to help with this, although I'm not 100% sure of the best approach - maybe SecretURL - or maybe the responsibility should be in the respective UI's to mask the possibly secret part of any url out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions