summaryrefslogtreecommitdiff
path: root/app/models/concerns/runners_token_prefixable.rb
blob: 1aea874337e193f1a0242a368d1122338e9f70d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module RunnersTokenPrefixable
  extend ActiveSupport::Concern

  # Prefix for runners_token which can be used to invalidate existing tokens.
  # The value chosen here is GR (for Gitlab Runner) combined with the rotation
  # date (20220225) decimal to hex encoded.
  RUNNERS_TOKEN_PREFIX = 'GR1348941'

  def runners_token_prefix
    RUNNERS_TOKEN_PREFIX
  end
end