datadog-ci icon indicating copy to clipboard operation
datadog-ci copied to clipboard

Inconsistent usage of DATADOG_API_KEY and DD_API_KEY

Open albertvaka opened this issue 3 years ago • 0 comments

Most Datadog products (Agent, Tracers, etc.) use DD_API_KEY as the environment variable for the API key.

In datadog-ci, we mostly use DATADOG_API_KEY while some commands accept both DATADOG_API_KEY and DD_API_KEY.

For consistency, I think we should accept DD_API_KEY in all commands. We probably want to still accept DATADOG_API_KEY for backwards compatibility, but I think we should prefer DD_API_KEY instead (eg: in documentation).

The same applies to DATADOG_SITE vs DD_SITE.

albertvaka avatar Apr 07 '23 10:04 albertvaka