UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 911481f2 authored by Chris Harden's avatar Chris Harden Committed by Robert Massey
Browse files

Fix automountServiceAccountToken to allow SAs to be wildcarded

parent ef89aebc
No related branches found
No related tags found
1 merge request!129Fix automountServiceAccountToken to allow SAs to be wildcarded
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
Format: [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) Format: [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
--- ---
## [3.0.4-bb.20] - 2024-01-25
### Changed
- Fixed issue with kyverno policy related to wildcarding serviceAccounts in the automountServiceAccountToken clusterPolicy
## [3.0.4-bb.19] - 2024-01-19 ## [3.0.4-bb.19] - 2024-01-19
### Changed ### Changed
- ironbank/opensource/kubernetes/kubectl updated from v1.28.4 to v1.28.6 - ironbank/opensource/kubernetes/kubectl updated from v1.28.4 to v1.28.6
......
# kyverno-policies # kyverno-policies
![Version: 3.0.4-bb.19](https://img.shields.io/badge/Version-3.0.4--bb.19-informational?style=flat-square) ![AppVersion: v1.11.0](https://img.shields.io/badge/AppVersion-v1.11.0-informational?style=flat-square) ![Version: 3.0.4-bb.20](https://img.shields.io/badge/Version-3.0.4--bb.20-informational?style=flat-square) ![AppVersion: v1.11.0](https://img.shields.io/badge/AppVersion-v1.11.0-informational?style=flat-square)
Collection of Kyverno security and best-practice policies for Kyverno Collection of Kyverno security and best-practice policies for Kyverno
......
apiVersion: v2 apiVersion: v2
name: kyverno-policies name: kyverno-policies
version: 3.0.4-bb.19 version: 3.0.4-bb.20
appVersion: v1.11.0 appVersion: v1.11.0
icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png
description: Collection of Kyverno security and best-practice policies for Kyverno description: Collection of Kyverno security and best-practice policies for Kyverno
......
...@@ -58,7 +58,6 @@ spec: ...@@ -58,7 +58,6 @@ spec:
match: match:
any: any:
{{- range $v := (dig $name "namespaces" nil .Values.policies) }} {{- range $v := (dig $name "namespaces" nil .Values.policies) }}
{{- if (dig "serviceAccounts" false .) }}
- resources: - resources:
kinds: kinds:
- ServiceAccount - ServiceAccount
...@@ -69,7 +68,6 @@ spec: ...@@ -69,7 +68,6 @@ spec:
- {{ . }} - {{ . }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }}
mutate: mutate:
patchStrategicMerge: patchStrategicMerge:
automountServiceAccountToken: false automountServiceAccountToken: false
...@@ -148,4 +146,4 @@ spec: ...@@ -148,4 +146,4 @@ spec:
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment