DEV Community

Ioneyrezende
Ioneyrezende

Posted on

OpenTTS and the GET request that puts text in every log

OpenTTS and the GET request that puts text in every log

OpenTTS offers a unified HTTP API in front of several speech engines. The reference Swagger definition describes a simple /api/tts request with voice and text query parameters. That design is easy to integrate and easy to leave behind in access logs.

The count-only ZoomEye query collected on November 26, 2026 returned 0 for app="OpenTTS" and 27 for title="OpenTTS", with sub_type=all, page 1 and page size 1. The title matches may include documentation and dashboards. They do not show that every instance is reachable or that it has no authentication.

A query string is still message content

If the text is placed in the URL, every reverse proxy, CDN, browser history and monitoring system in the path may retain it. A support message read by a speech interface can include a name, address or customer identifier. A log retention policy that was written for request paths may not treat those query values as sensitive document content.

Use POST when the API supports it, or place a trusted gateway in front that moves the text into a protected request body before it reaches logging. Configure the reverse proxy to redact query strings for this route. Test the log pipeline with a synthetic marker and confirm that the marker does not appear in central logs, traces or analytics.

The Swagger entry exposes no authentication scheme in the shown operations. That should be read as a documentation observation, not proof that every deployment is open. The application may be protected entirely by a reverse proxy or a private network.

Control who can synthesize speech

Put OpenTTS behind the same identity boundary as other internal APIs. Use a per-caller token or a mTLS-protected gateway. Limit text length, audio duration and concurrent requests. Track voice identifiers separately from arbitrary text so usage can be attributed without retaining the content.

Keep the voice and model directories read-only after deployment. A voice name should resolve through an allowlist. Do not let a request fetch a remote voice package, execute a shell command or choose a file path outside the configured voice root. If the service can load plugins or external engines, review those components as code.

Use a separate worker for long synthesis jobs. A short request limit protects the edge but can still leave a queue saturated by a few clients. Set a queue depth, a maximum session age and a clear error when capacity is exhausted.

Investigate an exposed instance

If logs show an internet-reachable OpenTTS route, identify whether the caller supplied text in the URL and whether proxy logs retained it. Review requests for unusual voices, very large text values or repeated automation patterns. Do not delete the logs until the retention and privacy review is complete.

Rotate any gateway token that could have been exposed in a URL or dashboard. If the deployment uses a shared key for several applications, replace it with separate keys before changing the network rule.

The 27 title matches are a weak signal. The stronger evidence is a request log that shows the service and the data it carried.

References

Top comments (0)