Skip to content

Commit 7b7fa2c

Browse files
authored
Merge pull request #38874 from sftim/20230110_add_logs_api_to_security_checklist
Add /logs API to security checklist
2 parents 55efb17 + 52bb8f9 commit 7b7fa2c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

content/en/docs/concepts/security/security-checklist.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,25 @@ SELinux is only available on Linux nodes, and enabled in
206206
[some Linux distributions](https://en.wikipedia.org/wiki/Security-Enhanced_Linux#Implementations).
207207
{{< /note >}}
208208

209+
## Logs and auditing
210+
211+
- [ ] Audit logs, if enabled, are protected from general access.
212+
- [ ] The `/logs` API is disabled (you are running kube-apiserver with
213+
`--enable-logs-handler=false`).
214+
215+
Kubernetes includes a `/logs` API endpoint, enabled by default,
216+
that lets users request the contents of the API server's `/var/log` directory over HTTP. Accessing
217+
that endpoint requires authentication.
218+
219+
Allowing broad access to Kubernetes logs can make security information
220+
available to a potential attacker.
221+
222+
As a good practice, set up a separate means to collect and aggregate
223+
control plane logs, and do not use the `/logs` API endpoint.
224+
Alternatively, if you run your control plane with the `/logs` API endpoint
225+
and limit the content of `/var/log` (within the host or container where the API server is running) to
226+
Kubernetes API server logs only.
227+
209228
## Pod placement
210229

211230
- [ ] Pod placement is done in accordance with the tiers of sensitivity of the

0 commit comments

Comments
 (0)