Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change configuration perms on Linux #313

Merged
merged 1 commit into from
Dec 1, 2020
Merged

Change configuration perms on Linux #313

merged 1 commit into from
Dec 1, 2020

Conversation

loliee
Copy link
Contributor

@loliee loliee commented Dec 1, 2020

Prevent main & check configuration files to be read by everybody.
The reason is they can contains some secrets, we unfortunately switch to the fork because of that…

Before this modification we had something like that:

$ ls -lah /etc/datadog-agent/conf.d/mysql.d/conf.yaml
-rw-r--r-- 1 dd-agent dd-agent 657 Nov 30 15:15 /etc/datadog-agent/conf.d/mysql.d/conf.yaml
$ ls -lah /etc/datadog-agent/datadog.yaml
-rw-r--r-- 1 dd-agent dd-agent 215 Nov 30 15:09 /etc/datadog-agent/datadog.yaml

After it become:

$ ls -lah /etc/datadog-agent/datadog.yaml
-rw-r----- 1 dd-agent dd-agent 215 Dec  1 12:26 /etc/datadog-agent/datadog.yaml
$ ls -lah /etc/datadog-agent/conf.d/mysql.d/conf.yaml
-rw-r----- 1 dd-agent dd-agent 657 Dec  1 12:26 /etc/datadog-agent/conf.d/mysql.d/conf.yaml

Fix #312

Prevent main & check configuration files to be read by everybody.
The reason is they can contains some secrets.

Before this modification we had something like that:
```
$ ls -lah /etc/datadog-agent/conf.d/mysql.d/conf.yaml
-rw-r--r-- 1 dd-agent dd-agent 657 Nov 30 15:15 /etc/datadog-agent/conf.d/mysql.d/conf.yaml
$ ls -lah /etc/datadog-agent/datadog.yaml
-rw-r--r-- 1 dd-agent dd-agent 215 Nov 30 15:09 /etc/datadog-agent/datadog.yaml
```

After it become:
```
$ ls -lah /etc/datadog-agent/datadog.yaml
-rw-r----- 1 dd-agent dd-agent 215 Dec  1 12:26 /etc/datadog-agent/datadog.yaml
$ ls -lah /etc/datadog-agent/conf.d/mysql.d/conf.yaml
-rw-r----- 1 dd-agent dd-agent 657 Dec  1 12:26 /etc/datadog-agent/conf.d/mysql.d/conf.yaml
```

Fix #312
@loliee loliee requested a review from a team as a code owner December 1, 2020 12:02
@albertvaka
Copy link
Contributor

Thanks a lot for your patch! I think changing this makes sense, specially since we already secure those files for Chef and Puppet users. Also: Loving your Alex Kidd avatar :)

@albertvaka albertvaka merged commit 808c84e into DataDog:master Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make Linux config files permissions less open
2 participants