Skip to content

Is templating supported in basic_auth? #370

Open
@kalmarz

Description

@kalmarz

I'd like to pass the credentials as environment variables, similarly to blackbox-exporter:

    http_client_config:
      basic_auth:
        username: '{{ env "OS_USERNAME" }}'
        password: '{{ env "OS_PASSWORD" }}'

But this doesn't seem to be working as I always get a 403. Is it supported and I miss something?

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