Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert encrypt email #1070

Merged
merged 9 commits into from
Nov 23, 2018
Merged

Alert encrypt email #1070

merged 9 commits into from
Nov 23, 2018

Conversation

bjoernricks
Copy link
Contributor

Allow to encrypt emails send by alerts via setting a pgp or smime credential.

If the recipient_credential for an email alert is set and not "0" send
it to gvmd.
When modiyfing and creating an alert pass the recipient_credential
method data to gsad.
When displaying the details of an alert with email method display a link
to the credential used for encryption. Currently the name of the
credential isn't been shown because the name isn't included and must be
queried from the backend additionally.
Diffentiate between sending an encrypted and not encrypted email when
displaying the method type for an email alert at the alert list page.
Allow to select a smime or pgp credential for email encryption in
alerts.
Update Alert component to allow creating and changing a credential for
encrypting emails when sending an alert.
@bjoernricks
Copy link
Contributor Author

Closes #916

@codecov
Copy link

codecov bot commented Nov 23, 2018

Codecov Report

Merging #1070 into master will decrease coverage by <.01%.
The diff coverage is 2.7%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1070      +/-   ##
==========================================
- Coverage   13.77%   13.76%   -0.01%     
==========================================
  Files         823      823              
  Lines       26689    26713      +24     
  Branches     5609     5628      +19     
==========================================
+ Hits         3677     3678       +1     
- Misses      21560    21582      +22     
- Partials     1452     1453       +1
Impacted Files Coverage Δ
gsa/src/gmp/commands/alerts.js 8.1% <ø> (ø) ⬆️
gsa/src/web/pages/alerts/dialog.js 0% <ø> (ø) ⬆️
gsa/src/web/pages/alerts/emailmethodpart.js 0% <0%> (ø) ⬆️
gsa/src/web/pages/alerts/component.js 0% <0%> (ø) ⬆️
gsa/src/web/pages/alerts/method.js 0% <0%> (ø) ⬆️
gsa/src/gmp/models/credential.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a67383...c4e999e. Read the comment docs.

Copy link
Member

@swaterkamp swaterkamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Javascript part looks good to me

@bjoernricks bjoernricks merged commit 76640b3 into greenbone:master Nov 23, 2018
@bjoernricks bjoernricks deleted the alert-encrypt-email branch November 23, 2018 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants