von / PerProxy

A python-based proxy that uses Perspectives to detect and thwart SSL MITM attacks.
7 stars 2 forks source link

Current install method doesn't allow for virtualenv #42

Closed von closed 13 years ago

von commented 13 years ago

The current installation scheme (see https://github.com/von/PerProxy/issues/35) using /usr/local/perproxy doesn't allow for virtualenv since /usr/local/perproxy is outside the virtual environment.

It would be nice to figure out a way to install that works with virtualenv to aid development.

The problem is how to install the files in etc/ such that I can get their paths.

pkgutil.get_data() allows me to get the content of package_data, but not it's path (since it could be in an egg, this is understandable).

So this means I need to run without requiring static configuration that I need to refer to by path (or make temporary copies of such files).

Here are the files in etc/ and what it would be take to convert them to package_data:

PerProxy-whitelist.txt - Not needed. Is only read if specified.

error_template.html - need to modify PerProxy to take from package_data instead of file

logging.config - logging.config package only reads from file or dict; need to write package_data to temporary file

PerProxy.conf - Not needed. Is only read if specified.

http_notary_list.txt - use new Notaries.default() method (see https://github.com/von/pyPerspectives/issues/11)

von commented 13 years ago

Two things I've learned doing this:

von commented 13 years ago

Commits that have wrong issue (45) in commit message related to this: 0d1afc7 dcbaf14 8be3c8f

von commented 13 years ago

Still to be done: