-
Notifications
You must be signed in to change notification settings - Fork 70
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
Postgresql credentials should be percent encoded #251
Comments
@hsahmed you are right, thanks for the report. However, since the password comes from a kubernetes secret object, we have no chance to perform Helm string manipulation on it. I am not sure how to best solve this at present. One possibility might be fixing this in the Zammad stack by adding an initializer that creates @monotek would you have any suggestion here? |
@hsahmed as a workaround, you can override |
@mgruner we're using PGO operator to deploy Postgresql which auto generates a password, and I was thinking of having a permanent fix for this by adding percent-encoding of password to both docker-entrypoint.sh for Zammad docker (it already has an encoding function that can be enhanced) and also changing the command for the containers to include password encoding before starting services. Let me know if this approach is acceptable and I will submit a PR. |
An alternative might be the linked pull request in Zammad. What do you think about it? We would then need to switch helm and docker-compose from passing DATABASE_URL to separate variables. |
As a short follow-up for this: so far there was no proper solution for this problem, because:
However, I added a change to Zammad |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is this a request for help?:
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
Version of Helm and Kubernetes:
Kubernetes: 1.28.2
Zammad Chart: 10.2.1
What happened:
It is not possible to use a Postgresql password containing any characters that have a special meaning within the URL (& : % / and possible others).
What you expected to happen:
Any characters in the password or other elements of the URL that have special meaning within the URL should percent-encoded.
How to reproduce it (as minimally and precisely as possible):
Install the Helm release using the following values:
Anything else we need to know:
Helm has a template function
urlquery
that can be used to encode the values https://helm.sh/docs/chart_template_guide/function_list/#urlqueryThe text was updated successfully, but these errors were encountered: