2017-05-26 09:25:29 +00:00
|
|
|
---
|
|
|
|
controls:
|
|
|
|
id: 1
|
|
|
|
text: "Master Checks"
|
|
|
|
type: "master"
|
|
|
|
groups:
|
|
|
|
- id: 1.1
|
|
|
|
text: "Kube-apiserver"
|
|
|
|
checks:
|
2017-08-12 18:54:33 +00:00
|
|
|
- id: 0
|
|
|
|
text: "flag is set"
|
2017-05-26 09:25:29 +00:00
|
|
|
tests:
|
|
|
|
test_items:
|
2017-08-12 18:54:33 +00:00
|
|
|
- flag: "--allow-privileged"
|
2017-05-26 09:25:29 +00:00
|
|
|
set: true
|
|
|
|
|
2017-08-12 18:54:33 +00:00
|
|
|
- id: 1
|
|
|
|
text: "flag is not set"
|
2017-05-26 09:25:29 +00:00
|
|
|
tests:
|
|
|
|
test_item:
|
2017-08-12 18:54:33 +00:00
|
|
|
- flag: "--basic-auth"
|
2017-05-26 09:25:29 +00:00
|
|
|
set: false
|
|
|
|
|
2017-08-12 18:54:33 +00:00
|
|
|
- id: 2
|
|
|
|
text: "flag value is set to some value"
|
2017-05-26 09:25:29 +00:00
|
|
|
tests:
|
|
|
|
test_items:
|
2017-08-12 18:54:33 +00:00
|
|
|
- flag: "--insecure-port"
|
2017-05-26 09:25:29 +00:00
|
|
|
compare:
|
|
|
|
op: eq
|
|
|
|
value: 0
|
|
|
|
set: true
|
|
|
|
|
2017-08-12 18:54:33 +00:00
|
|
|
- id: 3
|
|
|
|
text: "flag value is greater than or equal some number"
|
2017-05-26 09:25:29 +00:00
|
|
|
tests:
|
|
|
|
test_items:
|
2017-08-12 18:54:33 +00:00
|
|
|
- flag: "--audit-log-maxage"
|
2017-05-26 09:25:29 +00:00
|
|
|
compare:
|
|
|
|
op: gte
|
|
|
|
value: 30
|
|
|
|
set: true
|
|
|
|
|
2017-08-12 18:54:33 +00:00
|
|
|
- id: 4
|
|
|
|
text: "flag value is less than some number"
|
2017-05-26 09:25:29 +00:00
|
|
|
tests:
|
|
|
|
test_items:
|
|
|
|
- flag: "--max-backlog"
|
|
|
|
compare:
|
|
|
|
op: lt
|
|
|
|
value: 30
|
|
|
|
set: true
|
|
|
|
|
2017-08-12 18:54:33 +00:00
|
|
|
- id: 5
|
|
|
|
text: "flag value does not have some value"
|
2017-05-26 09:25:29 +00:00
|
|
|
tests:
|
|
|
|
test_items:
|
2017-08-12 18:54:33 +00:00
|
|
|
- flag: "--admission-control"
|
2017-05-26 09:25:29 +00:00
|
|
|
compare:
|
|
|
|
op: nothave
|
|
|
|
value: AlwaysAdmit
|
|
|
|
set: true
|
|
|
|
|
2017-08-12 18:54:33 +00:00
|
|
|
- id: 6
|
|
|
|
text: "test AND binary operation"
|
2017-05-26 09:25:29 +00:00
|
|
|
tests:
|
|
|
|
bin_op: and
|
|
|
|
test_items:
|
|
|
|
- flag: "--kubelet-client-certificate"
|
|
|
|
set: true
|
|
|
|
- flag: "--kubelet-clientkey"
|
|
|
|
set: true
|
|
|
|
|
2017-08-12 18:54:33 +00:00
|
|
|
- id: 7
|
|
|
|
text: "test OR binary operation"
|
2017-05-26 09:25:29 +00:00
|
|
|
tests:
|
|
|
|
bin_op: or
|
|
|
|
test_items:
|
2017-08-12 18:54:33 +00:00
|
|
|
- flag: "--secure-port"
|
2017-05-26 09:25:29 +00:00
|
|
|
compare:
|
|
|
|
op: eq
|
|
|
|
value: 0
|
|
|
|
set: true
|
|
|
|
-
|
|
|
|
flag: "--secure-port"
|
|
|
|
set: false
|
|
|
|
|
2017-08-12 18:54:33 +00:00
|
|
|
- id: 8
|
|
|
|
text: "test flag with arbitrary text"
|
2017-05-26 09:25:29 +00:00
|
|
|
tests:
|
|
|
|
test_items:
|
|
|
|
- flag: "644"
|
2017-07-24 17:30:13 +00:00
|
|
|
compare:
|
|
|
|
op: eq
|
2017-08-12 18:54:33 +00:00
|
|
|
value: "644"
|
2017-07-24 17:30:13 +00:00
|
|
|
set: true
|