Secure Python Packaging & Release Using Continuous Deployment - Martin Vrachev & Jussi Kukkonen
Channel: The Linux Foundation
Date: 2022-10-08

Secure Python Packaging & Release Using Continuous Deployment - Martin Vrachev VMware & Jussi Kukkonen, Google

Python open source projects package release processes are often ad hoc and not particularly secure: As an example, a compromise of a maintainer's account on PyPI typically means the attacker can upload as much malware as they want. After a release, it's also impossible to verify if the release content is correct or if it matches a specific source release. This tutorial will demonstrate how to use common Continuous Deployment systems (like GitHub and Gitlab) to release a Python project securely and easily. Some aspects that will be covered: - What are the security improvements we are aiming for? - What do we need to know about GitHub/Gitlab security features? - Build reproducibility – how and why? - How to setup automated deployment to PyPI using GitHub/Gitlab? - Signing and verifying releases using Sigstore.