Skip to content

Commit 3683df3

Browse files
committed
fix: avoid exposing api key
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
1 parent 5cba0f5 commit 3683df3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,15 +415,15 @@ func mergeEnvironmentVariables(c *AgentConfig) *AgentConfig {
415415
c.HostName = v
416416
}
417417

418-
// Support API_KEY and DD_API_KEY but prefer DD_API_KEY.
418+
// Support API_KEY and STS_API_KEY but prefer STS_API_KEY.
419419
var apiKey string
420420
if v := os.Getenv("API_KEY"); v != "" {
421421
apiKey = v
422422
log.Info("overriding API key from env API_KEY value")
423423
}
424424
if v := os.Getenv("STS_API_KEY"); v != "" {
425425
apiKey = v
426-
log.Infof("overriding API key from env DD_API_KEY value %s", apiKey)
426+
log.Infof("overriding API key from env STS_API_KEY value")
427427
}
428428
if apiKey != "" {
429429
vals := strings.Split(apiKey, ",")

0 commit comments

Comments
 (0)