Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/shield/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
- name: mavimo
email: marcovito.moscaritolo@sysdig.com
type: application
version: 1.23.4
version: 1.24.2
appVersion: "1.0.0"
1 change: 1 addition & 0 deletions charts/shield/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ The following table lists the configurable parameters of the `shield` chart and
| features.detections.kubernetes_audit.http_port | The port that will be used to expose the audit endpoints | <code>6443</code> |
| features.detections.kubernetes_audit.excluded_namespaces | The list of namespaces that will be excluded from the audit feature | <code>[]</code> |
| features.detections.kubernetes_audit.webhook_rules | List of rules used to determine if a request should be audited | <code>[{"apiGroups":["","apps","autoscaling","batch","networking.k8s.io","rbac.authorization.k8s.io","extensions"],"apiVersions":["*"],"operations":["*"],"resources":["*/*"],"scope":"*"}]</code> |
| features.detections.file_integrity_monitoring.enabled | | <code>false</code> |
| features.investigations.activity_audit.enabled | | <code>false</code> |
| features.investigations.live_logs.enabled | | <code>false</code> |
| features.investigations.network_security.enabled | Enable the network security feature | <code>false</code> |
Expand Down
2 changes: 1 addition & 1 deletion charts/shield/templates/host/_configmap_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{{- end }}

{{- define "host.configmap.detections" }}
{{- dict "detections" (pick . "ml_policies") | toYaml }}
{{- dict "detections" (pick . "ml_policies" "file_integrity_monitoring") | toYaml }}
{{- end }}

{{/* Generate the 'host_shield_config.yaml' content */}}
Expand Down
55 changes: 55 additions & 0 deletions charts/shield/tests/host/configmap-host-shield-config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ tests:
pattern: |
features:
detections:
file_integrity_monitoring:
enabled: false
ml_policies:
enabled: false
posture:
Expand Down Expand Up @@ -50,6 +52,8 @@ tests:
pattern: |
features:
detections:
file_integrity_monitoring:
enabled: false
ml_policies:
enabled: false
posture:
Expand Down Expand Up @@ -79,6 +83,8 @@ tests:
pattern: |
features:
detections:
file_integrity_monitoring:
enabled: false
ml_policies:
enabled: false
posture:
Expand Down Expand Up @@ -108,6 +114,8 @@ tests:
pattern: |
features:
detections:
file_integrity_monitoring:
enabled: false
ml_policies:
enabled: false
posture:
Expand Down Expand Up @@ -137,6 +145,8 @@ tests:
pattern: |
features:
detections:
file_integrity_monitoring:
enabled: false
ml_policies:
enabled: false
posture:
Expand All @@ -161,6 +171,8 @@ tests:
pattern: |
features:
detections:
file_integrity_monitoring:
enabled: false
ml_policies:
enabled: false
posture:
Expand Down Expand Up @@ -193,6 +205,8 @@ tests:
pattern: |-
features:
detections:
file_integrity_monitoring:
enabled: false
ml_policies:
enabled: false
posture:
Expand Down Expand Up @@ -224,6 +238,8 @@ tests:
pattern: |-
features:
detections:
file_integrity_monitoring:
enabled: false
ml_policies:
enabled: false
posture:
Expand Down Expand Up @@ -271,6 +287,8 @@ tests:
pattern: |-
features:
detections:
file_integrity_monitoring:
enabled: false
ml_policies:
enabled: false
posture:
Expand Down Expand Up @@ -339,6 +357,8 @@ tests:
pattern: |-
features:
detections:
file_integrity_monitoring:
enabled: false
ml_policies:
enabled: false
posture:
Expand Down Expand Up @@ -427,6 +447,8 @@ tests:
pattern: |-
features:
detections:
file_integrity_monitoring:
enabled: false
ml_policies:
enabled: false
posture:
Expand Down Expand Up @@ -457,6 +479,8 @@ tests:
pattern: |-
features:
detections:
file_integrity_monitoring:
enabled: false
ml_policies:
enabled: true
posture:
Expand All @@ -474,6 +498,37 @@ tests:
enabled: false
integration_enabled: false

- it: Enable File Integrity Monitoring
set:
features:
detections:
file_integrity_monitoring:
enabled: true
asserts:
- matchRegex:
path: data['host-shield.yaml']
pattern: |-
features:
detections:
file_integrity_monitoring:
enabled: true
ml_policies:
enabled: false
posture:
host_posture:
enabled: false
respond:
rapid_response:
enabled: false
response_actions:
enabled: false
vulnerability_management:
host_vulnerability_management:
enabled: false
in_use:
enabled: false
integration_enabled: false

- it: Ensure Local Forwarder
set:
features:
Expand Down
13 changes: 13 additions & 0 deletions charts/shield/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,9 @@
},
"kubernetes_audit": {
"$ref": "#/$defs/FeatureGroupDetections/$defs/KubernetesAudit"
},
"file_integrity_monitoring": {
"$ref": "#/$defs/FeatureGroupDetections/$defs/FileIntegrityMonitoring"
}
},
"$defs": {
Expand Down Expand Up @@ -972,6 +975,16 @@
]
}
}
},
"FileIntegrityMonitoring": {
"type": "object",
"additionalProperties": true,
"properties": {
"enabled": {
"type": "boolean",
"description": "Specify if the File Integrity Monitoring feature is enabled"
}
}
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions charts/shield/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ features:
resources:
- '*/*'
scope: '*'
file_integrity_monitoring:
enabled: false

investigations:
activity_audit:
Expand Down
Loading