Runner token contains _, can't use docker-machine at digital ocean

Summary

I have a project that GitLab assigned a token with an _ in it. GitLab uses the first 8 chars to create the name, so it's trying to create a droplet with an underscore in it at Digital Ocean. Unfortunately, the _ is an invalid character for droplet names, so docker-machine.

Sample Name GitLab is trying to create: runner-CxsZ9e_Y-auto-scale-1466694867

Expected Behavior

GitLab tokens should not have an _.

Possible fixes

In addition to not having a _ in the token, I'd love a way to regenerate a token on demand, for cases like this, or in case the token is accidentally leaked somehow.

Edited Jul 27, 2020 by Jason Yavorsky
Assignee Loading
Time tracking Loading