summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Update changelog and version for 1.3.0HEADv1.3.0masterArturo Filastò2016-05-30
|
* Map also the connect_error (#85)Arturo Filastò2016-05-30
|
* Fix privilege shedding and daemonisation of oonibackend (#80)Arturo Filastò2016-05-30
| | | | | | | | | | | | | | | | | | | | * Fix privilege shedding and daemonisation of oonibackend * Rewrite to use twistd * Launch tor only after we have forked * Set the UID of when starting tor This fixes #65 * Add gitignore files and remove empty.txt files * Drop support for super old versions of txtorcon * Remove now unnecessary hacks to maintain backward compatibility * Fix permissions on temporary tor data directory
* Vagrant: use box canonical name rather than URL (#84)Simone Basso2016-05-30
| | | | | This allows us to get updates running `vagrant box update`. While at it, add `/.vagrant/` to `.gitignore`.
* Feature/web connectivity (#63)Arturo Filastò2016-05-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add web connectivity test helper * Forward test helper addresses to the host machine * Align the request headers used by the web_connectivity test helper to those of the probe * Add monkey patch for bug in twisted RedirectAgent: https://twistedmatrix.com/trac/ticket/8265 * Add monkey patch for HTTPClientParser.statusReceived * Use TrueHeaders in control request * Add support for specifying endpoints in web_connectivity test helper * Add endpoint for checking the status of the WebConnectivity test helper * Add support for parsing test-helpers-alternate * Fix key for web_connectivity test in example configuration file * Implement on-disk web_connectivity cache * Add support for Gzip content decoding * Also record CNAME resolution. * Rename ips to addrs * Add support for retries in the http_request * Add support for extracting title * Encode the responses as well when debug mode * Handle partial downloads * Ignore errors when encoding headers * Cast title to unicode and ignore errors * Improvements based on feedback and comments by @bassosimone * Move twisted related patches into txextra module * Add support for returning the responses based on a key sent by the client. * Inherit from OONIBHandler so we can get the error message format * Stylistic improvements * Set defaults in a way that oonib.conf can start from the example * Avoid doing join on nonetype * Address comments by @bassosimone * Properly set the body also when we get a partial body downloaded * Move more code into shared oonib.common module * Fully sync the common module with ooni-probe (pulling in also other shared functionality so the Agents match entirely) * Fix location of comment for the patched HTTPClient * Add unittests and integration tests for web_connectivity
* [hotfix] Only create bouncer endpoints when it's configuredArturo Filastò2016-05-26
|
* Document configuration (#78)Joe Landers2016-05-26
| | | | | | * Update README.rst * remove old configuration option
* pass tor_binary config to txtorcon (#79)Joe Landers2016-05-23
|
* Handle empty bouncer_endpoints and collector_endpointsArturo Filastò2016-05-21
| | | | * Set tor_data_dir to null in the default example
* keep old config behavior with new endpoint codeJoe Landers2016-05-21
|
* Merge branch 'feature/https_endpoint'Arturo Filastò2016-05-13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | * feature/https_endpoint: Ensure bouncer_endpoints and collector_endpoints are by default empty lists Remove unused imports Fix typo in gen-ssl-key-cert script only assume HS endpoint when tor_hidden_service: true explain + bail out when inconsistent config Move gen-ssl-key-cert to scripts directory remove another print from debugging maintain old behaviour remove echo server i used for debugging easily swappable {TCP, TLS, onion} endpoints
| * Ensure bouncer_endpoints and collector_endpoints are by default empty listsArturo Filastò2016-05-13
| |
| * Remove unused importsArturo Filastò2016-05-13
| |
| * Fix typo in gen-ssl-key-cert scriptArturo Filastò2016-05-13
| |
| * Merge branch 'feature/https_endpoint' of ↵Arturo Filastò2016-05-13
| |\ | | | | | | | | | | | | | | | | | | | | | github.com:TheTorProject/ooni-backend into feature/https_endpoint * 'feature/https_endpoint' of github.com:TheTorProject/ooni-backend: only assume HS endpoint when tor_hidden_service: true explain + bail out when inconsistent config
| | * only assume HS endpoint when tor_hidden_service: trueJoe Landers2016-05-13
| | |
| | * explain + bail out when inconsistent configJoe Landers2016-05-13
| | |
| * | Move gen-ssl-key-cert to scripts directoryArturo Filastò2016-05-11
| |/
| * remove another print from debuggingJoe Landers2016-05-06
| |
| * maintain old behaviourJoe Landers2016-05-06
| |
| * remove echo server i used for debuggingJoe Landers2016-05-06
| |
| * easily swappable {TCP, TLS, onion} endpointsJoe Landers2016-05-04
| |
* | Download openssl with wget as well to fix SSL errors on MLABArturo Filastò2016-05-10
|/
* Download some with curl some with wgetArturo Filastò2016-04-27
| | | | | | | | For some reason curl on mlab is failing to do a SSL handshake to dist.torproject.org, while wget works. Since we validate the package with gpg anyways it's not a security issue.
* Use wget instead of curl for downloading packagesArturo Filastò2016-04-27
|
* Update tor and openssl versionsArturo Filastò2016-04-27
|
* Set date in ChangeLogv1.2.0Arturo Filastò2016-04-27
| | | | | | * Clean up requirements.txt * Clean up Vagrantfile
* Bump to version 1.2.0Arturo Filastò2016-04-22
|
* Convert msg to debug message to avoid generating too much noiseArturo Filastò2016-04-22
|
* Vagrantfile: make sure it actually worksSimone Basso2016-04-04
| | | | | | | | | | | | | | | | | From the works-for-me-on-vagrant-isnt-this-ironic dept.: 1) stop provision script on error 2) update url required to get latest version of pip 3) zap virtualenv: it is not needed on a customly provisoned temporary virtual machine, plus the `mkvirtualenv` command exited with nonzero exit code for a reason that I wasn't able to understand despite I tried to do so 4) fix typo 5) don't pass nonexisting argument to pip 6) add instructions explaining how to test oonib. (Related pull request: https://github.com/TheTorProject/ooni-backend/pull/64)
* Set the report file template in the example configuration to the defaultArturo Filastò2016-04-04
|
* Merge pull request #67 from TheTorProject/feature/jsonSimone Basso2016-03-28
|\ | | | | Change the value of the key that is sent by the client in the 0.2 dat…
| * Fix unittests to use test_start_timeArturo Filastò2016-03-17
| |
| * Change the value of the key that is sent by the client in the 0.2 dataformatArturo Filastò2016-03-17
| |
* | Merge pull request #62 from TheTorProject/feature/jsonSimone Basso2016-03-15
|\ \ | |/ | | Feature/json
| * Implement test that attempts to write to the backend using JSONArturo Filastò2016-03-10
| |
| * Fixes highlighted by the review of @bassosimoneArturo Filastò2016-03-10
| | | | | | | | | | | | | | | | * Remove duplicated code * Be smarter and not use else when unneeded * Remove dead code
| * Pass report_id to get correct file pathArturo Filastò2016-03-08
| |
| * Add report_id to filepathArturo Filastò2016-03-08
| |
| * More consistency changes and debuggingArturo Filastò2016-03-08
| |
| * Fixes to unittests of report to changes in backendArturo Filastò2016-03-08
| | | | | | | | | | * Minor refactoring of unittests * Fix a backward compatibility bug spotted in unittesting
| * Add support for better handling start_timeArturo Filastò2016-03-08
| | | | | | | | | | | | | | | | Invert inlineCallbacks Convert PUT to POST (PUT is supposed to be indempotent) * Better exception handling for DNS
| * Do not perform the conversions to JSON in the backend, but only write to ↵Arturo Filastò2016-01-27
| | | | | | | | JSON files when it's of file type JSON
| * Do the conversion of YAML to JSON on the submission stageArturo Filastò2016-01-27
| |
| * Start adding support for reporting via JSONArturo Filastò2015-12-04
| |
* | Update README.rstArturo Filastò2016-02-03
| |
* | Merge pull request #58 from dstufft/patch-1Arturo Filastò2015-07-27
|\ \ | |/ |/| Update the pip recommendations
| * Update the pip recommendationsDonald Stufft2015-07-16
|/ | | | | * Recommend at least pip 7 because versions since 1.3 have changed the defaults to better protect end users during install. * Use the new official location for the bootstrap script.
* Don't override errors set via class attributesArturo Filastò2015-01-24
|
* Fix error handling in report updateArturo Filastò2015-01-24
|