-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs and refactors for better
kubescape
scanning of BB example (#80)
- Loading branch information
1 parent
e2ee947
commit 6cb3958
Showing
4 changed files
with
122 additions
and
29 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,93 @@ | ||
[ | ||
{ | ||
"name": "ignore-allowed-hostpath", | ||
"policyType": "postureExceptionPolicy", | ||
"actions": [ | ||
"alertOnly" | ||
], | ||
"resources": [ | ||
{ | ||
"designatorType": "Attributes", | ||
"attributes": { | ||
"kind": "DaemonSet", | ||
"name": "logging-fluent-bit" | ||
} | ||
} | ||
], | ||
"posturePolicies": [ | ||
{ | ||
"frameworkName": "NSA", | ||
"ruleName": "alert-rw-hostpath" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "ignore-applications-credentials-in-configuration-files", | ||
"policyType": "postureExceptionPolicy", | ||
"actions": [ | ||
"alertOnly" | ||
], | ||
"resources": [ | ||
{ | ||
"designatorType": "Attributes", | ||
"attributes": { | ||
"kind": "ConfigMap", | ||
"name": "istio-ca-root-cert" | ||
} | ||
}, | ||
{ | ||
"designatorType": "Attributes", | ||
"attributes": { | ||
"kind": "ConfigMap", | ||
"name": "kube-root-ca.crt" | ||
} | ||
}, | ||
{ | ||
"designatorType": "Attributes", | ||
"attributes": { | ||
"kind": "Deployment", | ||
"name": "istiod" | ||
} | ||
}, | ||
{ | ||
"designatorType": "Attributes", | ||
"attributes": { | ||
"kind": "Deployment", | ||
"name": "public-ingressgateway" | ||
} | ||
}, | ||
{ | ||
"designatorType": "Attributes", | ||
"attributes": { | ||
"kind": "StatefulSet", | ||
"name": "logging-ek-es-data" | ||
} | ||
}, | ||
{ | ||
"designatorType": "Attributes", | ||
"attributes": { | ||
"kind": "StatefulSet", | ||
"name": "logging-ek-es-master" | ||
} | ||
}, | ||
// This one doesn't work yet | ||
{ | ||
"designatorType": "Attributes", | ||
"attributes": { | ||
"kind": "ConfigMap", | ||
"name": "common-.*" | ||
} | ||
} | ||
], | ||
"posturePolicies": [ | ||
{ | ||
"frameworkName": "NSA", | ||
"ruleName": "rule-credentials-configmap" | ||
}, | ||
{ | ||
"frameworkName": "NSA", | ||
"ruleName": "rule-credentials-in-env-var" | ||
} | ||
] | ||
} | ||
] |
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