Skip to content
Snippets Groups Projects
Commit 1fdd1fa6 authored by Robert Speicher's avatar Robert Speicher
Browse files

Merge branch 'variable-fix' into 'master'

Require the variable key to be set and unique

See merge request !234
parents 34283ad1 85f1cd2b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -13,6 +13,7 @@ v7.14.0 (unreleased)
- Fix broken yaml error saving
- Rename type(s) to stage(s)
- Add missing stage when doing retry
- Require variable keys to be not-empty and unique
v7.13.1
- Fix: user could steal specific runner
Loading
Loading
Loading
Loading
@@ -14,5 +14,8 @@
class Variable < ActiveRecord::Base
belongs_to :project
 
validates_presence_of :key
validates_uniqueness_of :key
attr_encrypted :value, mode: :per_attribute_iv_and_salt, key: GitlabCi::Application.secrets.db_key_base
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment