-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add csp-rule-template asset type (#276)
- Loading branch information
Showing
4 changed files
with
35 additions
and
0 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
22 changes: 22 additions & 0 deletions
22
test/packages/good/kibana/csp_rule_template/good-csp-rule-template-abc-1.json
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,22 @@ | ||
{ | ||
"attributes": { | ||
"benchmark_rule_id": "1.1.1", | ||
"rego_rule_id": "cis_k8s.cis_1_1_1", | ||
"name": "Ensure that the API server pod specification file permissions are set to 644 or more restrictive (Automated)", | ||
"description": "'Disable anonymous requests to the API server", | ||
"rationale": "When enabled, requests that are not rejected by other configured authentication methods\nare treated as anonymous requests. These requests are then served by the API server. You\nshould rely on authentication to authorize access and disallow anonymous requests.\nIf you are using RBAC authorization, it is generally considered reasonable to allow\nanonymous access to the API Server for health checks and discovery purposes, and hence\nthis recommendation is not scored. However, you should consider whether anonymous\ndiscovery is an acceptable risk for your purposes.", | ||
"impact": "Anonymous requests will be rejected.", | ||
"default_value": "By default, anonymous access is enabled.", | ||
"remediation": "Edit the API server pod specification file /etc/kubernetes/manifests/kubeapiserver.yaml on the master node and set the below parameter.\n--anonymous-auth=false", | ||
"enabled": true, | ||
"muted": false, | ||
"tags": [ | ||
"Kubernetes", | ||
"Containers" | ||
], | ||
"benchmark": { "name": "CIS Kubernetes", "version": "1.4.1" }, | ||
"severity": "low" | ||
}, | ||
"id": "good-csp-rule-template-abc-1", | ||
"type": "csp-rule-template" | ||
} |
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