[tor-commits] [snowflake/main] Make all snowflake events LogSeverityNotice

2022-02-16 Thread cohosh
commit 3547b284a9abf219053caaabee3a63f6793d8670 Author: Cecylia Bocovich Date: Mon Feb 14 14:09:16 2022 -0500 Make all snowflake events LogSeverityNotice Let's reserve Tor error logs for more severe events that indicate a client-side bug or absolute failure. By default, tor

[tor-commits] [snowflake/main] Add connection failure events for proxy timeouts

2022-02-16 Thread cohosh
commit 2c008d6589e37e77f01a364ab414d6a95218de36 Author: Cecylia Bocovich Date: Mon Feb 14 14:00:01 2022 -0500 Add connection failure events for proxy timeouts This change adds two new connection failure events for snowflake proxies. One fires when the datachannel times out and

[tor-commits] [snowflake/main] Fix client library test

2022-02-16 Thread cohosh
commit 01ae5b56e8399d29aa18605dc9add913d84dc553 Author: Cecylia Bocovich Date: Mon Feb 14 15:11:41 2022 -0500 Fix client library test Initialize eventsLogger for WebRTCPeer in client library test. --- client/lib/lib_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[tor-commits] [snowflake/main] Initialize SnowflakeListener.closed

2022-02-11 Thread cohosh
commit bcc162898a9b085d8543e1aaeff7950b4431c5f3 Author: Cecylia Bocovich Date: Tue Feb 8 13:00:43 2022 -0500 Initialize SnowflakeListener.closed Fixes a bug where an uninitialized channel causes a panic when closed (#40099). --- server/lib/snowflake.go | 6 +- 1 file

[tor-commits] [snowflake/main] Update ChangeLog for v2.1.0 release

2022-02-08 Thread cohosh
commit e6e5e20ae8b5883b37f5dea656540825e237d820 Author: Cecylia Bocovich Date: Tue Feb 8 10:56:19 2022 -0500 Update ChangeLog for v2.1.0 release --- ChangeLog | 12 1 file changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index e4b3998..00f71bf 100644 ---

[tor-commits] [snowflake/main] Remove support for oneshot mode

2022-02-07 Thread cohosh
commit c0b35076c93b19de97989eb1fd5eed74f45635db Author: Cecylia Bocovich Date: Wed Feb 2 19:13:03 2022 -0500 Remove support for oneshot mode Due to a bug (#40098), legacy oneshot connections have not worked for awhile. Connections without the turbotunnel token would cause the

[tor-commits] [snowflake-webext/main] bump version to 0.5.5

2022-01-27 Thread cohosh
commit 3ab17f6ea32125cb0e0c05b3ad2369583f06cc8c Author: Cecylia Bocovich Date: Thu Jan 27 18:00:07 2022 -0500 bump version to 0.5.5 --- package.json | 4 ++-- translation | 2 +- webext/manifest.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git

[tor-commits] [snowflake-webext/main] Close peer connection for NAT check

2022-01-27 Thread cohosh
commit bdc5bab098747af3e6e56ecd37fae2bc13b4f343 Author: Cecylia Bocovich Date: Mon Jan 17 18:56:47 2022 -0500 Close peer connection for NAT check Make sure we close the data channel and peer connection created for our NAT check, regardless of the outcome. --- util.js | 27

[tor-commits] [obfs4/main] fixup! internal/x25519ell2: Initial import

2022-01-24 Thread cohosh
commit 0f7ce7e653ae3a1e615587ab0f160a820186a6f2 Author: Yawning Angel Date: Sat Jan 1 09:29:44 2022 + fixup! internal/x25519ell2: Initial import Fix a comment, no functional changes. --- internal/x25519ell2/x25519ell2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[tor-commits] [obfs4/main] Bump the version to 0.0.13-dev

2022-01-24 Thread cohosh
commit cbf3f3cfa09cf48c42aebd1b96fd7952f1ddb25d Author: Yawning Angel Date: Sun Jan 2 01:22:52 2022 + Bump the version to 0.0.13-dev --- ChangeLog| 2 ++ obfs4proxy/obfs4proxy.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog

[tor-commits] [obfs4/main] internal/x25519ell2: Add a canonical import path annotation

2022-01-24 Thread cohosh
commit c083c6309aa0aa1e5b33e4b096e627869e09214d Author: Yawning Angel Date: Fri Dec 31 06:33:11 2021 + internal/x25519ell2: Add a canonical import path annotation --- internal/x25519ell2/x25519ell2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[tor-commits] [obfs4/main] transports/meek_lite: Bump the version of the utls fork

2022-01-24 Thread cohosh
commit e330d1b7024b4ab04f7d96cc1afc61325744fafc Author: Yawning Angel Date: Tue May 11 22:07:00 2021 + transports/meek_lite: Bump the version of the utls fork And add the Chrome 83 fingerprint. --- ChangeLog| 1 + go.mod | 2

[tor-commits] [obfs4/main] Actually support unsafe logging.

2022-01-24 Thread cohosh
commit f638c33f6c6f697498150d5f0dfbf26453759262 Author: Philipp Winter Date: Mon Dec 7 10:23:44 2020 -0800 Actually support unsafe logging. Obfs4proxy implements the -unsafeLogging switch but it's been ignored so far. This patch makes it work. --- ChangeLog | 1 +

[tor-commits] [obfs4/main] Do the release ritual for obfs4proxy-0.0.12

2022-01-24 Thread cohosh
commit a564bc3840bc788605e1a8155f4b95ce0d70c6db Author: Yawning Angel Date: Fri Dec 31 02:43:14 2021 + Do the release ritual for obfs4proxy-0.0.12 --- ChangeLog| 2 +- go.mod | 2 +- obfs4proxy/obfs4proxy.go | 2 +- 3 files changed, 3 insertions(+), 3

[tor-commits] [obfs4/master] Bump the version to 0.0.13-dev

2022-01-24 Thread cohosh
commit cbf3f3cfa09cf48c42aebd1b96fd7952f1ddb25d Author: Yawning Angel Date: Sun Jan 2 01:22:52 2022 + Bump the version to 0.0.13-dev --- ChangeLog| 2 ++ obfs4proxy/obfs4proxy.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog

[tor-commits] [obfs4/master] fixup! internal/x25519ell2: Initial import

2022-01-24 Thread cohosh
commit 0f7ce7e653ae3a1e615587ab0f160a820186a6f2 Author: Yawning Angel Date: Sat Jan 1 09:29:44 2022 + fixup! internal/x25519ell2: Initial import Fix a comment, no functional changes. --- internal/x25519ell2/x25519ell2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[tor-commits] [obfs4/master] internal/x25519ell2: Add a canonical import path annotation

2022-01-24 Thread cohosh
commit c083c6309aa0aa1e5b33e4b096e627869e09214d Author: Yawning Angel Date: Fri Dec 31 06:33:11 2021 + internal/x25519ell2: Add a canonical import path annotation --- internal/x25519ell2/x25519ell2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[tor-commits] [obfs4/master] Do the release ritual for obfs4proxy-0.0.12

2022-01-24 Thread cohosh
commit a564bc3840bc788605e1a8155f4b95ce0d70c6db Author: Yawning Angel Date: Fri Dec 31 02:43:14 2021 + Do the release ritual for obfs4proxy-0.0.12 --- ChangeLog| 2 +- go.mod | 2 +- obfs4proxy/obfs4proxy.go | 2 +- 3 files changed, 3 insertions(+), 3

[tor-commits] [obfs4/master] transports/meek_lite: Bump the version of the utls fork

2022-01-24 Thread cohosh
commit e330d1b7024b4ab04f7d96cc1afc61325744fafc Author: Yawning Angel Date: Tue May 11 22:07:00 2021 + transports/meek_lite: Bump the version of the utls fork And add the Chrome 83 fingerprint. --- ChangeLog| 1 + go.mod | 2

[tor-commits] [obfs4/master] Actually support unsafe logging.

2022-01-24 Thread cohosh
commit f638c33f6c6f697498150d5f0dfbf26453759262 Author: Philipp Winter Date: Mon Dec 7 10:23:44 2020 -0800 Actually support unsafe logging. Obfs4proxy implements the -unsafeLogging switch but it's been ignored so far. This patch makes it work. --- ChangeLog | 1 +

[tor-commits] [snowflake/main] increase clientIDAddrMapCapacity

2022-01-18 Thread cohosh
commit d2f6ea5417566966bedf8fef261199f0ebc360a2 Author: Shelikhoo Date: Thu Jan 6 20:40:21 2022 + increase clientIDAddrMapCapacity See also: https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40084 --- server/lib/http.go | 2 +- 1

[tor-commits] [snowflake/main] Suppress connection end log output

2022-01-18 Thread cohosh
commit 50646698e3e213fd9e714c327463eed87c4fb5f3 Author: Shelikhoo Date: Thu Jan 6 20:31:15 2022 + Suppress connection end log output This is an amendment of https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/merge_requests/30 ---

[tor-commits] [snowflake/main] Validate client and proxy supplied strings

2022-01-18 Thread cohosh
commit b35a79ac247e53ca0a2dd25625e083e9bba395fa Author: Cecylia Bocovich Date: Wed Jan 12 10:53:58 2022 -0500 Validate client and proxy supplied strings Malicious clients and proxies can provide potentially malicious strings in the polls. This validates the NAT type and proxy

[tor-commits] [snowflake/main] Update go versions in CI tests

2021-12-14 Thread cohosh
commit 9c11e479d0d6fdcad47c9f3d55179dd907422a3a Author: Cecylia Bocovich Date: Fri Dec 10 10:43:31 2021 -0500 Update go versions in CI tests Debian packages Go 1.15 and 1.17, and we use 1.16 in Tor Browser. --- .gitlab-ci.yml | 15 +++ 1 file changed, 11

[tor-commits] [snowflake/main] Update version of DTLS library

2021-12-14 Thread cohosh
commit 738bd464eac631dd296ebf932f0a98f9bb9868e3 Author: Cecylia Bocovich Date: Fri Dec 10 10:29:47 2021 -0500 Update version of DTLS library Make sure we use a version of the DTLS library that contains the following fingerprinting fixes: Only send supported_groups

[tor-commits] [snowflake/main] Bump snowflake library imports and go.mod to v2

2021-11-11 Thread cohosh
commit ead5a960d7fa19dc890ccbfc0765c5ab6629eaa9 Author: Cecylia Bocovich Date: Thu Nov 11 10:14:49 2021 -0500 Bump snowflake library imports and go.mod to v2 --- .travis.yml| 2 +- broker/amp.go | 4 ++-- broker/broker.go |

[tor-commits] [snowflake/main] Update ChangeLog for v2 release

2021-11-11 Thread cohosh
commit f6b6342a3a0d38257cd492140fccc8c65c07310c Author: Cecylia Bocovich Date: Thu Nov 4 10:34:34 2021 -0400 Update ChangeLog for v2 release --- ChangeLog | 16 1 file changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6c9b992..e4b3998 100644 ---

[tor-commits] [snowflake/main] Export ability to change the URL of NAT probe

2021-10-28 Thread cohosh
commit 0a2598a1e854243b2f69dae05d713260b4816098 Author: Cecylia Bocovich Date: Tue Oct 26 15:43:36 2021 -0400 Export ability to change the URL of NAT probe --- proxy/lib/snowflake.go | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/proxy/lib/snowflake.go

[tor-commits] [snowflake/main] Modify handling of misconfigurations and defaults

2021-10-28 Thread cohosh
commit 3caa83d84de681b3cd38f4c61cfef2e9bd091176 Author: Cecylia Bocovich Date: Tue Oct 26 15:40:32 2021 -0400 Modify handling of misconfigurations and defaults --- proxy/lib/snowflake.go | 34 -- proxy/main.go | 8 ++-- 2 files changed, 26

[tor-commits] [snowflake/main] Remove BytesLoggers from exported functions

2021-10-28 Thread cohosh
commit b2edf948e21c2420d3b3696c680856f106dae9f4 Author: Cecylia Bocovich Date: Tue Oct 26 14:52:17 2021 -0400 Remove BytesLoggers from exported functions --- proxy/lib/snowflake.go | 2 +- proxy/lib/util.go | 40 proxy/lib/webrtcconn.go |

[tor-commits] [snowflake/main] Update comments for exported items

2021-10-28 Thread cohosh
commit 0e8d41ba4b694b334775fcd9f4330d9b5b31e85c Author: Cecylia Bocovich Date: Tue Oct 26 15:28:27 2021 -0400 Update comments for exported items --- proxy/lib/snowflake.go | 46 ++ 1 file changed, 22 insertions(+), 24 deletions(-) diff --git

[tor-commits] [snowflake/main] Comment package and minor changes exports

2021-10-28 Thread cohosh
commit 84e8a183e59d0e4cea3dd572e87a221379d968f9 Author: Cecylia Bocovich Date: Tue Oct 26 15:10:59 2021 -0400 Comment package and minor changes exports --- proxy/lib/proxy-go_test.go | 2 +- proxy/lib/snowflake.go | 36 +--- proxy/lib/tokens.go

[tor-commits] [snowflake/main] Turn the proxy code into a library

2021-10-26 Thread cohosh
commit 50e4f4fd61596bab254cb34e850c9ae63d82f891 Author: idk Date: Mon Oct 25 22:51:40 2021 -0400 Turn the proxy code into a library Allow other go programs to easily import the snowflake proxy library and start/stop a snowflake proxy. --- proxy/{ => lib}/proxy-go_test.go |

[tor-commits] [snowflake/main] Unify broker/bridge domains to torproject.net

2021-10-14 Thread cohosh
commit 54ab79384f94b52edc444063408de1394e507417 Author: Cecylia Bocovich Date: Thu Oct 14 11:14:22 2021 -0400 Unify broker/bridge domains to torproject.net --- doc/snowflake-proxy.1 | 4 ++-- proxy/README.md | 4 ++-- proxy/snowflake.go| 4 ++-- 3 files changed, 6 insertions(+),

[tor-commits] [snowflake-webext/main] Unify bridge/broker domains to freehaven.net

2021-10-14 Thread cohosh
commit 2eb7adaa66485ac088eba8c6f856bf9717fdd311 Author: Cecylia Bocovich Date: Thu Oct 14 11:21:00 2021 -0400 Unify bridge/broker domains to freehaven.net It's still the case that torproject.net can be blocked on residential or public networks, so we're going with the safer

[tor-commits] [snowflake/main] Add documentation where necessary for exported items

2021-10-07 Thread cohosh
commit 4623c7d3e163f8384d4c8ce74b3bf3126b630306 Author: Cecylia Bocovich Date: Fri Oct 1 13:34:48 2021 -0400 Add documentation where necessary for exported items --- server/lib/http.go | 1 + server/lib/snowflake.go | 18 +- 2 files changed, 14 insertions(+), 5

[tor-commits] [snowflake/main] Stop exporting internal code

2021-10-07 Thread cohosh
commit 5339ed2dd772e54912bd80d4ff828f56bd854272 Author: Cecylia Bocovich Date: Fri Oct 1 13:24:16 2021 -0400 Stop exporting internal code --- server/lib/http.go | 6 +++--- server/lib/snowflake.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git

[tor-commits] [snowflake/main] Change package name and add a package comment

2021-10-07 Thread cohosh
commit 04ba50a531f118b710edd6722e8e07fc9f3a9b3c Author: Cecylia Bocovich Date: Fri Oct 1 13:44:31 2021 -0400 Change package name and add a package comment --- server/lib/http.go | 2 +- server/lib/server_test.go | 2 +- server/lib/snowflake.go| 38

[tor-commits] [snowflake/main] Default to a maximum value of 1 Snowflake peer

2021-10-04 Thread cohosh
commit 5927c2bdf9266f70856602a666928da397f19bdb Author: Cecylia Bocovich Date: Wed Sep 29 15:48:31 2021 -0400 Default to a maximum value of 1 Snowflake peer --- client/lib/snowflake.go | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/client/lib/snowflake.go

[tor-commits] [snowflake/main] Update client library usage documentation

2021-10-04 Thread cohosh
commit 767c07dc58c97382e32d3a8388ed468b32ccf382 Author: Cecylia Bocovich Date: Thu Sep 9 16:11:01 2021 -0400 Update client library usage documentation --- doc/using-the-snowflake-library.md | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git

[tor-commits] [snowflake/main] Stop exporting code that should be internal

2021-10-04 Thread cohosh
commit 624750d5a8a0b0acedd495168bcb2b5fc627fcb8 Author: Cecylia Bocovich Date: Thu Sep 9 11:34:07 2021 -0400 Stop exporting code that should be internal --- client/lib/interfaces.go | 11 --- client/lib/peers.go | 4 ++-- client/lib/rendezvous.go | 16

[tor-commits] [snowflake/main] Update Snowflake client library documentation

2021-10-04 Thread cohosh
commit 638ec6c222327ca02950338b2919ce8b22e1f900 Author: Cecylia Bocovich Date: Thu Sep 9 16:01:38 2021 -0400 Update Snowflake client library documentation Follow best practices for documenting the exported pieces of the Snowflake client library. --- client/lib/interfaces.go

[tor-commits] [snowflake/main] Add package functions to define and set the rendezvous method

2021-10-04 Thread cohosh
commit 99887cd05d830896d2b2cda9809e4ff1a2836c93 Author: Cecylia Bocovich Date: Thu Sep 9 12:54:31 2021 -0400 Add package functions to define and set the rendezvous method Add exported functions to the snowflake client library to allow calling programs to define and set their

[tor-commits] [snowflake/main] Change package name and add a package comment

2021-10-04 Thread cohosh
commit 6c6a2e44abdd71e1f369d32bc3f1b9f7ed00102c Author: Cecylia Bocovich Date: Thu Sep 9 16:25:07 2021 -0400 Change package name and add a package comment --- client/lib/interfaces.go | 2 +- client/lib/lib_test.go| 2 +- client/lib/peers.go | 2 +-

[tor-commits] [snowflake/main] Check error for calls to preparePeerConnection

2021-09-30 Thread cohosh
commit 8c6f0dbae714908094b828e6f31e9729a6daafe5 Author: Cecylia Bocovich Date: Thu Aug 26 12:41:20 2021 -0400 Check error for calls to preparePeerConnection --- client/lib/webrtc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/lib/webrtc.go

[tor-commits] [snowflake/main] Update version of go used in .gitlab-ci.yml

2021-09-10 Thread cohosh
commit c8136f4534003cc53d95480fbf0151a21859d11b Author: Cecylia Bocovich Date: Fri Sep 10 10:15:15 2021 -0400 Update version of go used in .gitlab-ci.yml --- .gitlab-ci.yml | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index

[tor-commits] [snowflake/main] Fix compile bug in client, caught by CI

2021-08-24 Thread cohosh
commit ace8df37ed39d77f9db97ead6e9ebac5a8148285 Author: Cecylia Bocovich Date: Tue Aug 24 10:27:24 2021 -0400 Fix compile bug in client, caught by CI --- client/snowflake.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/snowflake.go b/client/snowflake.go index

[tor-commits] [snowflake/main] Use a config struct for snowflake client options

2021-08-23 Thread cohosh
commit 4acc08cc60d46ba1ffce9b4492b974eff385e46b Author: Cecylia Bocovich Date: Fri Aug 13 10:23:46 2021 -0400 Use a config struct for snowflake client options --- client/lib/snowflake.go | 20 ++-- client/snowflake.go | 11 +-- 2 files changed, 23

[tor-commits] [snowflake/main] Parse SOCKS arguments and prefer over command line options

2021-08-23 Thread cohosh
commit e762f58a31de9167933fbd75047a48d2e1cdeb36 Author: Cecylia Bocovich Date: Fri Aug 13 10:55:52 2021 -0400 Parse SOCKS arguments and prefer over command line options Parsing the Snowflake client options from SOCKS allow us to specify snowflake client settings in the bridge

[tor-commits] [snowflake/main] Modify torrc example to pass client args in bridge line

2021-08-23 Thread cohosh
commit 97175a91a59216d7eddade4be5c92c82bd225f86 Author: Cecylia Bocovich Date: Fri Aug 13 12:29:48 2021 -0400 Modify torrc example to pass client args in bridge line --- client/README.md | 2 +- client/torrc | 8 +++- client/torrc-localhost | 8

[tor-commits] [snowflake/main] Call conn.Reject() if SOCKS arguments are invalid

2021-08-23 Thread cohosh
commit a39d6693e15f8a839014f288a749fcc4180b71ea Author: Cecylia Bocovich Date: Thu Aug 19 21:31:51 2021 -0400 Call conn.Reject() if SOCKS arguments are invalid --- client/snowflake.go | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git

[tor-commits] [snowflake/main] Increase smux and QueuePacketConn buffer sizes

2021-08-10 Thread cohosh
commit e6715cb4ee3e577c83bb4edc40fcc5018ac70bb7 Author: Cecylia Bocovich Date: Wed Jul 14 14:42:17 2021 -0400 Increase smux and QueuePacketConn buffer sizes This should increase the maximum amount of inflight data and hopefully the performance of Snowflake, especially for

[tor-commits] [snowflake-webext/main] Add secure and samesite flags to badge cookie

2021-07-30 Thread cohosh
commit 47ab525ca498bf8699e043aa66c9cabe63d80bfd Author: Cecylia Bocovich Date: Thu Jul 29 08:08:58 2021 -0400 Add secure and samesite flags to badge cookie It looks like there have been several browser security improvements to prevent CSRF attacks. Chrome and Firefox now

[tor-commits] [snowflake/main] Added some Snowflake library documentation

2021-07-19 Thread cohosh
commit b4e964c682bd7deaa456ed0b4a80e1e7af994d11 Author: Cecylia Bocovich Date: Thu Jul 15 11:43:05 2021 -0400 Added some Snowflake library documentation --- README.md | 2 +- doc/using-the-snowflake-library.md | 105 + 2 files

[tor-commits] [snowflake/main] Cleaned up and reorganized READMEs

2021-07-19 Thread cohosh
There is a Docker-based test environment at https://github.com/cohosh/snowbox. - ### FAQ **Q: How does it work?** @@ -103,17 +84,6 @@ manual port forwarding! It utilizes the "ICE" negotiation via WebRTC, and also involves a great abundance of ephemeral and short-lived (and special!) volunte

[tor-commits] [snowflake-webext/main] Point users to community doc for standalone proxy

2021-07-14 Thread cohosh
commit 37f956a498cf2037eefc50ac5ca6f32121e6a82e Author: Cecylia Bocovich Date: Fri Jun 25 19:35:03 2021 -0400 Point users to community doc for standalone proxy --- static/_locales/en_US/messages.json | 7 +-- static/index.html | 3 +++ 2 files changed, 8

[tor-commits] [snowflake/main] Version bump to v1.1.0

2021-07-13 Thread cohosh
commit 4f7833b3840163f8ca256ada0f8292ed2bdc0ceb Author: Cecylia Bocovich Date: Tue Jul 13 17:50:44 2021 -0400 Version bump to v1.1.0 --- ChangeLog | 11 +++ 1 file changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index b2d0733..6c9b992 100644 --- a/ChangeLog +++

[tor-commits] [snowflake/main] Update example torrc file for client

2021-06-24 Thread cohosh
commit 74bdb85b300cfec1694ffdb091a0efec31326579 Author: Cecylia Bocovich Date: Thu Jun 24 13:46:11 2021 -0400 Update example torrc file for client Remove the -max 3 option because we only use one snowflake. Add SocksPort auto because many testers have a tor process already

[tor-commits] [snowflake/main] Fix leak in server acceptLoop

2021-06-24 Thread cohosh
commit 53a2365696d144921eae57c790083e502628135d Author: Cecylia Bocovich Date: Thu Jun 24 09:33:19 2021 -0400 Fix leak in server acceptLoop Refactor out a separate handleStream function and ensure that all connections are closed and the references are out of scope. ---

[tor-commits] [snowflake/main] Refactor checkForStaleness to take time.Duration

2021-06-24 Thread cohosh
commit 10b6075eaa90d65ebb4838b24ca8db4924e572ec Author: Cecylia Bocovich Date: Thu Jun 24 11:20:44 2021 -0400 Refactor checkForStaleness to take time.Duration --- client/lib/lib_test.go | 4 ++-- client/lib/webrtc.go | 8 2 files changed, 6 insertions(+), 6 deletions(-) diff

[tor-commits] [snowflake/main] Fix data race for Peers.collection

2021-06-24 Thread cohosh
commit e3351cb08abe6b806fa018bc8915f0f5ae045a40 Author: Cecylia Bocovich Date: Mon Jun 21 15:39:41 2021 -0400 Fix data race for Peers.collection We used a WaitGroup to prevent a call to Peers.End from melting snowflakes while a new one is being collected. However, calls to

[tor-commits] [snowflake/main] Fix datarace for WebRTCPeer.lastReceive

2021-06-24 Thread cohosh
commit ed2d5df87d0be7c86f21d19d42ec90b8d2616ae2 Author: Simone Basso Date: Mon Jun 14 10:46:46 2021 +0200 Fix datarace for WebRTCPeer.lastReceive The race condition occurs because concurrent goroutines are intermixing reads and writes of `WebRTCPeer.lastReceive`.

[tor-commits] [snowflake/main] Fix datarace for Peers.melted

2021-06-24 Thread cohosh
commit bb7ff6180bf2cb9553db8cbb4600092107cf9303 Author: Cecylia Bocovich Date: Thu Jun 17 17:42:22 2021 -0400 Fix datarace for Peers.melted Using the boolean value was unnecessary since we already have a channel we can check for closure. --- client/lib/peers.go | 8

[tor-commits] [snowflake/main] Fix datarace for WebRTCPeer.closed

2021-06-24 Thread cohosh
commit ddcdfc4f0922e00c672797b0d6544371423f2989 Author: Cecylia Bocovich Date: Thu Jun 17 16:36:50 2021 -0400 Fix datarace for WebRTCPeer.closed The race condition occurs because concurrent goroutines are intermixing reads and writes of `WebRTCPeer.closed`. Spotted

[tor-commits] [snowflake/main] Add unit tests to check for webrtc peer data races

2021-06-24 Thread cohosh
commit 95cbe36565d65bf1512acd0faeab9a1e2580808f Author: Cecylia Bocovich Date: Thu Jun 17 17:43:40 2021 -0400 Add unit tests to check for webrtc peer data races --- client/lib/lib_test.go | 31 +++ 1 file changed, 31 insertions(+) diff --git

[tor-commits] [snowflake/main] Bump version of kcp and smux libraries

2021-06-23 Thread cohosh
commit e84bc81e310f9ba95b6aab6c5d3b8be4ecbae030 Author: Cecylia Bocovich Date: Wed Jun 23 19:39:52 2021 -0400 Bump version of kcp and smux libraries --- go.mod | 4 ++-- go.sum | 46 -- 2 files changed, 34 insertions(+), 16 deletions(-) diff

[tor-commits] [snowflake/main] Store net.Addr in clientIDAddrMap

2021-06-21 Thread cohosh
commit 6634f2bec9ea7c538a819619d003db4ea2947a60 Author: Cecylia Bocovich Date: Sat Jun 19 11:16:38 2021 -0400 Store net.Addr in clientIDAddrMap This fixes a stats collection bug where we were converting client addresses between a string and net.Addr using the clientAddr

[tor-commits] [snowflake/main] fix(client/snowflake.go): prevent wg.Add race condition

2021-06-14 Thread cohosh
commit aefabe683f3fba846707a9f3a5e11f9b4be16990 Author: Simone Basso Date: Mon May 3 10:23:03 2021 +0200 fix(client/snowflake.go): prevent wg.Add race condition In VSCode, the staticcheck tool emits this warning: > should call wg.Add(1) before starting the goroutine to

[tor-commits] [snowflake/main] Add changelog and release v1.0.0

2021-06-07 Thread cohosh
commit 8e0b5bd20a91fabbdaa156ae3b58d35d7e8d4d71 Author: Cecylia Bocovich Date: Mon Jun 7 10:24:19 2021 -0400 Add changelog and release v1.0.0 --- ChangeLog | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 000..b2d0733 ---

[tor-commits] [snowflake/main] Encode client-broker messages as json in HTTP body

2021-06-02 Thread cohosh
commit 270eb218037ca78c5a09d8e8cae9187a22cee122 Author: Cecylia Bocovich Date: Wed May 5 15:31:39 2021 -0400 Encode client-broker messages as json in HTTP body Send the client poll request and response in a json-encoded format in the HTTP request body rather than sending the

[tor-commits] [snowflake/main] Fix error handling around transport.Dial.

2021-05-28 Thread cohosh
commit 01a96c7d95bfcc6ec5b6a770c8a56ef7da6605f4 Author: David Fifield Date: Mon May 24 14:36:24 2021 -0600 Fix error handling around transport.Dial. The code checked for and displayed an error, but would then go on to call copyLoop on the nil Conn returned from transport.Dial.

[tor-commits] [snowflake/main] Release resources in client Transport.Dial on error.

2021-05-28 Thread cohosh
commit ae7cc478fd345a1e588f8315ec980809c6806372 Author: David Fifield Date: Mon May 24 15:09:29 2021 -0600 Release resources in client Transport.Dial on error. Make a stack of cleanup functions to run (as with defer), but clear the stack before returning if no error occurs.

[tor-commits] [snowflake/main] Update .gitlab-ci.yml after refactor of client

2021-05-12 Thread cohosh
commit 0054cb2dec19e89e07b8c5a6d8b9d23589842deb Author: Cecylia Bocovich Date: Wed May 12 10:40:56 2021 -0400 Update .gitlab-ci.yml after refactor of client --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index

[tor-commits] [snowflake/main] Ensure turbotunnel read and write loop terminate

2021-05-12 Thread cohosh
commit 7c9005bed3e353c4e108355abd1ed4b35099f2ea Author: Cecylia Bocovich Date: Wed May 12 09:32:07 2021 -0400 Ensure turbotunnel read and write loop terminate Introduce a waitgroup and done channel to ensure that both the read and write gorouting for turbotunnel connections

[tor-commits] [snowflake/main] Implement server as a v2.1 PT Go API

2021-05-12 Thread cohosh
commit 11f0846264d4033e7a7dc7824febb6ad7140762f Author: Cecylia Bocovich Date: Sat Mar 20 18:24:00 2021 -0400 Implement server as a v2.1 PT Go API --- server/lib/http.go | 211 + server/lib/server_test.go| 55 + server/lib/snowflake.go

[tor-commits] [snowflake/main] Implement snowflake client lib as PTv2.1 Go API

2021-05-12 Thread cohosh
commit e87b9175dd7559fccd665cd7eb4b6edecc231950 Author: Cecylia Bocovich Date: Sat Mar 20 12:36:33 2021 -0400 Implement snowflake client lib as PTv2.1 Go API This implements a pluggable transports v2.1 compatible Go API in the Snowflake client library, and refactors how the

[tor-commits] [bridgedb/develop] Merge branch 'issue#27984' into 'develop'

2021-04-30 Thread cohosh
commit 188aca3a8835d881b866c29448a99d77c291f68e Merge: f4f1fbb 6bbc11b Author: Cecylia Bocovich Date: Fri Apr 30 16:18:56 2021 + Merge branch 'issue#27984' into 'develop' Fix for issue #27984 See merge request tpo/anti-censorship/bridgedb!14 bridgedb/crypto.py

[tor-commits] [bridgedb/develop] Fix for issue #27984

2021-04-30 Thread cohosh
commit 6bbc11b2f0683d55390dfcc2c4409f51d866fe2e Author: agix Date: Thu Apr 29 15:15:56 2021 +0200 Fix for issue #27984 Changed the hostname check by using verify_certificate_hostname from the service identity package for complete hostname verification. Added wildcard

[tor-commits] [snowflake/master] Implement binned counts for polling metrics

2021-04-26 Thread cohosh
commit 92bd900bc57f1d56c21c5abf736deb6ce3a83837 Author: Cecylia Bocovich Date: Wed Mar 31 10:52:01 2021 -0400 Implement binned counts for polling metrics --- broker/metrics.go | 38 +++ broker/prometheus.go| 83

[tor-commits] [snowflake/master] Replace default with custom prometheus registry

2021-04-26 Thread cohosh
commit af6e2c30e1a6aacc6e7adf9a31df0a387891cc37 Author: Cecylia Bocovich Date: Thu Apr 1 14:21:12 2021 -0400 Replace default with custom prometheus registry The default prometheus registry exports data that may be useful for side-channel attacks. This removes all of the

[tor-commits] [snowflake/master] Add new gauge to show currently available proxies

2021-04-26 Thread cohosh
commit 2a310682b51b3da514d7e1927aafcdae9b9c8820 Author: Cecylia Bocovich Date: Wed Mar 31 17:22:31 2021 -0400 Add new gauge to show currently available proxies --- broker/broker.go | 3 +++ broker/metrics.go | 16 +--- 2 files changed, 16 insertions(+), 3 deletions(-) diff

[tor-commits] [snowflake/master] Export snowflake broker metrics for prometheus

2021-04-26 Thread cohosh
commit 83ef0b6f6de83e877caf455f17732acf8eb9b232 Author: Cecylia Bocovich Date: Tue Mar 30 15:40:02 2021 -0400 Export snowflake broker metrics for prometheus This change adds a prometheus exporter for our existing snowflake broker metrics. Current values for the metrics can be

[tor-commits] [snowflake-webext/master] bump version to 0.5.4

2021-04-12 Thread cohosh
commit d2599da5a0149372e88ca744715c34429b9251fe Author: Cecylia Bocovich Date: Mon Apr 12 16:24:47 2021 -0400 bump version to 0.5.4 --- package.json | 4 ++-- translation | 2 +- webext/manifest.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git

[tor-commits] [snowflake/master] Switch front domain and host to fastly

2021-04-05 Thread cohosh
commit eff73c3016ec259918e117665833df04f1755e80 Author: Cecylia Bocovich Date: Thu Apr 1 11:29:52 2021 -0400 Switch front domain and host to fastly --- client/torrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/torrc b/client/torrc index 813d22d..7a1dbdf

[tor-commits] [snowflake/master] Update Go version for .gitlab-ci.yml

2021-03-25 Thread cohosh
commit 196c230ac7e6e2d6be7c00d2c3f90e11d23b21b7 Author: Cecylia Bocovich Date: Tue Feb 2 16:11:29 2021 -0500 Update Go version for .gitlab-ci.yml --- .gitlab-ci.yml | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index

[tor-commits] [snowflake/master] Update webrtc library to v3.0.15

2021-03-18 Thread cohosh
commit 087a037f82d7088c253936f5450c933867b10b2d Author: Cecylia Bocovich Date: Thu Mar 18 23:08:05 2021 -0400 Update webrtc library to v3.0.15 This fixes a vulnerability in the library: CVE-2021-28681 --- go.mod | 13 - go.sum | 56

[tor-commits] [snowflake-webext/master] Update link to documentation wiki

2021-03-18 Thread cohosh
commit 9df27c83d6ea87488c470c059d9e7c0728f0b4c4 Author: Cecylia Bocovich Date: Thu Mar 18 22:21:23 2021 -0400 Update link to documentation wiki --- static/_locales/en_US/messages.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/_locales/en_US/messages.json

[tor-commits] [snowflake/master] Don't log io.ErrClosedPipe in server

2021-03-18 Thread cohosh
commit 720d2b8eb7be9e2a41126624083054a66017d452 Author: Cecylia Bocovich Date: Mon Mar 8 21:50:42 2021 -0500 Don't log io.ErrClosedPipe in server These errors are triggered in three places when the OR connection times out. They don't tell us anything useful and are filling up

[tor-commits] [snowflake/master] Don't log errors from callng close on OR conns

2021-03-18 Thread cohosh
commit c0b6e082f2f30cbeca962937ea5a777b98cf3ebb Author: Cecylia Bocovich Date: Mon Mar 8 22:16:33 2021 -0500 Don't log errors from callng close on OR conns Snowflake copies data between the OR connection and the KCP stream, meaning that in most cases the copy loops will only

[tor-commits] [gettor/master] Treat all email sending exceptions the same

2021-03-07 Thread cohosh
commit fc9e1ed212d54cf682601a1caaa7e289a43d50cf Author: Cecylia Bocovich Date: Sun Mar 7 19:15:21 2021 -0500 Treat all email sending exceptions the same In the previous commit, we forgot to remove requests that trigger exceptions other than SMTPClientError. ---

[tor-commits] [gettor/master] Redact email addr from error msgs

2021-03-07 Thread cohosh
commit ae30ca5e2288efd083ebe112dc9628aeb5fce4f8 Author: hanneloresx Date: Sat Jan 23 17:56:08 2021 -0500 Redact email addr from error msgs Addresses issue #34058 to scrub logs of personal info. --- gettor/services/email/sendmail.py | 8 ++-- gettor/utils/strings.py

[tor-commits] [gettor/master] Remove all requests that cause exceptions from db

2021-03-07 Thread cohosh
commit 80371ae66a6c62e1a1d18e5fd123729925a88b4d Author: Cecylia Bocovich Date: Sun Mar 7 19:09:06 2021 -0500 Remove all requests that cause exceptions from db This solves gettor#77 where a non-ascii email address was causing our SMTP client to throw an error. We need to remove

[tor-commits] [gettor/master] fix minor spelling error

2021-03-07 Thread cohosh
commit dd2818ee27b8e0e9c08d34ef864a5168d10e0e0b Author: hanneloresx Date: Sat Jan 23 17:46:20 2021 -0500 fix minor spelling error --- gettor/utils/validate_email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gettor/utils/validate_email.py

[tor-commits] [bridgedb/develop] Remove files created during unit tests

2021-03-02 Thread cohosh
commit f4f1fbb5bffbf1f49608dd67cf3e8cdcf20c4f57 Author: Cecylia Bocovich Date: Fri Feb 26 15:05:55 2021 -0500 Remove files created during unit tests --- bridgedb/test/test_parse_descriptors.py | 53 + 1 file changed, 53 insertions(+) diff --git

[tor-commits] [bridgedb/develop] Bug 40006: Parse remaining descs on validate error

2021-03-02 Thread cohosh
commit d0144118e07d868a45108ba82e97a1a181f7bb08 Author: Cecylia Bocovich Date: Thu Feb 18 17:24:37 2021 -0500 Bug 40006: Parse remaining descs on validate error If there was a faulty descriptor in the extrainfo document, Stem will throw an exception and we loose the rest of

[tor-commits] [bridgedb/develop] Update instructions for creating mock bridges

2021-03-02 Thread cohosh
commit a9be3c3ce2c6259dbc312451803f2052b709afd1 Author: Cecylia Bocovich Date: Thu Feb 11 20:00:12 2021 -0500 Update instructions for creating mock bridges --- README.rst | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.rst b/README.rst index

[tor-commits] [bridgedb/develop] Trust but verify bridge descriptors

2021-03-02 Thread cohosh
commit 60e809ffa7aa22de9cd7e5e152e6916606b387d5 Author: Cecylia Bocovich Date: Wed Feb 24 11:15:10 2021 -0500 Trust but verify bridge descriptors These descriptors are already validated by the Bridge Authority. Instead of potentially DoS-ing ourselves, accept all descriptors

[tor-commits] [bridgedb/develop] Merge branch 'update_readme' into 'develop'

2021-03-02 Thread cohosh
commit ff05e39c51a42d314e973f353d30ecff1e5f141e Merge: 8e7c77a a9be3c3 Author: Cecylia Bocovich Date: Fri Feb 12 14:09:47 2021 + Merge branch 'update_readme' into 'develop' Update instructions for creating mock bridges See merge request tpo/anti-censorship/bridgedb!12

[tor-commits] [bridgedb/develop] Update create_descriptors to make vanilla bridges

2021-03-02 Thread cohosh
commit 42e9abec3db730abff47983ad85f2398433d68b6 Author: Cecylia Bocovich Date: Thu Feb 11 15:30:10 2021 -0500 Update create_descriptors to make vanilla bridges --- scripts/create_descriptors | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git

[tor-commits] [snowflake/master] Log a throughput summary for each connection

2021-02-02 Thread cohosh
commit 7187f1009ef7aaae6aa557fe1f724aa1df718b24 Author: Cecylia Bocovich Date: Mon Jan 25 13:01:37 2021 -0500 Log a throughput summary for each connection This will increase transparency for people running standalone proxies and help us debug any potential issues with proxies

  1   2   3   4   5   6   >