From 85f0c770ad8792b2371207403eabedfb701730c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Rodr=C3=ADguez=20Hern=C3=A1ndez?= Date: Tue, 10 Dec 2024 21:23:56 +0100 Subject: [PATCH] [bitnami/spark] Detect non-standard images (#30947) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [bitnami/spark] Detect non-standard images Signed-off-by: Carlos Rodríguez Hernández * Modify NOTES.txt Signed-off-by: Carlos Rodríguez Hernández * Update CHANGELOG.md Signed-off-by: Bitnami Containers * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers --------- Signed-off-by: Carlos Rodríguez Hernández Signed-off-by: Bitnami Containers Co-authored-by: Bitnami Containers --- bitnami/spark/CHANGELOG.md | 8 ++++++-- bitnami/spark/Chart.lock | 6 +++--- bitnami/spark/Chart.yaml | 2 +- bitnami/spark/README.md | 19 ++++++++++++------- bitnami/spark/templates/NOTES.txt | 3 ++- bitnami/spark/values.yaml | 5 +++++ 6 files changed, 29 insertions(+), 14 deletions(-) diff --git a/bitnami/spark/CHANGELOG.md b/bitnami/spark/CHANGELOG.md index d4d2f7e5512b71..491d6c1652578a 100644 --- a/bitnami/spark/CHANGELOG.md +++ b/bitnami/spark/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog -## 9.2.14 (2024-11-08) +## 9.3.0 (2024-12-10) -* [bitnami/spark] Unify seLinuxOptions default value ([#30326](https://github.com/bitnami/charts/pull/30326)) +* [bitnami/spark] Detect non-standard images ([#30947](https://github.com/bitnami/charts/pull/30947)) + +## 9.2.14 (2024-11-08) + +* [bitnami/spark] Unify seLinuxOptions default value (#30326) ([f47256e](https://github.com/bitnami/charts/commit/f47256e1c1d90eecb1850ca453568e9c8990ea5c)), closes [#30326](https://github.com/bitnami/charts/issues/30326) ## 9.2.13 (2024-11-04) diff --git a/bitnami/spark/Chart.lock b/bitnami/spark/Chart.lock index 1473c73f98066c..110eee0703ff16 100644 --- a/bitnami/spark/Chart.lock +++ b/bitnami/spark/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: common repository: oci://registry-1.docker.io/bitnamicharts - version: 2.26.0 -digest: sha256:5ff7837915aef0067bd32271ee2b10c990774c16c4b6fe0a7c5eb6e53530ce08 -generated: "2024-11-04T11:34:59.496712244Z" + version: 2.28.0 +digest: sha256:5b30f0fa07bb89b01c55fd6258c8ce22a611b13623d4ad83e8fdd1d4490adc74 +generated: "2024-12-10T17:29:59.833241+01:00" diff --git a/bitnami/spark/Chart.yaml b/bitnami/spark/Chart.yaml index faaab8701ce190..bc808061935730 100644 --- a/bitnami/spark/Chart.yaml +++ b/bitnami/spark/Chart.yaml @@ -27,4 +27,4 @@ maintainers: name: spark sources: - https://github.com/bitnami/charts/tree/main/bitnami/spark -version: 9.2.14 +version: 9.3.0 diff --git a/bitnami/spark/README.md b/bitnami/spark/README.md index ff5cae76bd9a28..c9300a6b221c65 100644 --- a/bitnami/spark/README.md +++ b/bitnami/spark/README.md @@ -177,13 +177,14 @@ As an alternative, you can use the preset configurations for pod affinity, pod a ### Global parameters -| Name | Description | Value | -| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | -| `global.imageRegistry` | Global Docker image registry | `""` | -| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` | -| `global.defaultStorageClass` | Global default StorageClass for Persistent Volume(s) | `""` | -| `global.storageClass` | DEPRECATED: use global.defaultStorageClass instead | `""` | -| `global.compatibility.openshift.adaptSecurityContext` | Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation) | `auto` | +| Name | Description | Value | +| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | +| `global.imageRegistry` | Global Docker image registry | `""` | +| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` | +| `global.defaultStorageClass` | Global default StorageClass for Persistent Volume(s) | `""` | +| `global.storageClass` | DEPRECATED: use global.defaultStorageClass instead | `""` | +| `global.security.allowInsecureImages` | Allows skipping image verification | `false` | +| `global.compatibility.openshift.adaptSecurityContext` | Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation) | `auto` | ### Common parameters @@ -511,6 +512,10 @@ Find more information about how to deal with common errors related to Bitnami's ## Upgrading +### To 9.3.0 + +This version introduces image verification for security purposes. To disable it, set `global.security.allowInsecureImages` to `true`. More details at [GitHub issue](https://github.com/bitnami/charts/issues/30850). + ### To 9.0.0 This major bump changes the following security defaults: diff --git a/bitnami/spark/templates/NOTES.txt b/bitnami/spark/templates/NOTES.txt index 9b13dd10091391..adc156eaa97722 100644 --- a/bitnami/spark/templates/NOTES.txt +++ b/bitnami/spark/templates/NOTES.txt @@ -103,4 +103,5 @@ In order to replicate the container startup scripts execute this command: {{ include "spark.checkRollingTags" . }} {{ include "spark.validateValues" . }} {{- include "common.warnings.resources" (dict "sections" (list "master" "security.ssl" "worker") "context" $) }} -{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.image) "context" $) }} \ No newline at end of file +{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.image) "context" $) }} +{{- include "common.errors.insecureImages" (dict "images" (list .Values.image) "context" $) }} diff --git a/bitnami/spark/values.yaml b/bitnami/spark/values.yaml index a292dcf14616e4..9f0195e2fa3587 100644 --- a/bitnami/spark/values.yaml +++ b/bitnami/spark/values.yaml @@ -21,6 +21,11 @@ global: imagePullSecrets: [] defaultStorageClass: "" storageClass: "" + ## Security parameters + ## + security: + ## @param global.security.allowInsecureImages Allows skipping image verification + allowInsecureImages: false ## Compatibility adaptations for Kubernetes platforms ## compatibility: