How is Travis-Ci's pypi deployment secure?

user592419

When using travis-ci to deploy to pypi, the procedure is:

  1. Set up travis-ci account and connect a repository.
  2. In that repository, include a pypi deploy that looks like:

    provider: pypi
    
    user: "PYPI_USER"
    
    password:
    
      secure: "PYPI_PASSWORD_SECURED_WITH_TRAVIS_ENCRYPT"
    
    on:
    
      tags: true
    

How does the security model for this work? Why is it that someone else can't copy my user and password and deploy to that pip package?

phd

How does the security model for this work?

Good enough. (You haven't signed a contract with me, so I cannot give any promise.)

Why is it that someone else can't copy my user and password and deploy to that pip package?

Because she cannot decrypt secret values encrypted by you. For each registered repository, Travis CI generates an RSA keypair — that is, values encrypted by your public key cannot be decrypted by intruders' private key, only your private key can decrypt them and the private keys are only accessible by Travis CI.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

PyPi deployment from Travis CI: Invalid or non-existent authentication

Travis CI deploy to S3 bucket not working with secure keys

How to set github token on Travis CI in a secure way?

Continuous Deployment Using Travis CI and Docker

Provide alternate PyPI URL for Travis CI to install dependencies from?

How to run Travis-CI's trusty distribution locally

How to use Travis CI environment variables + .sh script for auto deployment to Github Pages?

How to set flyway config in continuous deployment pipeline using Travis CI and Azure?

Can I use secure Travis env variables in .travis.yml to upload to PyPI?

How to remove caches on Travis CI?

How to trigger a fail in Travis CI?

How to secure CI/CD pipeline

Deployment in Travis-CI to GitHub Pages: which files will be uploaded?

Travis CI skip release deployment because this is not a tagged commit

What do the symbols *1 or &2 mean in Travis CI deployment scripts?

What is a good workflow for Continuous Deployment to a VPS using Travis CI and Capistrano?

Travis-CI skipping deployment although Commit is tagged

Travis CI Scala Play Application Build & Deployment Optimization

Preventing conflicts when deploying multiple distros to PyPI using Travis-CI

Travis pypi package version

travis-ci: how to move or rename a file

How to deploy an Agda library on Travis CI?

How to run travis-ci locally

How to install uglify-js on Travis CI?

How to set up Travis CI with multiple languages

How to use recent Boost versions with Travis CI

How to add SSH Key in Travis CI?

How to build MacOSX executables on Travis CI?

How to build on travis-ci with gradle and cobertura

TOP Ranking

HotTag

Archive