-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sensor | clusterrole | add resources and verbs #340
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{{- if .Values.container.enabled }} | ||
{{- if or .Values.container.enabled (and .Values.node.enabled .Values.node.cdpRolesEnabled)}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
|
@@ -8,14 +8,34 @@ metadata: | |
app.kubernetes.io/name: {{ include "falcon-sensor.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{ if .Values.container.enabled }} | ||
app.kubernetes.io/component: "container_sensor" | ||
{{ else if (and .Values.node.enabled .Values.node.cdpRolesEnabled)}} | ||
app.kubernetes.io/component: "kernel_sensor" | ||
{{ end }} | ||
crowdstrike.com/provider: crowdstrike | ||
helm.sh/chart: {{ include "falcon-sensor.chart" . }} | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- secrets | ||
{{- if and .Values.node.enabled .Values.node.cdpRolesEnabled }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Checked other resources that we create;
|
||
- pods | ||
- services | ||
- nodes | ||
- daemonsets | ||
- replicasets | ||
- deployments | ||
- jobs | ||
- ingresses | ||
- cronjobs | ||
- persistentvolumes | ||
{{- end }} | ||
verbs: | ||
- get | ||
{{- if and .Values.node.enabled .Values.node.cdpRolesEnabled }} | ||
- watch | ||
- list | ||
{{- end }} | ||
{{- end }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,6 +104,9 @@ node: | |
postDelete: | ||
enabled: true | ||
|
||
# When enabled, Cloud data protection module is enabled | ||
cdpRolesEnabled: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If data protection is not a separate sku, why are we adding this boolean? Permissions should be applied by default. |
||
|
||
container: | ||
# When enabled, Helm chart deploys the Falcon Container Sensor to Pods through Webhooks | ||
enabled: false | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is
secrets
required bycdp
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes