Commit 36e2802c authored by Elger Jonker's avatar Elger Jonker

store ratings also in legacy finding (not used for reports, etc) if we discover issues

Former-commit-id: c487aba8
parent 2dd5d827
......@@ -27,7 +27,8 @@ class Command(BaseCommand):
[X] Set the latest scan
[ ] The manual / comply or explain tutorial
[X] Afterwards set_is_the_latest_scan, add this to that function. (taken from existing dataset)
[ ] Translations of new findings
[X] Translations of new findings
[ ] Remove old TLS Qualys code after a while
[ ] Possible other features
The scans are currently saved as tls_qualys scans. They will be split into:
......@@ -36,6 +36,7 @@ from failmap.celery import app
from failmap.organizations.models import Organization, Url
from failmap.scanners.models import Endpoint, TlsQualysScratchpad
from failmap.scanners.scanmanager.endpoint_scan_manager import EndpointScanManager
from failmap.scanners.scanmanager.tlsqualys_scan_manager import TlsQualysScanManager
from failmap.scanners.scanner.http import store_url_ips
from failmap.scanners.scanner.scanner import allowed_to_scan, q_configurations_to_scan
......@@ -455,6 +456,7 @@ def save_scan(url, data):
trust = "trusted"
TlsQualysScanManager.add_scan(failmap_endpoint, rating, rating_no_trust, "Ready")
EndpointScanManager.add_scan('tls_qualys_certificate_trusted', failmap_endpoint, trust, "")
EndpointScanManager.add_scan('tls_qualys_encryption_quality', failmap_endpoint, rating_no_trust, "")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment