-
Notifications
You must be signed in to change notification settings - Fork 3
Fix/podspec enable name handling #13
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
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 |
|---|---|---|
|
|
@@ -80,4 +80,4 @@ affinity: | |
| tolerations: | ||
| {{- toYaml . | nindent 2 }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,10 @@ | ||
| {{- define "common.serviceaccount.tpl" -}} | ||
| {{- if .Values.serviceAccount.create -}} | ||
| {{- if .Values.serviceAccount }} | ||
| --- | ||
| apiVersion: v1 | ||
| kind: ServiceAccount | ||
| metadata: | ||
| name: {{ .Values.serviceAccount.name | default (include "onechart.fullname" .) }} | ||
| name: {{ .Values.serviceAccount }} | ||
| namespace: {{ .Release.Namespace }} | ||
| labels: | ||
| {{- include "onechart.labels" . | nindent 4 }} | ||
| {{- end }} | ||
| {{- end -}} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| dependencies: | ||
| - name: common | ||
| repository: file://../common | ||
| version: 0.8.0 | ||
| digest: sha256:ffc064a8d35b9d9d6e48490b41d0caef00096b0c8f9d1b773dfd9380efdff440 | ||
| generated: "2026-02-06T16:56:07.364305478+07:00" | ||
| version: 0.9.0 | ||
| digest: sha256:c691781bff5490003ec6b84de1a1f71ab89d193325e5f5fe1c83b8c1398e2273 | ||
| generated: "2026-02-09T14:46:51.755970924+07:00" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,9 +15,9 @@ type: application | |
| # This is the chart version. This version number should be incremented each time you make changes | ||
| # to the chart and its templates, including the app version. | ||
| # Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
| version: 0.78.0 | ||
| version: 0.77.0 | ||
|
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. The chart version has been decremented from version: 0.79.0 |
||
|
|
||
| dependencies: | ||
| - name: common | ||
| version: 0.8.0 | ||
| version: 0.9.0 | ||
| repository: file://../common | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| dependencies: | ||
| - name: common | ||
| repository: file://../common | ||
| version: 0.8.0 | ||
| digest: sha256:ffc064a8d35b9d9d6e48490b41d0caef00096b0c8f9d1b773dfd9380efdff440 | ||
| generated: "2026-02-06T14:23:44.297299351+07:00" | ||
| version: 0.9.0 | ||
| digest: sha256:c691781bff5490003ec6b84de1a1f71ab89d193325e5f5fe1c83b8c1398e2273 | ||
| generated: "2026-02-09T14:47:43.892718793+07:00" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,9 +15,9 @@ type: application | |
| # This is the chart version. This version number should be incremented each time you make changes | ||
| # to the chart and its templates, including the app version. | ||
| # Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
| version: 0.78.0 | ||
| version: 0.77.0 | ||
|
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. The chart version has been decremented from version: 0.79.0 |
||
|
|
||
| dependencies: | ||
| - name: common | ||
| version: 0.8.0 | ||
| version: 0.9.0 | ||
| repository: file://../common | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1225,6 +1225,14 @@ | |||||
| } | ||||||
| ] | ||||||
| } | ||||||
| }, | ||||||
| "serviceAccount": { | ||||||
| "$id": "#/properties/serviceAccount", | ||||||
| "type": "string", | ||||||
| "title": "The name of service account", | ||||||
| "description": "Name of the Kubernetes ServiceAccount to associate with this workload. If not specified, the chart will automatically create one.", | ||||||
|
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. The description for
Suggested change
|
||||||
| "default": "", | ||||||
| "examples": [] | ||||||
| } | ||||||
| }, | ||||||
| "additionalProperties": true | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| dependencies: | ||
| - name: common | ||
| repository: file://../common | ||
| version: 0.8.0 | ||
| digest: sha256:ffc064a8d35b9d9d6e48490b41d0caef00096b0c8f9d1b773dfd9380efdff440 | ||
| generated: "2026-02-06T16:56:24.024306149+07:00" | ||
| version: 0.9.0 | ||
| digest: sha256:c691781bff5490003ec6b84de1a1f71ab89d193325e5f5fe1c83b8c1398e2273 | ||
| generated: "2026-02-09T15:31:53.899987212+07:00" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,9 +14,9 @@ type: application | |
| # This is the chart version. This version number should be incremented each time you make changes | ||
| # to the chart and its templates, including the app version. | ||
| # Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
| version: 0.78.0 | ||
| version: 0.77.0 | ||
|
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. The chart version has been decremented from version: 0.79.0 |
||
|
|
||
| dependencies: | ||
| - name: common | ||
| version: 0.8.0 | ||
| version: 0.9.0 | ||
| repository: file://../common | ||
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.
A YAML injection vulnerability exists here as the user-provided value
.Values.serviceAccountis rendered directly without quoting, potentially allowing for malicious metadata injection. It is critical to use thequotefunction to prevent this. Furthermore, the currentServiceAccountcreation logic in this block introduces a regression by removing the ability to use existingServiceAccountsand omitting standard labels, which are essential for resource management.