diff options
author | Diego Louzán <diego.louzan.ext@siemens.com> | 2019-07-10 21:40:28 +0200 |
---|---|---|
committer | Diego Louzán <diego.louzan.ext@siemens.com> | 2019-08-20 16:13:32 +0200 |
commit | 0dcb9d21efc1db97765d82ee39a0f0905ba945ba (patch) | |
tree | 48b0fa42bbe0186e28758ba496f45ef11972aed6 /config/smime_signature_settings.rb | |
parent | d8966abd20c860d2f30141f3647f2b81f70b683d (diff) | |
download | gitlab-ce-0dcb9d21efc1db97765d82ee39a0f0905ba945ba.tar.gz |
feat: SMIME signed notification emails
- Add mail interceptor the signs outgoing email with SMIME
- Add lib and helpers to work with SMIME data
- New configuration params for setting up SMIME key and cert files
Diffstat (limited to 'config/smime_signature_settings.rb')
-rw-r--r-- | config/smime_signature_settings.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/smime_signature_settings.rb b/config/smime_signature_settings.rb new file mode 100644 index 00000000000..3d19db84c19 --- /dev/null +++ b/config/smime_signature_settings.rb @@ -0,0 +1,11 @@ +# Set default values for email_smime settings +class SmimeSignatureSettings + def self.parse(email_smime) + email_smime ||= Settingslogic.new({}) + email_smime['enabled'] = false unless email_smime['enabled'] + email_smime['key_file'] ||= Rails.root.join('.gitlab_smime_key') + email_smime['cert_file'] ||= Rails.root.join('.gitlab_smime_cert') + + email_smime + end +end |