Ensure surrounding whitespace is stripped off credentials loaded from environment variables
We are directly interpolating env variable as credentials in shell commands. If there is whitespace surrounding the environment variable, it can break the shell command. We should ensure we are stripping off whitespace in credentials while loading them from env variables. Maybe a helper method.
Example: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/lib/gitlab/license/page_generator.rb#L23