-
Notifications
You must be signed in to change notification settings - Fork 218
Description
- The following template entries are not shell escaping passwords:
-
In addition, the ssh_proxy secret would probably fail if there was a "@" in it from looking at the code, it may need to be URL encoded in the config as well. Automated tests need to be improved to actually test special characters in all passwords.
-
We also had a problem with cc_uploader not working when there is a special character in the staging_upload_password in the Cloud Controller config. When looking at the upload POST sent by DEA the password is URL encoded (before being Base64 encoded) but this is not being done by cc_uploader. My guess is that if URL encoding is added to this line it might fix the problem but testing would be needed:
https://github.com/cloudfoundry-incubator/cc-uploader/blob/master/ccclient/uploader.go#L44
In our test case a "$" in the password caused it to break during staging with an upload error, and when testing with an "@" and "!" in the password, part of the password was actually returned to the client in the error message:
Server error, status code: 500, error code: 170011, message: Stager error: bad component(expected user component): <passwordhere>!!(MISSING)!(MISSING)