openshift/origin-server — pull request #608 by Miciah (2012-10-08 13:18:50+00:00)
Title: [test] Sanity check CLOUD_USER value

The StickShift::UnixUser class interpolates the value of CLOUD_USER in
/etc/stickshift/stickshift-node.conf into the name of a shell
environment variable. Therefore, if CLOUD_USER contains symbols that
may not appear in a shell variable name, we will get mysterious errors.

This patch adds a check in the initializer for StickShift::UnixUser to
verify that CLOUD_USER contains only valid symbols.