Skip to content

Comments

chore: standardize environment variables to use INFLUXDB3_ prefix#27119

Open
mgattozzi wants to merge 1 commit intomainfrom
mgattozzi/env-vars
Open

chore: standardize environment variables to use INFLUXDB3_ prefix#27119
mgattozzi wants to merge 1 commit intomainfrom
mgattozzi/env-vars

Conversation

@mgattozzi
Copy link
Contributor

Updates environment variables to use the INFLUXDB3_ prefix for consistency:

  • Object store vars (OBJECT_STORE_* -> INFLUXDB3_OBJECT_STORE_*)
  • Logging vars (LOG_* -> INFLUXDB3_LOG_*)
  • Tracing vars (TRACES_* -> INFLUXDB3_TRACES_*)

Adds env_compat module that runs before clap parsing to:

  • Copy deprecated env var values to new names (backwards compatibility)
  • Copy new env var values to old names (external crate compatibility)
  • Emit deprecation warnings with log-like formatting

Use gen_env! macro for AWS_CREDENTIALS_FILE env var

This is the Core port from changes made in Enterprise

Updates environment variables to use the INFLUXDB3_ prefix for consistency:
- Object store vars (OBJECT_STORE_* -> INFLUXDB3_OBJECT_STORE_*)
- Logging vars (LOG_* -> INFLUXDB3_LOG_*)
- Tracing vars (TRACES_* -> INFLUXDB3_TRACES_*)

Adds env_compat module that runs before clap parsing to:
- Copy deprecated env var values to new names (backwards compatibility)
- Copy new env var values to old names (external crate compatibility)
- Emit deprecation warnings with log-like formatting

Use gen_env! macro for AWS_CREDENTIALS_FILE env var

Co-authored-by: Peter Barnett <peter.barnett03@gmail.com>
@mgattozzi mgattozzi requested review from a team, jdstrand, peterbarnett03 and philjb January 14, 2026 19:11
Copy link
Contributor

@philjb philjb left a comment

Choose a reason for hiding this comment

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

❤️

@jdstrand
Copy link
Contributor

jdstrand commented Jan 14, 2026

I was hoping to have #27118 merged (I submitted it this morning) before this PR lands and have this PR be based on it. I'm not sure where it is in @praveen-influx's todo queue (but anyone can review that).

@mgattozzi
Copy link
Contributor Author

I'm happy to hold off until it is ready to go 😁

@jdstrand
Copy link
Contributor

I'm happy to hold off until it is ready to go 😁

It's merged now (as you probably know from the new (predicted) merge conflicts with TOML_KEY_ENVVAR).

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants