Closed p4block closed 4 days ago
I've seen this bug has been introduced in this change: https://github.com/bitnami/charts/commit/3d04a655e59ce25587d84b1a2a44844dfcf19de3
Thanks for the information @bvis. We are going to review the latest security changes we applied to the chart, we probably missed something in the configuration. The change you mentioned was made to resolve another issue
Hi @p4block,
I just created a PR to solve the issue you reported. I used this simple script to test the changes
diff --git a/bitnami/keycloak/values.yaml b/bitnami/keycloak/values.yaml
index abe71381a7..846f9d216c 100644
--- a/bitnami/keycloak/values.yaml
+++ b/bitnami/keycloak/values.yaml
@@ -261,7 +261,10 @@ enableDefaultInitContainers: true
## #!/bin/bash
## echo "Do something."
##
-initdbScripts: {}
+initdbScripts:
+ my_init_script.sh: |
+ #!/bin/bash
+ echo "Do something."
## @param initdbScriptsConfigMap ConfigMap with the initdb scripts (Note: Overrides `initdbScripts`)
##
initdbScriptsConfigMap: ""
and the deployment worked as expected
[38;5;6mkeycloak [38;5;5m13:31:24.75 [0m[38;5;2mINFO [0m ==>
[38;5;6mkeycloak [38;5;5m13:31:24.75 [0m[38;5;2mINFO [0m ==> [1mWelcome to the Bitnami keycloak container[0m
[38;5;6mkeycloak [38;5;5m13:31:24.76 [0m[38;5;2mINFO [0m ==> Subscribe to project updates by watching [1mhttps://github.com/bitnami/containers[0m
[38;5;6mkeycloak [38;5;5m13:31:24.76 [0m[38;5;2mINFO [0m ==> Submit issues and feature requests at [1mhttps://github.com/bitnami/containers/issues[0m
[38;5;6mkeycloak [38;5;5m13:31:24.76 [0m[38;5;2mINFO [0m ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit [1mhttps://bitnami.com/enterprise[0m
[38;5;6mkeycloak [38;5;5m13:31:24.76 [0m[38;5;2mINFO [0m ==>
[38;5;6mkeycloak [38;5;5m13:31:24.77 [0m[38;5;2mINFO [0m ==> ** Starting keycloak setup **
[38;5;6mkeycloak [38;5;5m13:31:24.78 [0m[38;5;2mINFO [0m ==> Validating settings in KEYCLOAK_* env vars...
[38;5;6mkeycloak [38;5;5m13:31:24.80 [0m[38;5;2mINFO [0m ==> Trying to connect to PostgreSQL server keycloak-postgresql...
timeout reached before the port went into state "inuse"
[38;5;6mkeycloak [38;5;5m13:31:44.86 [0m[38;5;2mINFO [0m ==> Found PostgreSQL server listening at keycloak-postgresql:5432
[38;5;6mkeycloak [38;5;5m13:31:44.86 [0m[38;5;2mINFO [0m ==> Configuring database settings
[38;5;6mkeycloak [38;5;5m13:31:44.90 [0m[38;5;2mINFO [0m ==> Enabling statistics
[38;5;6mkeycloak [38;5;5m13:31:44.91 [0m[38;5;2mINFO [0m ==> Enabling health endpoints
[38;5;6mkeycloak [38;5;5m13:31:44.92 [0m[38;5;2mINFO [0m ==> Configuring http settings
[38;5;6mkeycloak [38;5;5m13:31:44.94 [0m[38;5;2mINFO [0m ==> Configuring hostname settings
[38;5;6mkeycloak [38;5;5m13:31:44.94 [0m[38;5;2mINFO [0m ==> Configuring cache count
[38;5;6mkeycloak [38;5;5m13:31:44.95 [0m[38;5;2mINFO [0m ==> Configuring log level
[38;5;6mkeycloak [38;5;5m13:31:44.97 [0m[38;5;2mINFO [0m ==> Loading user's custom files from /docker-entrypoint-initdb.d ...
Do something.
[38;5;6mkeycloak [38;5;5m13:31:44.98 [0m[38;5;2mINFO [0m ==> ** keycloak setup finished! **
[38;5;6mkeycloak [38;5;5m13:31:45.02 [0m[38;5;2mINFO [0m ==> ** Starting keycloak **
...
Name and Version
bitnami/keycloak
What architecture are you using?
amd64
What steps will reproduce the bug?
Set initDbScripts
Are you using any custom parameters or values?
What is the expected behavior?
Container starts
What do you see instead?
Container start fails with
Additional information
Seen previously at #3537