Welcome to mirror list, hosted at ThFree Co, Russian Federation.

new_has_variable.rb « ci « concerns « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 546d243e5de3dfa82ff9e1e69c229649b1dd087e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Ci
  module NewHasVariable
    extend ActiveSupport::Concern
    include Ci::HasVariable

    included do
      attr_encrypted :value,
        mode: :per_attribute_iv,
        algorithm: 'aes-256-gcm',
        key: Settings.attr_encrypted_db_key_base_32,
        insecure_mode: false
    end
  end
end