How to properly hide Datadog API Key in the datadog.yaml file? #49345
Answered
by
AmarKhellas
repixtor-star
asked this question in
Q&A
-
|
Is it possible to securely hide or avoid exposing the API key when configuring the Datadog Agent? |
Beta Was this translation helpful? Give feedback.
Answered by
AmarKhellas
Apr 14, 2026
Replies: 1 comment
-
|
Datadog recommends using Secrets Management for the Agent so the API key is not stored in plain text. You can reference the key using the secrets backend instead of hardcoding it in the configuration file datadog.yaml |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
repixtor-star
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Datadog recommends using Secrets Management for the Agent so the API key is not stored in plain text.
You can reference the key using the secrets backend instead of hardcoding it in the configuration file datadog.yaml
Source: https://docs.datadoghq.com/agent/configuration/secrets-management/?tab=yamlfilebackend#id-for-json-yaml-text