From 2ca9496c04715fa3500781ba13b860f0eee9a034 Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Thu, 1 Apr 2021 18:40:30 +0200 Subject: [PATCH] Release: update user-agent, bundled CA, version number (#281) * chore: update the user-agent we use Part of the check-list at https://github.com/ooni/probe/issues/1369. * chore: set version to 3.9.0 See https://github.com/ooni/probe/issues/1369 * chore: run go generate ./... This is meant to update the bundled CA. We have heard of issues with our bundled CA, but it seems there have been no changes upstream. The website https://curl.se/docs/caextract.html still lists as the last change the one done on Jan 19, 2021, which is the version of the CA that we're currently bundling. For the sake of continuing with the release process, I am going to further investigate the CA once the release is done. This chore is part of https://github.com/ooni/probe/issues/1369. --- internal/engine/httpheader/useragent.go | 4 ++-- internal/engine/netx/gocertifi/certifi.go | 4 ++-- internal/engine/ooapi/apis.go | 2 +- internal/engine/ooapi/apis_test.go | 2 +- internal/engine/ooapi/caching.go | 2 +- internal/engine/ooapi/caching_test.go | 2 +- internal/engine/ooapi/callers.go | 2 +- internal/engine/ooapi/clientcall.go | 2 +- internal/engine/ooapi/clientcall_test.go | 2 +- internal/engine/ooapi/cloners.go | 2 +- internal/engine/ooapi/fakeapi_test.go | 2 +- internal/engine/ooapi/login.go | 2 +- internal/engine/ooapi/login_test.go | 2 +- internal/engine/ooapi/requests.go | 2 +- internal/engine/ooapi/responses.go | 2 +- internal/engine/ooapi/swagger_test.go | 4 ++-- internal/version/version.go | 2 +- 17 files changed, 20 insertions(+), 20 deletions(-) diff --git a/internal/engine/httpheader/useragent.go b/internal/engine/httpheader/useragent.go index 6b2811b..2ba4e5f 100644 --- a/internal/engine/httpheader/useragent.go +++ b/internal/engine/httpheader/useragent.go @@ -3,8 +3,8 @@ package httpheader // UserAgent returns the User-Agent header used for measuring. func UserAgent() string { - // 8.0% as of Mar 3, 2021 according to https://techblog.willshouse.com/2012/01/03/most-common-user-agents/ - const ua = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36" + // 11.4% as of Mar 31, 2021 according to https://techblog.willshouse.com/2012/01/03/most-common-user-agents/ + const ua = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36" return ua } diff --git a/internal/engine/netx/gocertifi/certifi.go b/internal/engine/netx/gocertifi/certifi.go index 7968d85..4857759 100644 --- a/internal/engine/netx/gocertifi/certifi.go +++ b/internal/engine/netx/gocertifi/certifi.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 12:20:35.042573349 +0100 CET m=+0.416591177 +// 2021-03-31 16:50:03.221493757 +0200 CEST m=+1.318280953 // https://curl.haxx.se/ca/cacert.pem package gocertifi @@ -3241,7 +3241,7 @@ kpzNNIaRkPpkUZ3+/uul9XXeifdy ` // CACerts builds an X.509 certificate pool containing the -// certificate bundle from https://curl.haxx.se/ca/cacert.pem fetch on 2021-03-10 12:20:35.042573349 +0100 CET m=+0.416591177. +// certificate bundle from https://curl.haxx.se/ca/cacert.pem fetch on 2021-03-31 16:50:03.221493757 +0200 CEST m=+1.318280953. // Returns nil on error along with an appropriate error code. func CACerts() (*x509.CertPool, error) { pool := x509.NewCertPool() diff --git a/internal/engine/ooapi/apis.go b/internal/engine/ooapi/apis.go index 0bf2126..9fdf343 100644 --- a/internal/engine/ooapi/apis.go +++ b/internal/engine/ooapi/apis.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 13:17:31.904167818 +0100 CET m=+0.000077877 +// 2021-03-31 16:50:03.708459546 +0200 CEST m=+0.000228783 package ooapi diff --git a/internal/engine/ooapi/apis_test.go b/internal/engine/ooapi/apis_test.go index f613123..3516771 100644 --- a/internal/engine/ooapi/apis_test.go +++ b/internal/engine/ooapi/apis_test.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 13:17:32.206416809 +0100 CET m=+0.000074280 +// 2021-03-31 16:50:04.057051721 +0200 CEST m=+0.000093878 package ooapi diff --git a/internal/engine/ooapi/caching.go b/internal/engine/ooapi/caching.go index 725d2ab..f0eb820 100644 --- a/internal/engine/ooapi/caching.go +++ b/internal/engine/ooapi/caching.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 13:17:32.455000394 +0100 CET m=+0.000119352 +// 2021-03-31 16:50:04.317557242 +0200 CEST m=+0.000161626 package ooapi diff --git a/internal/engine/ooapi/caching_test.go b/internal/engine/ooapi/caching_test.go index b75e46f..b278884 100644 --- a/internal/engine/ooapi/caching_test.go +++ b/internal/engine/ooapi/caching_test.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 13:17:32.727159555 +0100 CET m=+0.000080664 +// 2021-03-31 16:50:04.580341787 +0200 CEST m=+0.000148802 package ooapi diff --git a/internal/engine/ooapi/callers.go b/internal/engine/ooapi/callers.go index d539634..469ce03 100644 --- a/internal/engine/ooapi/callers.go +++ b/internal/engine/ooapi/callers.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 13:17:32.990745473 +0100 CET m=+0.000093232 +// 2021-03-31 16:50:04.79291318 +0200 CEST m=+0.000077728 package ooapi diff --git a/internal/engine/ooapi/clientcall.go b/internal/engine/ooapi/clientcall.go index e6658aa..98a589b 100644 --- a/internal/engine/ooapi/clientcall.go +++ b/internal/engine/ooapi/clientcall.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 13:17:33.307415377 +0100 CET m=+0.000150212 +// 2021-03-31 16:50:05.02947443 +0200 CEST m=+0.000143471 package ooapi diff --git a/internal/engine/ooapi/clientcall_test.go b/internal/engine/ooapi/clientcall_test.go index 82096b4..51557cc 100644 --- a/internal/engine/ooapi/clientcall_test.go +++ b/internal/engine/ooapi/clientcall_test.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 13:17:33.590560357 +0100 CET m=+0.000145982 +// 2021-03-31 16:50:05.248051533 +0200 CEST m=+0.000086484 package ooapi diff --git a/internal/engine/ooapi/cloners.go b/internal/engine/ooapi/cloners.go index 903318b..16c9584 100644 --- a/internal/engine/ooapi/cloners.go +++ b/internal/engine/ooapi/cloners.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 13:17:33.849313529 +0100 CET m=+0.000136772 +// 2021-03-31 16:50:05.487854795 +0200 CEST m=+0.000140777 package ooapi diff --git a/internal/engine/ooapi/fakeapi_test.go b/internal/engine/ooapi/fakeapi_test.go index 81d096c..f03c3cb 100644 --- a/internal/engine/ooapi/fakeapi_test.go +++ b/internal/engine/ooapi/fakeapi_test.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 13:17:34.086220417 +0100 CET m=+0.000080714 +// 2021-03-31 16:50:05.702711633 +0200 CEST m=+0.000209246 package ooapi diff --git a/internal/engine/ooapi/login.go b/internal/engine/ooapi/login.go index 53a1a72..7296e74 100644 --- a/internal/engine/ooapi/login.go +++ b/internal/engine/ooapi/login.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 13:17:34.342751918 +0100 CET m=+0.000196026 +// 2021-03-31 16:50:05.963781069 +0200 CEST m=+0.000149834 package ooapi diff --git a/internal/engine/ooapi/login_test.go b/internal/engine/ooapi/login_test.go index 209d1ec..d510d25 100644 --- a/internal/engine/ooapi/login_test.go +++ b/internal/engine/ooapi/login_test.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 13:17:34.605701732 +0100 CET m=+0.000131680 +// 2021-03-31 16:50:06.223242139 +0200 CEST m=+0.000161967 package ooapi diff --git a/internal/engine/ooapi/requests.go b/internal/engine/ooapi/requests.go index 78a920f..0e05a0a 100644 --- a/internal/engine/ooapi/requests.go +++ b/internal/engine/ooapi/requests.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 13:17:35.068399906 +0100 CET m=+0.000095438 +// 2021-03-31 16:50:06.482208133 +0200 CEST m=+0.000110650 package ooapi diff --git a/internal/engine/ooapi/responses.go b/internal/engine/ooapi/responses.go index 01d682c..a4a9732 100644 --- a/internal/engine/ooapi/responses.go +++ b/internal/engine/ooapi/responses.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 13:17:35.43791782 +0100 CET m=+0.000136842 +// 2021-03-31 16:50:06.785000911 +0200 CEST m=+0.000179961 package ooapi diff --git a/internal/engine/ooapi/swagger_test.go b/internal/engine/ooapi/swagger_test.go index e775b2f..bc2dc53 100644 --- a/internal/engine/ooapi/swagger_test.go +++ b/internal/engine/ooapi/swagger_test.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2021-03-10 13:17:35.72281221 +0100 CET m=+0.000577472 +// 2021-03-31 16:50:07.052341608 +0200 CEST m=+0.000586077 package ooapi @@ -9,7 +9,7 @@ const swagger = `{ "swagger": "2.0", "info": { "title": "OONI API specification", - "version": "0.20210310.3121735" + "version": "0.20210331.3145007" }, "host": "api.ooni.io", "basePath": "/", diff --git a/internal/version/version.go b/internal/version/version.go index 848e907..c01bb74 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -3,5 +3,5 @@ package version const ( // Version is the software version - Version = "3.9.0-alpha" + Version = "3.9.0" )