summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| * | Don't include the old unittests in the calculation of coverage results.Isis Lovecruft2013-11-19
| | |
| * | Refactor bridgedb.EmailServer.getGPGContext() to improve exception/error ↵Isis Lovecruft2013-11-19
| | | | | | | | | | | | handling.
| * | Sphinxify the docstring for bridgedb.EmailServer.getGPGContext().Isis Lovecruft2013-11-19
| | |
| * | Make the IRC Travis CI bot a bit less noisy.Isis Lovecruft2013-11-19
| | |
| * | Fix unittest fail for test_bridgedb due to changing where make-ssl-cert puts ↵Isis Lovecruft2013-11-19
| | | | | | | | | | | | files.
| * | I *really* hate Python2.6.Isis Lovecruft2013-11-19
| | | | | | | | | | | | | | | The argparse module wasn't a builtin in Python2.6, so we have to add it to requirements.txt otherwise the CI builds fail.
| * | Add unittests for the bridgedb.crypto module.Isis Lovecruft2013-11-19
| | |
| * | Add integration tests which start the BridgeDB servers through the cli scripts.Isis Lovecruft2013-11-19
| | |
| * | Add sitecustomize.py for running parallelized coverage tests.Isis Lovecruft2013-11-19
| | |
| * | Fix another CI failure due to twisted.trial API changes in Python2.6.Isis Lovecruft2013-11-19
| | |
| * | Fix Python2.6 CI failures due to changed twisted.trial.unittest.TestCase API.Isis Lovecruft2013-11-19
| | |
| * | Add coverage and coveralls support to the test runner.Isis Lovecruft2013-11-19
|/ / | | | | | | * FIXES the coverage part of #9865.
* | Merge branch 'hotfix/9872-return-status-codes' into developIsis Lovecruft2013-11-19
|\ \
| * | Return status codes from subcommands.hotfix/9872-return-status-codesIsis Lovecruft2013-11-19
|/ / | | | | | | Apparently, "unhandled" SystemExits make Travis CI angry.
* | Merge branch 'hotfix/9872-options-subcommands-relative-rundir' into developIsis Lovecruft2013-11-19
|\ \
| * | Fix a test_persistent unittest failing do to options rundir/config changes.Isis Lovecruft2013-11-19
| | |
* | | Merge branch 'hotfix/9872-options-subcommands-relative-rundir' into developIsis Lovecruft2013-11-19
|\ \ \ | |/ /
| * | Fix a bug where relative rundir/config options didn't work with subCommands.hotfix/9872-options-subcommands-relative-rundirIsis Lovecruft2013-11-19
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because subclasses of bridgedb.parse.options.BaseOptions will call their own parseOptions() method, which calls their own postOptions() as well as all parent class postOptions() methods, we have to set the absolute paths of the config file and the runtime directory as globals of the bridgedb.parse.options module. Otherwise, they will get reset in the parent classes, who do not have the instance variables of the subclass which did the original commandline parsing, and thus the config file and runtime directory get reset to their default settings by the parent classes. This then raises errors when an attempt to read the config file is made in bridgedb.Main.loadConfig(), because the file is (likely) not found. * FIXES a bug introduced by the changes for #9872, pertaining to setting the runtime directory and config file paths when using options.subCommand.
* | Merge branch 'hotfix/revert-a49ee2a' into developIsis Lovecruft2013-11-19
|\ \
| * | Revert "Deepcopy the HMAC factory function's resulting function."hotfix/revert-a49ee2aIsis Lovecruft2013-11-19
| | | | | | | | | | | | | | | | | | This reverts commit a49ee2a0872b474e11a5f8dd9c169b2fac1ae22e. Signed-off-by: Isis Lovecruft <isis@torproject.org>
* | | Ignore state files.Isis Lovecruft2013-11-16
| | |
* | | Fix make-ssl-cert script to output private key and cert in top-level dir.Isis Lovecruft2013-11-16
|/ /
* | Change setup.py/requirements.txt to allow URI/VCS resources.Isis Lovecruft2013-11-16
| | | | | | | | | | | | | | The maintainer of ipaddr has ceased uploading to PyPI, and so to get pip to download it, we need to add its URI and hash to requirements.txt. The get_requirements function in setup.py must be refactored to handle parse these URIs correctly, and return dependency_links in addition to install_requires.
* | Call raise SystemExit, not sys.exit, and tweak the format on a print statement.Isis Lovecruft2013-11-16
| |
* | Sign generated descriptors with the secret OR server IDkey.Isis Lovecruft2013-11-16
| |
* | Create the spacey OR fingerprint from the fingerprint, not the idkey digest.Isis Lovecruft2013-11-16
| |
* | Remove unused base64 encoding of idkey digest in gen_bridge_descriptors.Isis Lovecruft2013-11-16
| | | | | | | | | | | | | | | | The raw digest is passed to the function for making the networkstatus document, where it is then base64-encoded and its trailing '='s are stripped. Remove an extra, unused line from the main makeDescriptors() function where this is done again, but not passed to the networkstatus creation function.
* | Don't strip fingerprint whitespace in creation of extrainfo descriptor.Isis Lovecruft2013-11-16
| | | | | | | | | | It doesn't have whitespace, now that it is retrieved with hashlib.sha1() instead of OpenSSL.crypto.x509.digest().
* | Print tracebacks on unhandled exceptions in gen_bridge_descriptors.Isis Lovecruft2013-11-16
| |
* | Catch Attribute error if object wasn't save in persistent.State.Isis Lovecruft2013-11-16
| | | | | | | | This happens on first run, if a `Conf` isn't saved as state.config.
* | Check that a networkstatus nickname matches tor-spec.Isis Lovecruft2013-11-16
| |
* | Combine message string for two raised exceptions.Isis Lovecruft2013-11-16
| |
* | Remove two rather excessive log statements from Bridges module.Isis Lovecruft2013-11-15
| |
* | Separate lines for lists of updated and new config values.Isis Lovecruft2013-11-15
| |
* | Save config.RUN_IN_DIR, not state.RUN_IN_DIR, so subCommand can access it.Isis Lovecruft2013-11-15
| | | | | | | | | | | | If we save the runtime directory location later in Main.setup() when the persistent.State instance is created, then any options.subCommands which run earlier cannot access it.
* | Don't add the ORAddresses from a networkstatus if an exception was raised.Isis Lovecruft2013-11-15
| |
* | Fix a bug due to misnamed variable RUNDIR → RUN_IN_DIR.Isis Lovecruft2013-11-15
| |
* | I didn't know where to find it, maybe others won't either.Matthew Finkel2013-11-15
| | | | | | | | | | (cherry picked from commit fceee92ad07f3390eab7504ba6d86393b57aeda0) Signed-off-by: Isis Lovecruft <isis@torproject.org>
* | Obtain the fingerprint and add it to the documents/descriptorsMatthew Finkel2013-11-15
| | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit b4357fe77284d9858a1c71be649cd6cc157002fd) Signed-off-by: Isis Lovecruft <isis@torproject.org> Conflicts: scripts/gen_bridge_descriptors Again, I had to change a few things due to Matt and I both trying to fix something, and both simultaneously catching problems that the other person missed. :)
* | Update the docstring for idkey_digest in generateNetstatusMatthew Finkel2013-11-15
| | | | | | | | | | (cherry picked from commit 65804cd121edc2e140e1e01d6e9762d5d4c9c2d4) Signed-off-by: Isis Lovecruft <isis@torproject.org>
* | The identity is based on the public key of the router.Matthew Finkel2013-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifically it is the SHA-1 hash of the DER encoding of an ASN.1 RSA public key. (cherry picked from commit 6b57521a522abaa8f5fdd158708f382293a59e48) Signed-off-by: Isis Lovecruft <isis@torproject.org> Conflicts: scripts/gen_bridge_descriptors Matt and I both fixed the same bug, but it turns out we were both a tiny bit wrong, I believe, in different ways: I was improperly PEM-encoding the OR keys, and wasn't using ASN.1 format. Matt was using a dump of SIDPKey as the OR bridge's public identity key -- PyOpenSSL has this rather odd API where you have to dump the public key from the public cert to access it. Also, it's necessary to base64-encode the digest of the identity key, and strip the '=' character base64 padding. We *might* still be doing it wrong and missing the DER-encoding step.
* | Sometimes we want spacey fingerprintsMatthew Finkel2013-11-15
| | | | | | | | | | | | | | Take a string with 40 characters and add a space after every 4 chars. (cherry picked from commit 63c7e9ca9c7bf8d397437d5c87dff8f73a759317) Signed-off-by: Isis Lovecruft <isis@torproject.org>
* | Parse bridge descriptors in a separate thread.Isis Lovecruft2013-11-15
| | | | | | | | | | | | | | | | | | TODO: In the future, we will probably want to add some secondary, temporary HTTPServer which serves a simple "BridgeDB is down for maintenance and will be back shortly!" page while the descriptors are being parsed. * FIXES #5232: Import bridges into BridgeDB in a separate thread and database transaction.
* | Use a loaded persistent.State in Main.load().Isis Lovecruft2013-11-15
| | | | | | | | * ADD a docstring to Main.load().
* | Add parse.padBase64() function for adding stripped padding '==' back in.Isis Lovecruft2013-11-15
| |
* | Add an XXX about the odd, hardcoded number of "extra hashrings".Isis Lovecruft2013-11-15
| |
* | Make the logs clearly state which distributor bridges are being inserted into.Isis Lovecruft2013-11-15
| |
* | Slight PEP8ification to bridgedb.Bridges.IPBasedDistributor.Isis Lovecruft2013-11-15
| |
* | Refactor Bridges.parseStatusFile() to use bridgedb.parse.networkstatus.Isis Lovecruft2013-11-15
| |
* | Add newly refactored networkstatus parsers and unittests for them.Isis Lovecruft2013-11-15
| |