feat: add TLS reporting posture summaries

This commit is contained in:
Christian Krakau-Louis
2026-05-23 16:49:01 +02:00
parent 4a8d6a5067
commit 00ea392bee
17 changed files with 1518 additions and 3 deletions
+33 -1
View File
@@ -259,6 +259,38 @@ Uploads a new DMARC report for processing.
}
```
### TLS Reports
#### Upload TLS Report
```
POST /tls-reports/upload
```
Uploads an SMTP TLS Reporting aggregate attachment. Supported file types are
`.json`, `.json.gz`, and `.zip`.
**Example Response:**
```json
{
"success": true,
"report_id": "tls-report-20260520",
"policies_created": 1,
"policies_skipped": 0,
"duplicate": false,
"message": "TLS report imported."
}
```
#### Summarize TLS Reports
```
GET /tls-reports/summary?domain=example.com&days=30
```
Returns aggregate TLS trends, top failure causes, affected domains, and the
privacy controls for stored TLS-RPT data.
### Statistics
#### Compliance Summary
@@ -413,4 +445,4 @@ Supported events:
- `report.processed` - When a new report is processed
- `compliance.threshold` - When compliance falls below threshold
- `domain.added` - When a domain is added
- `domain.removed` - When a domain is removed
- `domain.removed` - When a domain is removed