Skip to content

Fix InfluxDB profile reads never sending credentials #365

Open
jarsarasty wants to merge 1 commit into
mainfrom
fix/influxdb-profile-read-credentials
Open

Fix InfluxDB profile reads never sending credentials #365
jarsarasty wants to merge 1 commit into
mainfrom
fix/influxdb-profile-read-credentials

Conversation

@jarsarasty

Copy link
Copy Markdown

Reads INFLUXDB_USERNAME/INFLUXDB_PASSWORD from the environment instead of the dead influx_cred_map stub, matching the convention already used by simulator-worker's own profile-write path and by optimizer-worker.

Fixes #364

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes authenticated InfluxDB profile reads by sourcing credentials from environment variables (INFLUXDB_USERNAME / INFLUXDB_PASSWORD) instead of an unused, always-empty in-function credential map, aligning simulator-core’s read path with the approach used in other workers.

Changes:

  • Add os import and read InfluxDB credentials from INFLUXDB_USERNAME / INFLUXDB_PASSWORD.
  • Remove the dead influx_cred_map stub and always construct ConnectionSettings with the env-provided credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

InfluxDB profile reads always fail with 401 against auth-enabled InfluxDB

2 participants