Skip to main content

Enterprise Reporting (Preview)

caution

Enterprise Reporting is preview. PDF export uses Primus.PdfGenerator if configured; otherwise the fallback formatter is a text placeholder.

This module provides formatters for HTML, JSON, CSV, and SARIF reports based on a SecurityReport model. Use it to build your own reporting pipeline.

Whats Implemented

  • HTML dashboard formatter (HtmlFormatter)
  • JSON formatter (JsonFormatter)
  • CSV formatter (CsvFormatter)
  • SARIF formatter (SarifFormatter)

Whats Not Production-Ready Yet

  • PDF generation without a configured PDF provider (fallback output is a placeholder)
  • Formal compliance certification

Example

using PrimusSaaS.Security.Reporting.Services;
using PrimusSaaS.Security.Reporting.Models;
using PrimusSaaS.Security.Reporting.Formatters;

var reporting = new ReportingService();

var report = await reporting.GenerateReportAsync(
"MyProject",
new List<VulnerabilityFinding>()
);

var html = HtmlFormatter.Export(report);
var json = JsonFormatter.Export(report);
var sarif = SarifFormatter.Export(report);

Notes on Compliance

Compliance scores are heuristic mappings of findings to frameworks. They do not certify PCI-DSS, HIPAA, SOC 2, GDPR, or ISO 27001 compliance.