- Course
Secure Communications for Python
Secure Python communications by enforcing TLS validation, applying HSTS and CORS controls, and reducing sensitive data leaks in tracebacks and logs.
- Course
Secure Communications for Python
Secure Python communications by enforcing TLS validation, applying HSTS and CORS controls, and reducing sensitive data leaks in tracebacks and logs.
Get started today
Access this course and other top-rated tech content with one of our business plans.
Try this course for free
Access this course and other top-rated tech content with one of our individual plans.
This course is included in the libraries shown below:
- Security
What you'll learn
Python applications often communicate with remote services, browsers, and logging pipelines, and each communication path can introduce security risk. In this course, Secure Communications for Python, you’ll gain the ability to apply practical controls that protect these communication paths. First, you’ll explore how TLS certificate validation works in Python HTTP clients and how to preserve validation in Requests and urllib3. Next, you’ll discover how HSTS and CORS affect browser-facing response behavior and how to configure and verify those controls in Python web applications. Finally, you’ll learn how sensitive data can leak through tracebacks and logs, and how structured logging and redaction can reduce that risk. When you’re finished with this course, you’ll have the skills and knowledge needed to secure common Python communication patterns and verify that those controls are working as intended.