-
-
Notifications
You must be signed in to change notification settings - Fork 175
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 #325
- Loading branch information
Markus Lackner
committed
Nov 4, 2020
1 parent
d9be66a
commit 576930c
Showing
8 changed files
with
266 additions
and
4 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 `container-security-context` check 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` | ||
and enable one or more of the following optional checks: | ||
|
||
* `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 checks. |
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-writeablerootfilesystem.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 |