Closed Quba1 closed 7 months ago
Sorry we cannot adapt much in the way of how SCALE handles Helm errors
I'm not sure if we are every going to 100% guarantee correct escaping on all charts though.
I'm not sure if we are every going to 100% guarantee correct escaping on all charts though.
I think an already useful solution would be to write a warning in Installation Notes or the config page itself
Thats correct.
It’s technically a helm template issue**, that strips quotes every time you pass the value down. While it could be fixed, it’s likely to happen in 10 other places. And the mitigation for it requires extra code on each place that the value is passed by. So I’ll also agree with the docs.
**(eg even on normal helm usage, even if you add quotes yourself, it will still fail)
@bitpushr Docs are your thing
Caution/note for password requirements added to installation docs with PR: https://github.com/truecharts/charts/pull/21271
@Quba1 thanks for raising this!
This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists
chart Name
nextcloud
Operating System
TrueNAS SCALE 22.12.4.2 or prior
Deployment Method
TrueNAS SCALE charts
Chart Version
29.10.22
Kubernetes Events
chartlication Logs
Chart Configuration
Related default config changes:
%
%
Unrelated default config changes:
admin
I consider those changes as unrelated because in a working configuration those settings remained identical.
Describe the bug
During first attempt of chart installation I used randomly generated passwords for admin account and Postgres and this error appeared:
with two errors in config printed below:
After some googling I learned that YAML is not happy with tabs and
%
sign at the line beginning. And the only string that I had control over was the two passwords. So I checked them and discovered that accidentally they both start with%
.In the minimal example (see above) I was able to confirm that if the passwords start with
%
error occurs, but when they start with a letter everything works.I did not investigate whether one or both passwords are improperly handled.
Part of the issue is also the fact that those errors are hidden inside three walls of texts:
Thus the solving process required a fair amount of text searching, deduction and trail-and-error.
To Reproduce
Install nextcloud chart following guide on the website and with config changes as above, for admin and postgres passwords use strings starting with
%
.Expected Behavior
Ideal: Passwords are properly escaped and charts installs correctly. Sufficient: Display a readable error that passwords must start with a letter.
Screenshots
n/a
Additional Context
n/a
I've read and agree with the following
[Chart-Name]