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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project_services/jira_tracker_data.rb')
-rw-r--r--app/models/project_services/jira_tracker_data.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/models/project_services/jira_tracker_data.rb b/app/models/project_services/jira_tracker_data.rb
index 00b6ab6a70f..6cbcb1550c1 100644
--- a/app/models/project_services/jira_tracker_data.rb
+++ b/app/models/project_services/jira_tracker_data.rb
@@ -7,6 +7,15 @@ class JiraTrackerData < ApplicationRecord
attr_encrypted :api_url, encryption_options
attr_encrypted :username, encryption_options
attr_encrypted :password, encryption_options
+ attr_encrypted :proxy_address, encryption_options
+ attr_encrypted :proxy_port, encryption_options
+ attr_encrypted :proxy_username, encryption_options
+ attr_encrypted :proxy_password, encryption_options
+
+ validates :proxy_address, length: { maximum: 2048 }
+ validates :proxy_port, length: { maximum: 5 }
+ validates :proxy_username, length: { maximum: 255 }
+ validates :proxy_password, length: { maximum: 255 }
enum deployment_type: { unknown: 0, server: 1, cloud: 2 }, _prefix: :deployment
end