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

[influxdbv2] Admin Token set via Docker Secrets in Container does not get set causing authorization errors #96

Closed
shantanoo-desai opened this issue Jul 20, 2023 · 1 comment · Fixed by #98
Assignees
Labels
bug Something isn't working influxdbv2 All activities related to InfluxDBv2 TSDB

Comments

@shantanoo-desai
Copy link
Owner

Description

Whilst working #95 other output plugins work except for InfluxDBv2 plugin. Incidentally, upon initializing the InfluxDBv2 container directly with the Admin Token via env var, the telegraf output plugin does not throw any authorization errors, which may lead to an inference that DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE environment variable does not set the Admin Token and may endup setting up a random token causing authorization errors. The fix at the moment to refactor the environment variable to use INIT_ADMIN_TOKEN as opposed to INIT_ADMIN_TOKEN_FILE for the InfluxDBv2 Template.

Reported Bug: influxdata/influxdata-docker#698

@shantanoo-desai shantanoo-desai added bug Something isn't working influxdbv2 All activities related to InfluxDBv2 TSDB labels Jul 20, 2023
@shantanoo-desai shantanoo-desai self-assigned this Jul 20, 2023
@shantanoo-desai
Copy link
Owner Author

Upon changing the DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE to DOCKER_INFLUXDB_INIT_ADMIN_TOKEN the data insertion via Telegraf Output plugin works, confirming that the the TOKEN_FILE doesn't work for InfluxDBv2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working influxdbv2 All activities related to InfluxDBv2 TSDB
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant