Tab characters in SSH key comments break 'rake gitlab shell setup'
When you run rake gitlab:shell:setup
we send SSH public keys from one process (rake) to a gitlab-shell process. These keys are sent as 'id\tkey' lines, i.e. tab-separated values.
On the other end we turn these lines back into arrays. https://gitlab.com/gitlab-org/gitlab-shell/blob/a33818958222e5e6ef405a64608c37d7452a4b65/lib/gitlab_keys.rb#L60
Because somebody (ahem) made the parser in gitlab-shell pedantic about the number of tab-separated values per line, rebuilding authorized_keys can break if a user put a tab character in their SSH key comment. A tab in the comment makes it look like there are three instead of two values on the line sent to the key-adding process.
This bit us on gitlab.com a while ago. This problem will also affect any installation with tabs in SSH key comments during a backup restore.