mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-08-23 22:26:34 +00:00
* add more mutations * fix tests * add more test cases * Update insecureCapabilities.yaml * Update dangerousCapabilities.yaml * fix tests * fix tests * add pullPolicyNotAlways as default mutation
32 lines
815 B
YAML
32 lines
815 B
YAML
successMessage: Container does not have any dangerous capabilities
|
|
failureMessage: Container should not have dangerous capabilities
|
|
category: Security
|
|
target: Container
|
|
schema:
|
|
'$schema': http://json-schema.org/draft-07/schema
|
|
type: object
|
|
properties:
|
|
securityContext:
|
|
type: object
|
|
properties:
|
|
capabilities:
|
|
type: object
|
|
properties:
|
|
add:
|
|
type: array
|
|
allOf:
|
|
- not:
|
|
contains:
|
|
pattern: '^(?i)ALL$'
|
|
- not:
|
|
contains:
|
|
pattern: '^(?i)SYS_ADMIN$'
|
|
- not:
|
|
contains:
|
|
pattern: '^(?i)NET_ADMIN$'
|
|
|
|
|
|
mutations:
|
|
- op: remove
|
|
path: /securityContext/capabilities
|