Can't set Current Sentry DSN Format
Summary
When setting the sentry_dsn
as copied from a currnt Sentry project, the gitlab runner prints an error with raven: dsn missing private key
.
Apparently, the format has changed since the initial implementation. The current implementation is still using the golang raven library, which is end of life. The current library is this sentry-go.
Old DSN Format used in Raven: user:password@sentry.io/project/id
New DSN Format used in Sentry Go: key@sentry.io/id
Steps to reproduce
- Set
sentry_dsn
in the gitlab runner config - Start runner
- Check for error message logs
Actual behavior
A Sentry DSN in the current Format isn't parsed correctly when provided to sentry_dsn
configuration.
Expected behavior
A Sentry DSN copied from the Sentry UI works properly when provided to sentry_dsn
configuration.
Environment description
Used GitLab Runner version
Running with gitlab-runner 12.5.0 (577f813d)
on Docker Build Runner M5 ...
Using Docker executor with image ...
Possible fixes
We should update the library to use the official one. We should also use https://gitlab.com/gitlab-org/labkit which provides this out of the box, and is working on upgrading to sentry-go
in labkit!24 (merged)