ooni-probe-cli/internal/engine
Simone Basso 264e30f016
[forwardport] fix(mk): do nothing if we already have psiphon config (#605) (#606)
This diff forward ports ea44e99451f345474738b9010ff791759a1f1367.

Original commit message:

- - -

This change allows for producing cloud builds using the psiphon
config files. We will add those files as build secrets. Only people
in the organization and collaborators with at least "write"
access could trigger builds containing such secrets.

Before this change, `./mk` unconditionally attempted to clone
github.com/ooni/probe-private. Now, it only checks whether
we need to clone _if_ files are not already there.

This allows us to use GitHub actions and secrets to copy the
files in there _without_ needing to clone a private repo.

Cloning a private repo would require us to include as repository
secret an access token with full `repo` scope, which is a very
broad scope. Instead, by using secrets to include psiphon config,
we are narrowing down the secrets required to make a release build.

See https://github.com/ooni/probe/issues/1878

This diff WILL require forward porting to the master branch.
2021-11-19 12:40:10 +01:00
..
experiment [forwardport] fix(signal): use the correct string to score a measurement (#602) (#603) 2021-11-16 15:57:16 +01:00
geolocate fix(geolocate): use powerdns.org whoami service (#592) 2021-11-12 14:53:15 +01:00
httpheader fix(httpheader): use same Accept-Language as Brave (#574) 2021-11-05 11:31:10 +01:00
httpx refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
internal [forwardport] fix: avoid http3 for dns.google and www.google.com (#593) (#594) 2021-11-12 14:43:28 +01:00
legacy [forwardport] fix: avoid http3 for dns.google and www.google.com (#593) (#594) 2021-11-12 14:43:28 +01:00
mockable feat: tutorial on how to write the torsf experiment (#390) 2021-06-22 00:12:03 +02:00
model fix(websteps): use correct input for each URL measurement (#536) 2021-10-05 12:29:00 +02:00
netx [forwardport] fix: avoid http3 for dns.google and www.google.com (#593) (#594) 2021-11-12 14:43:28 +01:00
probeservices refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
testdata fix: add missing files causing tests to fail (#202) 2021-02-02 14:18:22 +01:00
.gitignore feat: support embedding encrypted psiphon config (#285) 2021-04-02 17:36:06 +02:00
allexperiments.go feat(webstepsx): websteps using measurex (#530) 2021-09-30 02:06:27 +02:00
doc.go feat(engine): allow runner to return many measurements (#527) 2021-09-30 00:54:52 +02:00
experiment_integration_test.go feat(engine): allow runner to return many measurements (#527) 2021-09-30 00:54:52 +02:00
experiment_internal_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
experiment_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
experiment.go feat: annotate measurements with their architecture (#540) 2021-10-13 10:31:46 +02:00
experimentbuilder_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
experimentbuilder.go refactor(inputloader): better docs and naming (#265) 2021-03-26 09:34:27 +01:00
inputloader_network_test.go refactor: flatten and separate (#353) 2021-06-04 10:34:18 +02:00
inputloader_test.go refactor: flatten and separate (#353) 2021-06-04 10:34:18 +02:00
inputloader.go refactor: flatten and separate (#353) 2021-06-04 10:34:18 +02:00
inputprocessor_test.go feat(engine): allow runner to return many measurements (#527) 2021-09-30 00:54:52 +02:00
inputprocessor.go feat(engine): allow runner to return many measurements (#527) 2021-09-30 00:54:52 +02:00
kvstore.go refactor: flatten and separate (#353) 2021-06-04 10:34:18 +02:00
saver_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
saver.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
session_integration_test.go refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
session_internal_test.go fix(session): make sure tunnel code is tested (#301) 2021-04-05 19:51:41 +02:00
session_nopsiphon_test.go [forwardport] fix(mk): do nothing if we already have psiphon config (#605) (#606) 2021-11-19 12:40:10 +01:00
session_nopsiphon.go [forwardport] fix(mk): do nothing if we already have psiphon config (#605) (#606) 2021-11-19 12:40:10 +01:00
session_psiphon_test.go [forwardport] fix(mk): do nothing if we already have psiphon config (#605) (#606) 2021-11-19 12:40:10 +01:00
session_psiphon.go [forwardport] fix(mk): do nothing if we already have psiphon config (#605) (#606) 2021-11-19 12:40:10 +01:00
session.go refactor: move bytecounter to internal (#391) 2021-06-22 13:00:29 +02:00
submitter_test.go refactor: flatten and separate (#353) 2021-06-04 10:34:18 +02:00
submitter.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00