-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1590 from PhilipGough/kubescape-1
Document security audit exceptions for node-exporter
- Loading branch information
Showing
4 changed files
with
43 additions
and
2 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,11 @@ | ||
## Security | ||
|
||
The manifests generated in this repository are subject to a security audit in CI via [kubescape](https://github.com/armosec/kubescape). | ||
The scan can be run locally via `make kubescape`. | ||
|
||
While we aim for best practices in terms of security by default, due to the nature of the project, we are required to make the exceptions in the following components: | ||
|
||
#### node-exporter | ||
* Host Port is set. https://hub.armo.cloud/docs/c-0044 is not relevant since node-exporter is considered as a core platform component running as a DaemonSet. | ||
* Host PID is set to `true`, since node-exporter requires direct access to the host namespace to gather statistics. | ||
* Host Network is set to `true`, since node-exporter requires direct access to the host network to gather statistics. |
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,29 @@ | ||
[ | ||
{ | ||
"name": "exclude-node-exporter-host-access-checks", | ||
"policyType": "postureExceptionPolicy", | ||
"actions": [ | ||
"alertOnly" | ||
], | ||
"resources": [ | ||
{ | ||
"designatorType": "Attributes", | ||
"attributes": { | ||
"kind": "DaemonSet", | ||
"name": "node-exporter" | ||
} | ||
} | ||
], | ||
"posturePolicies": [ | ||
{ | ||
"controlName": "Container hostPort" | ||
}, | ||
{ | ||
"controlName": "Host PID/IPC privileges" | ||
}, | ||
{ | ||
"controlName": "HostNetwork access" | ||
} | ||
] | ||
} | ||
] |