Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7126 from openedx/nadeem/protect-datadog-secure-keys
Browse files Browse the repository at this point in the history
chore: Safeguard secure keys to prevent them from being displayed in Ansible output within the Datadog role
  • Loading branch information
nadeemshahzad authored Feb 27, 2024
2 parents 70eb142 + 9863fdd commit 1ba584e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion playbooks/roles/datadog/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ datadog_debian_pkgs:
- curl
- gnupg

DATADOG_MONGODB_MONITORING: true
DATADOG_MONGODB_MONITORING: false
2 changes: 2 additions & 0 deletions playbooks/roles/datadog/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
dest: "/etc/datadog-agent/datadog.yaml"
regexp: "^api_key:.*"
line: "api_key: {{ DATADOG_API_KEY }}"
no_log: true
notify:
- restart the datadog service
tags:
Expand All @@ -77,6 +78,7 @@
owner: "{{ datadog_user }}"
group: "{{ datadog_user }}"
mode: 0644
no_log: true
notify:
- restart the datadog service
tags:
Expand Down

0 comments on commit 1ba584e

Please sign in to comment.