Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable external authorization for Influxdb API endpoint #642

Merged
merged 2 commits into from May 11, 2024

Conversation

unkn0wnAPI
Copy link
Contributor

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

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 or basic 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:

  • Update influxdb.subdomain.conf to match the contents of this PR;
  • Restart swag and influxdb docker containers;
  • Make a request to the influxdb API endpoint.

Source / References

InfluxDB API Documentation

@LinuxServer-CI
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@unkn0wnAPI
Copy link
Contributor Author

unkn0wnAPI commented Feb 8, 2024

Updated my influxdb instance to InfluxDB v2.7.5 (Server: 09a9607, Frontend: 9d25a2f), this fix still works as expected.

@LinuxServer-CI
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@Roxedus Roxedus merged commit 24bca5e into linuxserver:master May 11, 2024
8 checks passed
@unkn0wnAPI unkn0wnAPI deleted the influxdb-fix branch May 11, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants