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
Next Next commit
Put every method data field in an own row
bjoernricks committed Nov 23, 2018

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 0a334c4c98dea0e3f65782efb708adea0232c276
51 changes: 39 additions & 12 deletions gsa/src/gmp/commands/alerts.js
Original file line number Diff line number Diff line change
@@ -38,18 +38,45 @@ const log = logger.getLogger('gmp.commands.alerts');

const event_data_fields = ['status', 'feed_event', 'secinfo_type'];
const method_data_fields = [
'details_url', 'to_address', 'from_address',
'subject', 'notice', 'notice_report_format', 'message',
'notice_attach_format', 'message_attach', 'submethod', // FIXME remove constant submethod!!!
'URL', 'snmp_community', 'snmp_agent', 'snmp_message', 'defense_center_ip',
'defense_center_port', 'pkcs12', 'verinice_server_url',
'verinice_server_credential', 'verinice_server_report_format',
'start_task_task', 'send_host', 'send_port', 'send_report_format',
'scp_credential', 'scp_host', 'scp_known_hosts', 'scp_path',
'scp_report_format', 'smb_credential', 'smb_file_path', 'smb_report_format',
'smb_share_path', 'tp_sms_hostname', 'tp_sms_credential',
'tp_sms_tls_certificate', 'tp_sms_tls_workaround',
'delta_type', 'delta_report_id',
'details_url',
'to_address',
'from_address',
'subject',
'notice',
'notice_report_format',
'message',
'notice_attach_format',
'message_attach',
'submethod', // FIXME remove constant submethod!!!
'URL',
'snmp_community',
'snmp_agent',
'snmp_message',
'defense_center_ip',
'defense_center_port',
'pkcs12',
'verinice_server_url',
'verinice_server_credential',
'verinice_server_report_format',
'start_task_task',
'send_host',
'send_port',
'send_report_format',
'scp_credential',
'scp_host',
'scp_known_hosts',
'scp_path',
'scp_report_format',
'smb_credential',
'smb_file_path',
'smb_report_format',
'smb_share_path',
'tp_sms_hostname',
'tp_sms_credential',
'tp_sms_tls_certificate',
'tp_sms_tls_workaround',
'delta_type',
'delta_report_id',
];
const condition_data_fields = [
'severity', 'direction', 'at_least_filter_id',