Skip to content

Commit 7e2e48d

Browse files
migruiz4Bitnami Containers
and
Bitnami Containers
authored
[bitnami/nessie] Set usePasswordFiles=true by default (#32114)
* [bitnami/nessie] Set `usePasswordFiles=true` by default Signed-off-by: Miguel Ruiz <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <[email protected]> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <[email protected]> * Fix typo Signed-off-by: Miguel Ruiz <[email protected]> * Fix typo Signed-off-by: Miguel Ruiz <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <[email protected]> * Bump major after value rename Signed-off-by: Miguel Ruiz <[email protected]> * Update README.md Signed-off-by: Miguel Ruiz <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <[email protected]> --------- Signed-off-by: Miguel Ruiz <[email protected]> Signed-off-by: Bitnami Containers <[email protected]> Co-authored-by: Bitnami Containers <[email protected]>
1 parent b8f8bf3 commit 7e2e48d

File tree

8 files changed

+33
-22
lines changed

8 files changed

+33
-22
lines changed

.vib/nessie/goss/goss.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ command:
3232
exit-status: 0
3333
stdout:
3434
- /QUARKUS_LOG_LEVEL.*{{ .Vars.configOverrides.quarkus.log.level }}/
35-
{{- if not .Vars.usePasswordFile }}
35+
{{- if not .Vars.usePasswordFiles }}
3636
# The secret configuration should be set via env
3737
- /QUARKUS_LOG_FILE_LEVEL.*{{ .Vars.secretConfigOverrides.quarkus.log.file.level }}/
3838
{{- end }}
3939

40-
{{- if .Vars.usePasswordFile }}
40+
{{- if .Vars.usePasswordFiles }}
4141
# The secret configuration should be mounted as a file
4242
file:
4343
/bitnami/nessie/secrets/configuration/QUARKUS_LOG_FILE_LEVEL:

.vib/nessie/runtime-parameters.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ containerSecurityContext:
88
containerPorts:
99
http: 6555
1010
management: 8078
11-
usePasswordFile: true
11+
usePasswordFiles: true
1212
configOverrides:
1313
quarkus:
1414
log:

bitnami/nessie/CHANGELOG.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Changelog
22

3-
## 1.2.1 (2025-02-24)
3+
## 2.0.0 (2025-03-13)
44

5-
* [bitnami/nessie] Release 1.2.1 ([#32144](https://github.com/bitnami/charts/pull/32144))
5+
* [bitnami/nessie] Set `usePasswordFiles=true` by default ([#32114](https://github.com/bitnami/charts/pull/32114))
6+
7+
## <small>1.2.1 (2025-02-24)</small>
8+
9+
* [bitnami/nessie] Release 1.2.1 (#32144) ([6af5812](https://github.com/bitnami/charts/commit/6af5812bc806e92231e61f263b3da77017661199)), closes [#32144](https://github.com/bitnami/charts/issues/32144)
610

711
## 1.2.0 (2025-02-20)
812

bitnami/nessie/Chart.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ maintainers:
3636
url: https://github.com/bitnami/charts
3737
name: nessie
3838
sources:
39-
- https://github.com/bitnami/charts/tree/main/bitnami/nessie
40-
- https://github.com/bitnami/containers/tree/main/bitnami/nessie
41-
- https://github.com/nessie/nessie
42-
version: 1.2.1
39+
- https://github.com/bitnami/charts/tree/main/bitnami/nessie
40+
- https://github.com/bitnami/containers/tree/main/bitnami/nessie
41+
- https://github.com/nessie/nessie
42+
version: 2.0.0

bitnami/nessie/README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ wrj2wDbCDCFmfqnSJ+dKI3vFLlEz44sAV8jX/kd4Y6ZTQhlLbYc=
361361
| `deploymentLabels` | Add extra labels to the Deployment object | `{}` |
362362
| `deploymentAnnotations` | Add extra annotations to the Deployment object | `{}` |
363363
| `logLevel` | Set application log level | `INFO` |
364-
| `usePasswordFile` | Mount all sensitive information as files | `true` |
364+
| `usePasswordFiles` | Mount all sensitive information as files | `true` |
365365
| `versionStoreType` | Set version store type. The chart natively supports JDBC_POSTGRESQL, ROCKSDB and IN_MEMORY. Any other type requires you to add the configuration in configOverrides and secretConfigOverrides. | `JDBC_POSTGRESQL` |
366366
| `livenessProbe.enabled` | Enable livenessProbe on nessie containers | `true` |
367367
| `livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `10` |
@@ -622,6 +622,10 @@ Find more information about how to deal with common errors related to Bitnami's
622622

623623
## Upgrading
624624

625+
### To 2.0.0
626+
627+
Value `usePasswordFile` has been renamed as `usePasswordFiles` to be aligned with the rest of the catalog. Its default value has changed from `false` to `true`.
628+
625629
### To 1.1.0
626630

627631
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).
@@ -644,4 +648,4 @@ Unless required by applicable law or agreed to in writing, software
644648
distributed under the License is distributed on an "AS IS" BASIS,
645649
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
646650
See the License for the specific language governing permissions and
647-
limitations under the License.
651+
limitations under the License.

bitnami/nessie/templates/_helpers.tpl

+7-4
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ Return the volume-permissions init container
250250
. /opt/bitnami/scripts/libpostgresql.sh
251251
. /opt/bitnami/scripts/postgresql-env.sh
252252

253-
{{- if .Values.usePasswordFile }}
254-
export DATABASE_PASSWORD="$(< "/bitnami/nessie/secrets/database/QUARKUS_DATASOURCE_POSTGRESQL_PASSWORD")"
253+
{{- if .Values.usePasswordFiles }}
254+
export DATABASE_PASSWORD="$(< $DATABASE_PASSWORD_FILE)"
255255
{{- end }}
256256
info "Waiting for host $DATABASE_HOST:$DATABASE_PORT_NUMBER"
257257
export PGCONNECT_TIMEOUT="5"
@@ -280,7 +280,10 @@ Return the volume-permissions init container
280280
value: {{ include "nessie.database.host" . | quote }}
281281
- name: DATABASE_PORT_NUMBER
282282
value: {{ include "nessie.database.port" . | quote }}
283-
{{- if not .Values.usePasswordFile }}
283+
{{- if .Values.usePasswordFiles }}
284+
- name: DATABASE_PASSWORD_FILE
285+
value: "/bitnami/nessie/secrets/database/QUARKUS_DATASOURCE_POSTGRESQL_PASSWORD"
286+
{{- else -}}
284287
- name: DATABASE_PASSWORD
285288
valueFrom:
286289
secretKeyRef:
@@ -292,7 +295,7 @@ Return the volume-permissions init container
292295
- name: DATABASE_NAME
293296
value: {{ include "nessie.database.name" . | quote }}
294297
volumeMounts:
295-
{{- if .Values.usePasswordFile }}
298+
{{- if .Values.usePasswordFiles }}
296299
- name: database-password
297300
mountPath: /bitnami/nessie/secrets/database
298301
{{- end }}

bitnami/nessie/templates/deployment.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ spec:
112112
args:
113113
- -ec
114114
- |
115-
{{- if .Values.usePasswordFile }}
115+
{{- if .Values.usePasswordFiles }}
116116
# We need to load all the secret env vars to the system
117117
for file in $(find /bitnami/nessie/secrets -type f); do
118118
env_var_name="$(basename $file)"
@@ -125,7 +125,7 @@ spec:
125125
env:
126126
- name: BITNAMI_DEBUG
127127
value: {{ ternary "true" "false" (or .Values.image.debug .Values.diagnosticMode.enabled) | quote }}
128-
{{- if and (eq .Values.versionStoreType "JDBC_POSTGRESQL") (not .Values.usePasswordFile) }}
128+
{{- if and (eq .Values.versionStoreType "JDBC_POSTGRESQL") (not .Values.usePasswordFiles) }}
129129
- name: QUARKUS_DATASOURCE_POSTGRESQL_PASSWORD
130130
valueFrom:
131131
secretKeyRef:
@@ -138,7 +138,7 @@ spec:
138138
envFrom:
139139
- configMapRef:
140140
name: {{ include "nessie.configmapName" . }}
141-
{{- if and (not .Values.usePasswordFile) (or .Values.secretConfigOverrides .Values.existingSecret) }}
141+
{{- if and (not .Values.usePasswordFiles) (or .Values.secretConfigOverrides .Values.existingSecret) }}
142142
- secretRef:
143143
name: {{ include "nessie.secretName" . }}
144144
{{- end }}
@@ -206,7 +206,7 @@ spec:
206206
subPath: {{ .Values.persistence.subPath }}
207207
{{- end }}
208208
{{- end }}
209-
{{- if .Values.usePasswordFile }}
209+
{{- if .Values.usePasswordFiles }}
210210
{{- if (eq .Values.versionStoreType "JDBC_POSTGRESQL") }}
211211
- name: database-password
212212
mountPath: /bitnami/nessie/secrets/database
@@ -228,7 +228,7 @@ spec:
228228
{{- end }}
229229
- name: empty-dir
230230
emptyDir: {}
231-
{{- if .Values.usePasswordFile }}
231+
{{- if .Values.usePasswordFiles }}
232232
{{- if (eq .Values.versionStoreType "JDBC_POSTGRESQL") }}
233233
- name: database-password
234234
secret:

bitnami/nessie/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ deploymentAnnotations: {}
167167
## @param logLevel Set application log level
168168
##
169169
logLevel: INFO
170-
## @param usePasswordFile Mount all sensitive information as files
170+
## @param usePasswordFiles Mount all sensitive information as files
171171
##
172-
usePasswordFile: true
172+
usePasswordFiles: true
173173
## @param versionStoreType Set version store type. The chart natively supports JDBC_POSTGRESQL, ROCKSDB and IN_MEMORY. Any other type requires you to add the configuration in configOverrides and secretConfigOverrides.
174174
##
175175
versionStoreType: JDBC_POSTGRESQL

0 commit comments

Comments
 (0)