Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

review multiple pip installs and metadata location #19

Open
jku opened this issue Oct 5, 2020 · 2 comments
Open

review multiple pip installs and metadata location #19

jku opened this issue Oct 5, 2020 · 2 comments

Comments

@jku
Copy link
Owner

jku commented Oct 5, 2020

Currently metadata goes into ~/.local/share/pip/tuf -- review if there can be negative side-effects from using multiple pip installs (in virtualenvs etc)

@jku
Copy link
Owner Author

jku commented Oct 6, 2020

Multiple pip installs should work fine: Each install has a bootstrap metadata for pypi.org (the root.json version might not be same but refreshing that metadata will converge to the same up-to-date metadata). The first version to run will bootstrap the metadata into .local/share/ and that will be used by all versions from that point on.

There is a security aspect: If an attacker can create or modify the bootstrapped metadata location .local/share/, the pip installs have no way of verifying if the current metadata is 'compatible' with their bootstrap metadata: they will just run with whatever metadata is already installed.

This is not ideal but should lead to DOS at worst?

@jku
Copy link
Owner Author

jku commented Oct 18, 2020

This is looked at upstream in theupdateframework/python-tuf#1168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant