[influxdbv2] Admin Token set via Docker Secrets in Container does not get set causing authorization errors
shantanoo-desai opened this issue · 1 comments
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
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