> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 5.1 Security and Privacy Overview

> Security and Privacy Overview for ReportGeneratorTool.

ReportGeneratorTool handles device-portal credentials, measurement data, generated PDFs and recipient email addresses. This space defines the security standard for operating that workflow and the acceptance criteria used before release. The control register records which requirements still need implementation or deployment evidence. A written requirement is not a certification or proof that a deployed environment enforces it.

## Security boundaries

| Boundary | Required control |
| - | - |
| Caller to API | HTTPS, authenticated identity, request validation and workspace authorization |
| API to workflow state | Job identifiers and protected credential references; no plaintext credentials in history |
| Worker to device portal | Approved portal account, allowlisted destination and isolated browser session |
| Worker to report storage | Private objects, least privilege and workspace-scoped metadata |
| Worker to mail provider | Approved sender, authorized recipients and protected transport |
| Service to telemetry | Structured events with credentials and payloads excluded |
| Operator to production | Individual identity, MFA and recorded administrative actions |

## Protected information

Treat portal passwords, API keys, storage credentials and email-provider passwords as restricted secrets. Treat CSV measurements, chart images, PDFs, device identifiers and recipient addresses as confidential workspace data. Treat job IDs and request IDs as internal operational metadata; possession of an identifier never grants access.

## Responsibilities

Workspace administrators approve API access, device scope and recipients. Service operators manage deployment, secret rotation, storage policy and incident response. Release owners collect evidence that mandatory controls pass before promotion. Callers supply only the data necessary for a report and verify recipients before requesting delivery. Recipients control copies delivered to their mailboxes; the application cannot recall those copies.

## Operating principles

Use deny-by-default authorization, least privilege and separate production and staging identities. Keep security policy in server-owned configuration rather than trusting request-supplied client or device identifiers. Use synthetic devices and test mailboxes in non-production environments. Keep security findings, credential values and incident evidence out of public issue discussions. Do not publish claims of SOC 2, ISO 27001, regulatory compliance, data residency or penetration-test completion without supporting evidence.

## Read next

* [Credentials and access control](https://docs.khanhng.com/security/credentials-and-access-control.md).
* [Data handling and privacy](https://docs.khanhng.com/security/data-handling-and-privacy.md).
* [Control register and release gates](https://docs.khanhng.com/security/security-risks-and-required-actions.md).
* [Incident response](https://docs.khanhng.com/security/incident-response.md).

The authorization standard follows [OWASP Authorization guidance](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html). The implementation baseline is [main at 27045ec](https://github.com/TQKNG/automation/tree/27045ec413f88cd2227ab08e18ec76db3e8e3d34).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.