We have Janus WebRTC Server deployed behind HTTPS and performing a security assessment from the security team.
During the vulnerability scan, the following issue was identified:
HSTS Missing From HTTPS Server (RFC 6797)
The scan indicates that the server does not return the Strict-Transport-Security header in HTTPS responses, which is recommended by RFC 6797 to enforce secure connections and prevent protocol downgrade attacks.
Example header expected:
Strict-Transport-Security: max-age=31536000; includeSubDomains
From my review of the configuration and documentation, it appears that Janus currently does not provide a built-in mechanism to add custom HTTP response headers to responses generated by the internal web server.
Because of this limitation, it is difficult to implement HSTS compliance directly within Janus, which may cause security scanners to flag the service.
Questions
-
Is there any supported way to add custom HTTP headers (such as
Strict-Transport-Security) in the built-in Janus HTTP/HTTPS server? -
If not, is this feature planned for future releases?
-
Is the recommended approach to place Janus behind a reverse proxy (e.g., Nginx/Apache) and add the HSTS header there?
Any guidance from the community or maintainers would be appreciated.