Skip to content

Commit aa4d4be

Browse files
committed
Update CWS setup instructions for host based installation
1 parent f924b37 commit aa4d4be

File tree

1 file changed

+54
-32
lines changed

1 file changed

+54
-32
lines changed

content/en/security/cloud_workload_security/getting_started.md

Lines changed: 54 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -118,24 +118,30 @@ docker run -d --name dd-agent \
118118

119119
For a package-based deployment, the Datadog package has to be deployed: run `dkpg -i datadog-agent_7….deb`
120120

121-
By default Runtime Security is disabled. To enable it, both the `security-agent.yaml` and the `system-probe.yaml` files need to be adapted. Run the following commands to enable these configurations:
121+
By default Cloud Workload Security is disabled. To enable it, both the `security-agent.yaml` and the `system-probe.yaml` files need to be adapted as follows:
122122

123-
{{< code-block lang="bash" filename="debian-runtime-security.sh" >}}
123+
1. Copy security-agent and system-probe example configurations:
124124

125-
echo "runtime_security_config.enabled: true" >> /etc/datadog-agent/security-agent.yaml
126-
echo "runtime_security_config.enabled: true" >> /etc/datadog-agent/system-probe.yaml
127-
128-
systemctl restart datadog-agent
125+
```shell
126+
sudo -u dd-agent install -m 0640 /etc/datadog-agent/system-probe.yaml.example /etc/datadog-agent/system-probe.yaml
127+
sudo -u dd-agent install -m 0640 /etc/datadog-agent/security-agent.yaml.example /etc/datadog-agent/security-agent.yaml
128+
```
129129

130-
{{< /code-block >}}
130+
2. Edit both `/etc/datadog-agent/security-agent.yaml` and `/etc/datadog-agent/system-probe.yaml` to set the enable flag to `true`:
131131

132-
For [Datadog Agent][1] version 7.36 only, to enable the collection of CWS network events:
132+
```yaml
133+
runtime_security_config:
134+
## @param enabled - boolean - optional - default: false
135+
## Set to true to enable Cloud Workload Security (CWS).
136+
#
137+
enabled: true
138+
```
133139

134-
```shell
135-
echo "runtime_security_config.network.enabled: true" >> /etc/datadog-agent/system-probe.yaml
136-
```
140+
3. Restart the Datadog agent.
137141

138-
Once you apply the changes, restart both the Security Agent and the system-probe.
142+
```shell
143+
sudo service restart datadog-agent
144+
```
139145

140146
[1]: https://app.datadoghq.com/account/settings#agent/kubernetes
141147
{{% /tab %}}
@@ -144,22 +150,30 @@ Once you apply the changes, restart both the Security Agent and the system-probe
144150

145151
For a package-based deployment, the Datadog package has to be deployed: run `yum/dnf install datadog-agent_7….rpm`
146152

147-
By default Runtime Security is disabled. To enable it, both the `security-agent.yaml` and the `system-probe.yaml` files need to be adapted. Run the following commands to enable these configurations:
153+
By default Cloud Workload Security is disabled. To enable it, both `security-agent.yaml` and `system-probe.yaml` files need to be adapted as follows:
148154

149-
{{< code-block lang="bash" filename="fedora-centos-runtime-security.sh" >}}
155+
1. Copy security-agent and system-probe example configurations:
150156

151-
echo "runtime_security_config.enabled: true" >> /etc/datadog-agent/security-agent.yaml
152-
echo "runtime_security_config.enabled: true" >> /etc/datadog-agent/system-probe.yaml
157+
```shell
158+
sudo -u dd-agent install -m 0640 /etc/datadog-agent/system-probe.yaml.example /etc/datadog-agent/system-probe.yaml
159+
sudo -u dd-agent install -m 0640 /etc/datadog-agent/security-agent.yaml.example /etc/datadog-agent/security-agent.yaml
160+
```
153161

154-
systemctl restart datadog-agent
162+
2. Edit both `/etc/datadog-agent/security-agent.yaml` and `/etc/datadog-agent/system-probe.yaml` to set the enable flag to `true`:
155163

156-
{{< /code-block >}}
164+
```yaml
165+
runtime_security_config:
166+
## @param enabled - boolean - optional - default: false
167+
## Set to true to enable Cloud Workload Security (CWS).
168+
#
169+
enabled: true
170+
```
157171

158-
For [Datadog Agent][1] version 7.36 only, to enable the collection of CWS network events:
172+
3. Restart the Datadog agent.
159173

160-
```shell
161-
echo "runtime_security_config.network.enabled: true" >> /etc/datadog-agent/system-probe.yaml
162-
```
174+
```shell
175+
sudo service restart datadog-agent
176+
```
163177

164178
[1]: https://app.datadoghq.com/account/settings#agent/kubernetes
165179
{{% /tab %}}
@@ -168,22 +182,30 @@ echo "runtime_security_config.network.enabled: true" >> /etc/datadog-agent/syste
168182

169183
For a package-based deployment, the Datadog package has to be deployed. Install the package with your package manager.
170184

171-
By default Runtime Security is disabled. To enable it, both the `security-agent.yaml` and the `system-probe.yaml` files need to be adapted. Run the following commands to enable these configurations:
185+
By default Cloud Workload Security is disabled. To enable it, both `security-agent.yaml` and `system-probe.yaml` files need to be adapted as follows:
172186

173-
{{< code-block lang="bash" filename="host-runtime-security.sh" >}}
187+
1. Copy security-agent and system-probe example configurations:
174188

175-
echo "runtime_security_config.enabled: true" >> /etc/datadog-agent/security-agent.yaml
176-
echo "runtime_security_config.enabled: true" >> /etc/datadog-agent/system-probe.yaml
189+
```shell
190+
sudo -u dd-agent install -m 0640 /etc/datadog-agent/system-probe.yaml.example /etc/datadog-agent/system-probe.yaml
191+
sudo -u dd-agent install -m 0640 /etc/datadog-agent/security-agent.yaml.example /etc/datadog-agent/security-agent.yaml
192+
```
177193

178-
systemctl restart datadog-agent
194+
2. Edit both `/etc/datadog-agent/security-agent.yaml` and `/etc/datadog-agent/system-probe.yaml` to set the enable flag to `true`:
179195

180-
{{< /code-block >}}
196+
```yaml
197+
runtime_security_config:
198+
## @param enabled - boolean - optional - default: false
199+
## Set to true to enable Cloud Workload Security (CWS).
200+
#
201+
enabled: true
202+
```
181203

182-
For [Datadog Agent][1] version 7.36 only, to enable the collection of CWS network events:
204+
3. Restart the Datadog agent.
183205

184-
```shell
185-
echo "runtime_security_config.network.enabled: true" >> /etc/datadog-agent/system-probe.yaml
186-
```
206+
```shell
207+
sudo service restart datadog-agent
208+
```
187209

188210
[1]: https://app.datadoghq.com/account/settings#agent/kubernetes
189211
{{% /tab %}}

0 commit comments

Comments
 (0)