Security overview¶
This document outlines common risks and best practices for the Traefik charm. It focuses on configurations and protections available through the charm itself.
Risks¶
The following items include descriptions of the risks, their corresponding best practices for mitigation, as well as links to related documentation and configuration guidelines.
Security vulnerabilities¶
Running Traefik with one or more weaknesses that can be exploited by attackers.
Best practices¶
Keep the Juju and the charm updated. See How to upgrade, and learn more about Juju updates in the documentation.
Unencrypted traffic¶
If Traefik serves HTTP, the traffic between Traefik and the clients will be unencrypted, risking eavesdropping and tampering.
Best practices¶
Always enable HTTPS by integrating with a charm providing the
certificatesintegration to configure TLS.Consider encrypting in-cluster traffic, specially if your cluster is multi-tenant.
Authentication¶
The Traefik charm supports BasicAuth.
Best practices¶
Consider enabling BasicAuth if you want access to the backend workloads to be authenticated. Alternatively, ForwardAuth can also be enabled as an experimental feature.