diff options
author | mfluharty <mfluharty@gitlab.com> | 2019-03-29 18:46:31 +0300 |
---|---|---|
committer | mfluharty <mfluharty@gitlab.com> | 2019-03-29 21:49:59 +0300 |
commit | 0481d699075ea48c67037088713689b8d66f1983 (patch) | |
tree | 200b5c4c0a4fac3f416ad4b8dbb402caa0a2eae7 /app/serializers | |
parent | ee8f3d5cd806c5558a2153b1a545b371c47c600f (diff) |
Add control for variable value masking
Show masked switch for each variable
When toggled on, the variable value will be masked in runner logs
Show warning message if the switch is on but the value is not maskable
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/group_variable_entity.rb | 1 | ||||
-rw-r--r-- | app/serializers/variable_entity.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/app/serializers/group_variable_entity.rb b/app/serializers/group_variable_entity.rb index 0edab4a3092..19c5fa26f34 100644 --- a/app/serializers/group_variable_entity.rb +++ b/app/serializers/group_variable_entity.rb @@ -6,4 +6,5 @@ class GroupVariableEntity < Grape::Entity expose :value expose :protected?, as: :protected + expose :masked?, as: :masked end diff --git a/app/serializers/variable_entity.rb b/app/serializers/variable_entity.rb index 85cf367fe51..4d48e13cfca 100644 --- a/app/serializers/variable_entity.rb +++ b/app/serializers/variable_entity.rb @@ -6,4 +6,5 @@ class VariableEntity < Grape::Entity expose :value expose :protected?, as: :protected + expose :masked?, as: :masked end |