summaryrefslogtreecommitdiff
path: root/app/services/projects
diff options
context:
space:
mode:
authorGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-10-25 17:40:22 +0000
committerGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-10-25 17:40:22 +0000
commit8b69a3964e6daefcdd11be6ddaa8f51a870b62f6 (patch)
tree8a44210ac23a891a05437517d1f03392a240c8ee /app/services/projects
parent4f3324982038cfd26ad9326d519e8a6d7a12d992 (diff)
parent5c072495284de9aae26b1efcefcefc1d8571065a (diff)
downloadgitlab-ce-8b69a3964e6daefcdd11be6ddaa8f51a870b62f6.tar.gz
Merge branch 'security-mask-sentry-token-12-4-ce' into '12-4-stable'
Mask Sentry auth token See merge request gitlab/gitlabhq!3504
Diffstat (limited to 'app/services/projects')
-rw-r--r--app/services/projects/operations/update_service.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/services/projects/operations/update_service.rb b/app/services/projects/operations/update_service.rb
index 64519501ff4..0ca89664304 100644
--- a/app/services/projects/operations/update_service.rb
+++ b/app/services/projects/operations/update_service.rb
@@ -36,15 +36,17 @@ module Projects
organization_slug: settings.dig(:project, :organization_slug)
)
- {
+ params = {
error_tracking_setting_attributes: {
api_url: api_url,
- token: settings[:token],
enabled: settings[:enabled],
project_name: settings.dig(:project, :name),
organization_name: settings.dig(:project, :organization_name)
}
}
+ params[:error_tracking_setting_attributes][:token] = settings[:token] unless /\A\*+\z/.match?(settings[:token]) # Don't update token if we receive masked value
+
+ params
end
def grafana_integration_params