Skip to content
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

fix: Correct key settings.allowPrivilegeEscalation #431

Merged
merged 2 commits into from
Apr 18, 2024
Merged
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/kubewarden-defaults/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ questions:
Number of replicas of the PolicyServer Deployment
group: "Default PolicyServer HA"
# no-privilege-escalation policy settings
- variable: recommendedPolicies.allowPrivilegeEscalationPolicy.settings.default_allow_privilege_escalation
- variable: recommendedPolicies.allowPrivilegeEscalationPolicy.settings.allowPrivilegeEscalation
description: >-
This policy works by inspecting the containers and init containers of a Pod.
If any of these containers have `allowPrivilegeEscalation` enabled, the Pod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ spec:
operations: ["CREATE"] # kubernetes doesn't allow to add/remove privileged containers to an already running pod
mutating: true
settings:
{{- toYaml .Values.recommendedPolicies.allowPrivilegeEscalationPolicy.settings | replace "|\n" "" | nindent 2 }}
{{- toYaml .Values.recommendedPolicies.allowPrivilegeEscalationPolicy.settings | replace "|\n" "" | nindent 4 }}
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
- UPDATE
mutating: true
settings:
{{- toYaml .Values.recommendedPolicies.capabilitiesPolicy.settings | replace "|\n" "" | nindent 2 }}
{{- toYaml .Values.recommendedPolicies.capabilitiesPolicy.settings | replace "|\n" "" | nindent 4 }}
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
- UPDATE
mutating: false
settings:
{{- toYaml .Values.recommendedPolicies.hostNamespacePolicy.settings | replace "|\n" "" | nindent 2 }}
{{- toYaml .Values.recommendedPolicies.hostNamespacePolicy.settings | replace "|\n" "" | nindent 4 }}
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
- UPDATE
mutating: false
settings:
{{- toYaml .Values.recommendedPolicies.hostPathsPolicy.settings | replace "|\n" "" | nindent 2 }}
{{- toYaml .Values.recommendedPolicies.hostPathsPolicy.settings | replace "|\n" "" | nindent 4 }}
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ spec:
operations: ["CREATE", "UPDATE"]
mutating: false
settings:
{{- toYaml .Values.recommendedPolicies.podPrivilegedPolicy.settings | replace "|\n" "" | nindent 2 }}
{{- toYaml .Values.recommendedPolicies.podPrivilegedPolicy.settings | replace "|\n" "" | nindent 4 }}
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ spec:
operations: ["CREATE"] # kubernetes doesn't allow to add/remove privileged containers to an already running pod
mutating: true
settings:
{{- toYaml .Values.recommendedPolicies.userGroupPolicy.settings | replace "|\n" "" | nindent 2 }}
{{- toYaml .Values.recommendedPolicies.userGroupPolicy.settings | replace "|\n" "" | nindent 4 }}
{{ end }}
2 changes: 1 addition & 1 deletion charts/kubewarden-defaults/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ recommendedPolicies:
tag: v0.2.6
name: "no-privilege-escalation"
settings:
default_allow_privilege_escalation: false
allowPrivilegeEscalation: false
hostNamespacePolicy:
module:
repository: "kubewarden/policies/host-namespaces-psp"
Expand Down
Loading