forked from zegl/kube-score
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
score/security: added optional, splitted probes as future replacemnt …
…for security context probe Fixes zegl#325
- Loading branch information
Markus Lackner
committed
Nov 4, 2020
1 parent
d9be66a
commit 8ebcea7
Showing
10 changed files
with
275 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Security Context | ||
|
||
The default probe `container-security-context` checks the `SecurityContext` | ||
for | ||
|
||
* Containers with writeable root filesystems | ||
* Containers that run with user ID or group ID < 10000 | ||
* Privileged containers | ||
|
||
If you do not want all of this checks you can disable `container-security-context` | ||
probe and enable one or more of the following optional probes: | ||
|
||
* `container-security-context-user-group-id` | ||
* `container-security-context-privileged` | ||
* `container-security-context-readonlyrootfilesystem` | ||
|
||
In future releases the `container-security-context` will become *optional* | ||
and replaced by the more detailed probes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: pod-test-1 | ||
spec: | ||
containers: | ||
- name: foobar | ||
image: foo/bar:latest |
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
score/testdata/pod-security-context-writablerootfilesystem.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: pod-test-1 | ||
spec: | ||
containers: | ||
- name: foobar | ||
image: foo/bar:latest | ||
securityContext: | ||
privileged: True |