diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2016-08-19 19:10:41 +0200 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2016-09-05 15:05:31 +0200 |
commit | c87540ed46ba8756154f767be99f80be75c27a43 (patch) | |
tree | 750f6f104743d49f93df191b656264211dba103e /config/initializers | |
parent | 89af76edc5e44ad1a0a55a65337bb992355911a6 (diff) | |
download | gitlab-ce-c87540ed46ba8756154f767be99f80be75c27a43.tar.gz |
Verify JWT messages from gitlab-workhorse
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/gitlab_workhorse_secret.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/initializers/gitlab_workhorse_secret.rb b/config/initializers/gitlab_workhorse_secret.rb new file mode 100644 index 00000000000..ed54dc11098 --- /dev/null +++ b/config/initializers/gitlab_workhorse_secret.rb @@ -0,0 +1,8 @@ +begin + Gitlab::Workhorse.secret +rescue + Gitlab::Workhorse.write_secret +end + +# Try a second time. If it does not work this will raise. +Gitlab::Workhorse.secret |