Disable external authorization for Influxdb API endpoint #642
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In its current state in order to access the API endpoint, both internal (built-in to the influxdb API) and external (LDAP, authelia or authentik) authorization is required. The latter authentication method is unnecessary, due to the current API requirement (i.e. to access the endpoint, a user is required to authorize with either
token
,querystring
orbasic
authentication method).Benefits of this PR and context
This PR would disable external authorization for the API endpoint, thus making it easier to access the API endpoint in scripts (i.e. only requiring to authenticate with influxdb when making a request to the API).
How Has This Been Tested?
This configuration has been tested by me, after incorporating it into my production environment. (Tested on InfluxDB version
2.7-alpine
).Steps used to test the configuration:
influxdb.subdomain.conf
to match the contents of this PR;swag
andinfluxdb
docker containers;Source / References
InfluxDB API Documentation