Skip to content

Adding options for basic auth to API calls #262

Closed
@reinhard-brandstaedter

Description

@reinhard-brandstaedter

Proposal:
I'm seeing implementations where additional (basic) authentication proxies are being placed in front of InfluxDBs (mainly 1.8 versions where auth is disabled). This makes it difficult to use the compatibility API as basic auth headers cannot be added, only the Authorization: Token {user}:{pwd} would be added. As described here.
Would it be possible to also pass a Basic Auth header so that a auth proxy would be able to process the API requests in such cases?

Current behavior:
Writing to the compatibility API to a InfluxDb 1.8 which has auth disabled but uses a proxy with basic auth is not possible

Desired behavior:
It would be good to allow these special setups with authenticating proxies and influxdbs with not auth enabled

Alternatives considered:
Reverting to either not use the new influxdb-client or manual line protocol posting with basic auth (not very efficient)

Use case:
It would help in migrating solutions that need to write to both 1.8 (with special setups) and 2.0 influxDBs

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions