Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
improvements
Dustin Deckerc20e9f473206
diff --git a/go.mod b/go.modindex 4dba703f8..172ae3eff 100644--- a/go.mod+++ b/go.mod@@ -28,7 +28,7 @@ require (github.com/sergi/go-diff v1.2.0github.com/sirupsen/logrus v1.8.1github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502- github.com/xanzy/go-gitlab v0.54.4+ github.com/xanzy/go-gitlab v0.55.1golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8golang.org/x/sync v0.0.0-20210220032951-036812b2e83cdiff --git a/go.sum b/go.sumindex 5a57da7dd..5323afa8e 100644--- a/go.sum+++ b/go.sum@@ -354,8 +354,8 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Ccgithub.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502 h1:34icjjmqJ2HPjrSuJYEkdZ+0ItmGQAQ75cRHIiftIyE=github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502/go.mod h1:p9lPsd+cx33L3H9nNoecRRxPssFKUwwI50I3pZ0yT+8=-github.com/xanzy/go-gitlab v0.54.4 h1:3CFEdQ9O+bFx3BsyuOK0gqgLPwnT2rwnPOjudV07wTw=-github.com/xanzy/go-gitlab v0.54.4/go.mod h1:F0QEXwmqiBUxCgJm8fE9S+1veX4XC9Z4cfaAbqwk4YM=+github.com/xanzy/go-gitlab v0.55.1 h1:IgX/DS9buV0AUz8fuJPQkdl0fQGfBiAsAHxpun8sNhg=+github.com/xanzy/go-gitlab v0.55.1/go.mod h1:F0QEXwmqiBUxCgJm8fE9S+1veX4XC9Z4cfaAbqwk4YM=github.com/xanzy/ssh-agent v0.3.0 h1:wUMzuKtKilRgBAD1sUb8gOwwRr2FGoBVumcjoOACClI=github.com/xanzy/ssh-agent v0.3.0/go.mod h1:3s9xbODqPuuhK9JV1R321M/FlMZSBvE5aY6eAcqrDh0=github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=diff --git a/main.go b/main.goindex a6296407d..1c41e4b24 100644--- a/main.go+++ b/main.go@@ -17,7 +17,7 @@ import ("github.com/go-git/go-git/v5/plumbing""github.com/gorilla/mux""github.com/sirupsen/logrus"- kingpin "gopkg.in/alecthomas/kingpin.v2"+ "gopkg.in/alecthomas/kingpin.v2""github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/decoders"diff --git a/pkg/common/http.go b/pkg/common/http.goindex 14e71f3fe..48b404536 100644--- a/pkg/common/http.go+++ b/pkg/common/http.go@@ -8,7 +8,7 @@ import ("strings""time"- retryablehttp "github.com/hashicorp/go-retryablehttp"+ "github.com/hashicorp/go-retryablehttp")var caCerts = []string{@@ -102,7 +102,6 @@ func PinnedRetryableHttpClient() *http.Client {DialContext: (&net.Dialer{Timeout: 30 * time.Second,KeepAlive: 30 * time.Second,- DualStack: true,}).DialContext,ForceAttemptHTTP2: true,MaxIdleConns: 100,diff --git a/pkg/common/test_helpers.go b/pkg/common/test_helpers.goindex 9d49cd393..e08e08eff 100644--- a/pkg/common/test_helpers.go+++ b/pkg/common/test_helpers.go@@ -10,7 +10,7 @@ import (type ChunkFunc func(chunk *sources.Chunk) error-var MatchError error = errors.New("chunk doesn't match")+var MatchError = errors.New("chunk doesn't match")func HandleTestChannel(chunksCh chan *sources.Chunk, cf ChunkFunc) error {for {diff --git a/pkg/detectors/accuweather/accuweather.go b/pkg/detectors/accuweather/accuweather.goindex 360274c90..4c8ab5a2f 100644--- a/pkg/detectors/accuweather/accuweather.go+++ b/pkg/detectors/accuweather/accuweather.go@@ -50,7 +50,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", "http://dataservice.accuweather.com/locations/v1/cities/autocomplete?apikey="+resMatch+"&q=----&language=en-us", nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", "https://dataservice.accuweather.com/locations/v1/cities/autocomplete?apikey="+resMatch+"&q=----&language=en-us", nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/airvisual/airvisual.go b/pkg/detectors/airvisual/airvisual.goindex 25be6c187..4811842ae 100644--- a/pkg/detectors/airvisual/airvisual.go+++ b/pkg/detectors/airvisual/airvisual.go@@ -51,7 +51,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.airvisual.com/v2/countries?key=%s", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.airvisual.com/v2/countries?key=%s", resMatch), nil)req.Header.Add("Accept", "application/vnd.airvisual+json; version=3")req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", resMatch))res, err := client.Do(req)diff --git a/pkg/detectors/alibaba/alibaba.go b/pkg/detectors/alibaba/alibaba.goindex 98613376a..3fcde5dde 100644--- a/pkg/detectors/alibaba/alibaba.go+++ b/pkg/detectors/alibaba/alibaba.go@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}// Create an API request and set parametersrequest := ecs.CreateDescribeInstancesRequest()- request.ConnectTimeout = (time.Duration(5) * time.Second)+ request.ConnectTimeout = time.Duration(5) * time.Secondrequest.Scheme = "https"request.Domain = "ecs.aliyuncs.com"// Initiate the request and handle exceptionsdiff --git a/pkg/detectors/apifonica/apifonica.go b/pkg/detectors/apifonica/apifonica.goindex 81f330217..fdc61a7a4 100644--- a/pkg/detectors/apifonica/apifonica.go+++ b/pkg/detectors/apifonica/apifonica.go@@ -25,8 +25,7 @@ var (client = common.SaneHttpClient()//Make sure that your group is surrounded in boundry characters such as below to reduce false positives- keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apifonica"}) + `\b([0-9a-z]{11}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12})\b`)- tokenPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apifonica"}) + `\b([0-9a-z]{11}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12})\b`)+ keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apifonica"}) + `\b([0-9a-z]{11}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12})\b`))// Keywords are used for efficiently pre-filtering chunks.diff --git a/pkg/detectors/aviationstack/aviationstack.go b/pkg/detectors/aviationstack/aviationstack.goindex e5ccda6e4..1e3c4ead3 100644--- a/pkg/detectors/aviationstack/aviationstack.go+++ b/pkg/detectors/aviationstack/aviationstack.go@@ -54,7 +54,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif verify {timeout := 10 * time.Secondclient.Timeout = timeout- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.aviationstack.com/v1/flights?access_key=%s", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.aviationstack.com/v1/flights?access_key=%s", resMatch), nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/coinlayer/coinlayer.go b/pkg/detectors/coinlayer/coinlayer.goindex 3f1afb5a3..0ecb3f3f7 100644--- a/pkg/detectors/coinlayer/coinlayer.go+++ b/pkg/detectors/coinlayer/coinlayer.go@@ -52,7 +52,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.coinlayer.com/api/live?access_key=%s", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.coinlayer.com/api/live?access_key=%s", resMatch), nil)res, err := client.Do(req)if err == nil {bodyBytes, err := ioutil.ReadAll(res.Body)diff --git a/pkg/detectors/countrylayer/countrylayer.go b/pkg/detectors/countrylayer/countrylayer.goindex c54274526..fe17fdc9b 100644--- a/pkg/detectors/countrylayer/countrylayer.go+++ b/pkg/detectors/countrylayer/countrylayer.go@@ -51,7 +51,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.countrylayer.com/v2/all?access_key=%s", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.countrylayer.com/v2/all?access_key=%s", resMatch), nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/currencylayer/currencylayer.go b/pkg/detectors/currencylayer/currencylayer.goindex 87986a54c..25fd81c71 100644--- a/pkg/detectors/currencylayer/currencylayer.go+++ b/pkg/detectors/currencylayer/currencylayer.go@@ -53,7 +53,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.currencylayer.com/live?access_key=%s", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.currencylayer.com/live?access_key=%s", resMatch), nil)res, err := client.Do(req)if err == nil {bodyBytes, err2 := ioutil.ReadAll(res.Body)diff --git a/pkg/detectors/exchangeratesapi/exchangeratesapi.go b/pkg/detectors/exchangeratesapi/exchangeratesapi.goindex 2ed905e4c..2fdaafa9a 100644--- a/pkg/detectors/exchangeratesapi/exchangeratesapi.go+++ b/pkg/detectors/exchangeratesapi/exchangeratesapi.go@@ -51,7 +51,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.exchangeratesapi.io/v1/latest?access_key=%s", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.exchangeratesapi.io/v1/latest?access_key=%s", resMatch), nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/fetchrss/fetchrss.go b/pkg/detectors/fetchrss/fetchrss.goindex 58cd1279a..5bebf820d 100644--- a/pkg/detectors/fetchrss/fetchrss.go+++ b/pkg/detectors/fetchrss/fetchrss.go@@ -51,7 +51,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", "http://fetchrss.com/api/v1/feed/create?auth="+resMatch, nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", "https://fetchrss.com/api/v1/feed/create?auth="+resMatch, nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/fixerio/fixerio.go b/pkg/detectors/fixerio/fixerio.goindex 4956126b6..0df19e263 100644--- a/pkg/detectors/fixerio/fixerio.go+++ b/pkg/detectors/fixerio/fixerio.go@@ -51,7 +51,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", "http://data.fixer.io/api/latest?access_key="+resMatch, nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", "https://data.fixer.io/api/latest?access_key="+resMatch, nil)res, err := client.Do(req)if err == nil {diff --git a/pkg/detectors/gengo/gengo.go b/pkg/detectors/gengo/gengo.goindex f214146c5..59e7cacc1 100644--- a/pkg/detectors/gengo/gengo.go+++ b/pkg/detectors/gengo/gengo.go@@ -71,7 +71,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resulttimestamp := strconv.FormatInt(time.Now().Unix(), 10)signature := getGengoSignature(timestamp, resSecretMatch)- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.gengo.com/v2/account/me?ts=%s&api_key=%s&api_sig=%s", timestamp, resMatch, signature), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.gengo.com/v2/account/me?ts=%s&api_key=%s&api_sig=%s", timestamp, resMatch, signature), nil)req.Header.Add("Accept", "application/json")res, err := client.Do(req)if err == nil {diff --git a/pkg/detectors/ipapi/ipapi.go b/pkg/detectors/ipapi/ipapi.goindex 432ab7c53..7d02a6891 100644--- a/pkg/detectors/ipapi/ipapi.go+++ b/pkg/detectors/ipapi/ipapi.go@@ -52,7 +52,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.ipapi.com/49.146.239.251?access_key=%s", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.ipapi.com/49.146.239.251?access_key=%s", resMatch), nil)res, err := client.Do(req)if err == nil {bodyBytes, err := ioutil.ReadAll(res.Body)diff --git a/pkg/detectors/languagelayer/languagelayer.go b/pkg/detectors/languagelayer/languagelayer.goindex fb1a84a0d..9f93995a9 100644--- a/pkg/detectors/languagelayer/languagelayer.go+++ b/pkg/detectors/languagelayer/languagelayer.go@@ -52,7 +52,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.languagelayer.com/languages?access_key=%s", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.languagelayer.com/languages?access_key=%s", resMatch), nil)res, err := client.Do(req)if err == nil {bodyBytes, err := ioutil.ReadAll(res.Body)diff --git a/pkg/detectors/lastfm/lastfm.go b/pkg/detectors/lastfm/lastfm.goindex 0a3684968..87026a36d 100644--- a/pkg/detectors/lastfm/lastfm.go+++ b/pkg/detectors/lastfm/lastfm.go@@ -50,7 +50,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", "http://ws.audioscrobbler.com/2.0/?method=artist.getSimilar&api_key="+resMatch, nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", "https://ws.audioscrobbler.com/2.0/?method=artist.getSimilar&api_key="+resMatch, nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/linkpreview/linkpreview.go b/pkg/detectors/linkpreview/linkpreview.goindex 4371c9d93..b1f759bff 100644--- a/pkg/detectors/linkpreview/linkpreview.go+++ b/pkg/detectors/linkpreview/linkpreview.go@@ -49,7 +49,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.linkpreview.net/?key=%s&q=http://google.com", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.linkpreview.net/?key=%s&q=https://google.com", resMatch), nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/mailboxlayer/mailboxlayer.go b/pkg/detectors/mailboxlayer/mailboxlayer.goindex c3698720c..4895f1bea 100644--- a/pkg/detectors/mailboxlayer/mailboxlayer.go+++ b/pkg/detectors/mailboxlayer/mailboxlayer.go@@ -51,7 +51,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", "http://apilayer.net/api/check?access_key="+resMatch+"&[email protected]", nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", "https://apilayer.net/api/check?access_key="+resMatch+"&[email protected]", nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/mapquest/mapquest.go b/pkg/detectors/mapquest/mapquest.goindex c44aaf242..bdef7d980 100644--- a/pkg/detectors/mapquest/mapquest.go+++ b/pkg/detectors/mapquest/mapquest.go@@ -50,7 +50,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", "http://www.mapquestapi.com/datamanager/v2/get-column-types?key="+resMatch, nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", "https://www.mapquestapi.com/datamanager/v2/get-column-types?key="+resMatch, nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/marketstack/marketstack.go b/pkg/detectors/marketstack/marketstack.goindex 72ccd2dde..65d2835c2 100644--- a/pkg/detectors/marketstack/marketstack.go+++ b/pkg/detectors/marketstack/marketstack.go@@ -51,7 +51,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.marketstack.com/v1/eod?access_key=%s&symbols=AAPL", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.marketstack.com/v1/eod?access_key=%s&symbols=AAPL", resMatch), nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/mediastack/mediastack.go b/pkg/detectors/mediastack/mediastack.goindex 6ed4420c0..011b4c5dd 100644--- a/pkg/detectors/mediastack/mediastack.go+++ b/pkg/detectors/mediastack/mediastack.go@@ -54,7 +54,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif verify {timeout := 10 * time.Secondclient.Timeout = timeout- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.mediastack.com/v1/news?access_key=%s", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.mediastack.com/v1/news?access_key=%s", resMatch), nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/numverify/numverify.go b/pkg/detectors/numverify/numverify.goindex 399dd441b..85951d6d9 100644--- a/pkg/detectors/numverify/numverify.go+++ b/pkg/detectors/numverify/numverify.go@@ -47,7 +47,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultRaw: []byte(resMatch),}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://apilayer.net/api/validate?access_key=%s&number=14158586273", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://apilayer.net/api/validate?access_key=%s&number=14158586273", resMatch), nil)res, err := client.Do(req)if err == nil {bodyBytes, err := ioutil.ReadAll(res.Body)diff --git a/pkg/detectors/onelogin/onelogin.go b/pkg/detectors/onelogin/onelogin.goindex b5821af86..45152bf00 100644--- a/pkg/detectors/onelogin/onelogin.go+++ b/pkg/detectors/onelogin/onelogin.go@@ -23,8 +23,6 @@ var (// TODO: Legacy API tokens- falsePositives = []string{"example"}-apiDomains = []string{"api.us.onelogin.com", "api.eu.onelogin.com"}client = http.Client{Timeout: time.Second * 5}diff --git a/pkg/detectors/opengraphr/opengraphr.go b/pkg/detectors/opengraphr/opengraphr.goindex d6f256425..aa92b2260 100644--- a/pkg/detectors/opengraphr/opengraphr.go+++ b/pkg/detectors/opengraphr/opengraphr.go@@ -50,7 +50,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", "https://api.opengraphr.com/v1/og?api_token="+resMatch+"&url=http://www.marlonpamisa.com/", nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", "https://api.opengraphr.com/v1/og?api_token="+resMatch+"&url=https://www.marlonpamisa.com/", nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/openweather/openweather.go b/pkg/detectors/openweather/openweather.goindex 72e057362..c6ca5d5c5 100644--- a/pkg/detectors/openweather/openweather.go+++ b/pkg/detectors/openweather/openweather.go@@ -50,7 +50,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", "http://api.openweathermap.org/data/2.5/weather?id=524901&lang=fr&appid="+resMatch, nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", "https://api.openweathermap.org/data/2.5/weather?id=524901&lang=fr&appid="+resMatch, nil)res, err := client.Do(req)if err == nil {diff --git a/pkg/detectors/pdflayer/pdflayer.go b/pkg/detectors/pdflayer/pdflayer.goindex 0cde4ff7f..d21af0f17 100644--- a/pkg/detectors/pdflayer/pdflayer.go+++ b/pkg/detectors/pdflayer/pdflayer.go@@ -52,7 +52,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.pdflayer.com/api/convert?access_key=%s&document_url=https://pdflayer.com/downloads/invoice.html", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.pdflayer.com/api/convert?access_key=%s&document_url=https://pdflayer.com/downloads/invoice.html", resMatch), nil)res, err := client.Do(req)if err == nil {bodyBytes, err := ioutil.ReadAll(res.Body)diff --git a/pkg/detectors/peopledatalabs/peopledatalabs.go b/pkg/detectors/peopledatalabs/peopledatalabs.goindex dff9256a9..919bf8def 100644--- a/pkg/detectors/peopledatalabs/peopledatalabs.go+++ b/pkg/detectors/peopledatalabs/peopledatalabs.go@@ -50,7 +50,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", "https://api.peopledatalabs.com/v5/person/enrich?min_likelihood=6&profile=http://linkedin.com/in/williamhgates", nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", "https://api.peopledatalabs.com/v5/person/enrich?min_likelihood=6&profile=https://linkedin.com/in/williamhgates", nil)req.Header.Add("X-Api-Key", resMatch)res, err := client.Do(req)if err == nil {diff --git a/pkg/detectors/positionstack/positionstack.go b/pkg/detectors/positionstack/positionstack.goindex 972c5696a..4520cc1b5 100644--- a/pkg/detectors/positionstack/positionstack.go+++ b/pkg/detectors/positionstack/positionstack.go@@ -51,7 +51,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.positionstack.com/v1/forward?access_key=%s&query=Philippines", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.positionstack.com/v1/forward?access_key=%s&query=Philippines", resMatch), nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/privatekey/cracker_test.go b/pkg/detectors/privatekey/cracker_test.goindex 196d87c1a..3c7b22ec7 100644--- a/pkg/detectors/privatekey/cracker_test.go+++ b/pkg/detectors/privatekey/cracker_test.go@@ -10,7 +10,7 @@ import (var (testEncryptedKeyCorrectPassword = []byte("123456")testEncryptedKeyIncorrectPassword = []byte("incorrect")- testEncryptedKey = []byte(normalize(string(`-----BEGIN OPENSSH PRIVATE KEY-----+ testEncryptedKey = []byte(normalize(`-----BEGIN OPENSSH PRIVATE KEY-----b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABAjNIZuunxgLkM8KuzfmQuRAAAAEAAAAAEAAAGXAAAAB3NzaC1yc2EAAAADAQABAAABgQDe3Al0EMPzutVNk5DixaYrGMK56RqUoqGBinke6SWVWmqom1lBcJWzor6HlnMRPPr7YCEsJKL4IpuVwu@@ -48,7 +48,7 @@ muIjvl6G7Hoj1hObM2t/ZheN1EShS11z868hhS6Mx7GvIdtkXuvdiBYMiBLOshJQxB8Mzxiug9W+Di3upLf0UMC1TqADGphsIHRU7RbmHQ8Rwp7dogswmDfpRSapPt9p0D+6Ad5VBzi3f3BPXj76UBLMEJCrZR1P28vnAA7AyNHaLvMPlWDMG5v3V/UV+ugyFcoBAOyjiQgYST8F3eHx7UPVlTK8dyvk1Z+Yw0nrfNClI=------END OPENSSH PRIVATE KEY-----`)))+-----END OPENSSH PRIVATE KEY-----`)))func Test_crack(t *testing.T) {diff --git a/pkg/detectors/privatekey/privatekey_test.go b/pkg/detectors/privatekey/privatekey_test.goindex 2666b4a78..69eb583d9 100644--- a/pkg/detectors/privatekey/privatekey_test.go+++ b/pkg/detectors/privatekey/privatekey_test.go@@ -21,8 +21,8 @@ func TestPrivatekey_FromChunk(t *testing.T) {if err != nil {t.Fatalf("could not get test secrets from GCP: %s", err)}- secretTLS := testSecrets.MustGetField(("PRIVATEKEY_TLS"))- secretGitHub := testSecrets.MustGetField(("PRIVATEKEY_GITHUB"))+ secretTLS := testSecrets.MustGetField("PRIVATEKEY_TLS")+ secretGitHub := testSecrets.MustGetField("PRIVATEKEY_GITHUB")secretInactive := testSecrets.MustGetField("PRIVATEKEY_UNVERIFIED")type args struct {ctx context.Contextdiff --git a/pkg/detectors/pusherchannelkey/pusherchannelkey.go b/pkg/detectors/pusherchannelkey/pusherchannelkey.goindex 1fdcc9447..087cad6d7 100644--- a/pkg/detectors/pusherchannelkey/pusherchannelkey.go+++ b/pkg/detectors/pusherchannelkey/pusherchannelkey.go@@ -101,9 +101,9 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultstringToSign := strings.Join([]string{method, path, usecd}, "\n")signature := hex.EncodeToString(hmacBytes([]byte(stringToSign), []byte(ressecretMatch)))- url := "http://api-ap1.pusher.com/apps/" + resappMatch + "/events?auth_key=" + reskeyMatch + "&auth_signature=" + signature + "&auth_timestamp=" + timestamp + "&auth_version=1.0&body_md5=" + md5+ md5Str := "https://api-ap1.pusher.com/apps/" + resappMatch + "/events?auth_key=" + reskeyMatch + "&auth_signature=" + signature + "&auth_timestamp=" + timestamp + "&auth_version=1.0&body_md5=" + md5- req, _ := http.NewRequestWithContext(ctx, method, url, payload)+ req, _ := http.NewRequestWithContext(ctx, method, md5Str, payload)req.Header.Add("Content-Type", "application/json")res, err := client.Do(req)if err == nil {diff --git a/pkg/detectors/razorpay/razorpay.go b/pkg/detectors/razorpay/razorpay.goindex c5b205593..626afb32b 100644--- a/pkg/detectors/razorpay/razorpay.go+++ b/pkg/detectors/razorpay/razorpay.go@@ -8,7 +8,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"- razorpay "github.com/razorpay/razorpay-go"+ "github.com/razorpay/razorpay-go")type Scanner struct{}diff --git a/pkg/detectors/scraperapi/scraperapi.go b/pkg/detectors/scraperapi/scraperapi.goindex 129a6f222..234a18086 100644--- a/pkg/detectors/scraperapi/scraperapi.go+++ b/pkg/detectors/scraperapi/scraperapi.go@@ -51,7 +51,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif verify {timeout := 15 * time.Secondclient.Timeout = timeout- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.scraperapi.com?api_key=%s&url=google.com", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.scraperapi.com?api_key=%s&url=google.com", resMatch), nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/scrapestack/scrapestack.go b/pkg/detectors/scrapestack/scrapestack.goindex a1d550aed..83a7449e2 100644--- a/pkg/detectors/scrapestack/scrapestack.go+++ b/pkg/detectors/scrapestack/scrapestack.go@@ -52,7 +52,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.scrapestack.com/scrape?access_key=%s&url=https://apple.com", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.scrapestack.com/scrape?access_key=%s&url=https://apple.com", resMatch), nil)res, err := client.Do(req)if err == nil {bodyBytes, err := ioutil.ReadAll(res.Body)diff --git a/pkg/detectors/scrapingbee/scrapingbee.go b/pkg/detectors/scrapingbee/scrapingbee.goindex 1554ce295..33ccc532a 100644--- a/pkg/detectors/scrapingbee/scrapingbee.go+++ b/pkg/detectors/scrapingbee/scrapingbee.go@@ -50,7 +50,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", "https://app.scrapingbee.com/api/v1/?api_key="+resMatch+"&url=http://httpbin.org/anything?json&render_js=false", nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", "https://app.scrapingbee.com/api/v1/?api_key="+resMatch+"&url=https://httpbin.org/anything?json&render_js=false", nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/screenshotlayer/screenshotlayer.go b/pkg/detectors/screenshotlayer/screenshotlayer.goindex 1da34b9cf..272816feb 100644--- a/pkg/detectors/screenshotlayer/screenshotlayer.go+++ b/pkg/detectors/screenshotlayer/screenshotlayer.go@@ -55,7 +55,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif verify {timeout := 10 * time.Secondclient.Timeout = timeout- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.screenshotlayer.com/api/capture?access_key=%s&url=https://google.com", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.screenshotlayer.com/api/capture?access_key=%s&url=https://google.com", resMatch), nil)res, err := client.Do(req)if err == nil {bodyBytes, err := ioutil.ReadAll(res.Body)diff --git a/pkg/detectors/serpstack/serpstack.go b/pkg/detectors/serpstack/serpstack.goindex 342dba526..85975c77d 100644--- a/pkg/detectors/serpstack/serpstack.go+++ b/pkg/detectors/serpstack/serpstack.go@@ -55,7 +55,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif verify {timeout := 10 * time.Secondclient.Timeout = timeout- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.serpstack.com/search?access_key=%s&query=Mcdonalds", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.serpstack.com/search?access_key=%s&query=Mcdonalds", resMatch), nil)res, err := client.Do(req)if err == nil {bodyBytes, err := ioutil.ReadAll(res.Body)diff --git a/pkg/detectors/skybiometry/skybiometry.go b/pkg/detectors/skybiometry/skybiometry.goindex f6d7a5255..895a8e701 100644--- a/pkg/detectors/skybiometry/skybiometry.go+++ b/pkg/detectors/skybiometry/skybiometry.go@@ -64,7 +64,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultpayload.Add("api_key", resMatch)payload.Add("api_secret", resSecretMatch)- req, _ := http.NewRequestWithContext(ctx, "GET", "http://api.skybiometry.com/fc/account/authenticate?"+payload.Encode(), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", "https://api.skybiometry.com/fc/account/authenticate?"+payload.Encode(), nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/spotifykey/spotifykey.go b/pkg/detectors/spotifykey/spotifykey.goindex 27cb48d77..9b29d8e26 100644--- a/pkg/detectors/spotifykey/spotifykey.go+++ b/pkg/detectors/spotifykey/spotifykey.go@@ -2,6 +2,7 @@ package spotifykeyimport ("context"+ "golang.org/x/oauth2""regexp""strings"@@ -9,7 +10,6 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors"- "golang.org/x/oauth2""golang.org/x/oauth2/clientcredentials""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"@@ -24,7 +24,6 @@ var (//Make sure that your group is surrounded in boundry characters such as below to reduce false positivessecretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"key", "secret"}) + `\b([A-Za-z0-9]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"id"}) + `\b([A-Za-z0-9]{32})\b`)- ctx = context.WithValue(context.Background(), oauth2.HTTPClient, common.SaneHttpClient()))// Keywords are used for efficiently pre-filtering chunks.@@ -35,6 +34,8 @@ func (s Scanner) Keywords() []string {// FromData will find and optionally verify SpotifyKey secrets in a given set of bytes.func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error) {+ ctx = context.WithValue(ctx, oauth2.HTTPClient, common.SaneHttpClient())+dataStr := string(data)matches := secretPat.FindAllStringSubmatch(dataStr, -1)diff --git a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.goindex 98a13b833..992dd953d 100644--- a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go+++ b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go@@ -23,13 +23,13 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"terra"}) + `\b([A-Za-z0-9]{14}.atlasv1.[A-Za-z0-9]{60,70})\b`)+ keyPat = regexp.MustCompile(`\b([A-Za-z0-9]{14}.atlasv1.[A-Za-z0-9]{67})\b`))// Keywords are used for efficiently pre-filtering chunks.// Use identifiers in the secret preferably, or the provider name.func (s Scanner) Keywords() []string {- return []string{"terraform"}+ return []string{".atlasv1."}}// FromData will find and optionally verify TerraformCloudPersonalToken secrets in a given set of bytes.diff --git a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken_test.go b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken_test.goindex 35a10c954..c1124b5ee 100644--- a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken_test.go+++ b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken_test.go@@ -51,6 +51,29 @@ func TestTerraformCloudPersonalToken_FromChunk(t *testing.T) {},wantErr: false,},++ {+ name: "found, unverified in json",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte(fmt.Sprintf(`{+ "credentials": {+ "app.terraform.io": {+ "token": "%s"+ }+ }+ }`, inactiveSecret)),+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_TerraformCloudPersonalToken,+ Verified: false,+ },+ },+ wantErr: false,+ },{name: "found, unverified",s: Scanner{},diff --git a/pkg/detectors/testdetector/testdetector.go b/pkg/detectors/testdetector/testdetector.goindex 07233628f..8d610bc4d 100644--- a/pkg/detectors/testdetector/testdetector.go+++ b/pkg/detectors/testdetector/testdetector.go@@ -6,7 +6,6 @@ import ("regexp""strings"- "github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb")@@ -17,7 +16,6 @@ type Detector struct{}var _ detectors.Detector = (*Detector)(nil)var (- client = common.SaneHttpClient()// Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(`\b(test)\b`)diff --git a/pkg/detectors/text2data/text2data.go b/pkg/detectors/text2data/text2data.goindex be1d580fb..032a3c853 100644--- a/pkg/detectors/text2data/text2data.go+++ b/pkg/detectors/text2data/text2data.go@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultdata.Add("DocumentText", "Excellent location, opposite a very large mall with wide variety of shops, restaurants and more.")data.Add("PrivateKey", resMatch)- req, _ := http.NewRequestWithContext(ctx, "POST", "http://api.text2data.com/v3/analyze", strings.NewReader(data.Encode()))+ req, _ := http.NewRequestWithContext(ctx, "POST", "https://api.text2data.com/v3/analyze", strings.NewReader(data.Encode()))req.Header.Add("Accept", "application/json")req.Header.Add("Content-Type", "application/x-www-form-urlencoded")res, err := client.Do(req)diff --git a/pkg/detectors/travelpayouts/travelpayouts.go b/pkg/detectors/travelpayouts/travelpayouts.goindex d408810aa..d2eca96b5 100644--- a/pkg/detectors/travelpayouts/travelpayouts.go+++ b/pkg/detectors/travelpayouts/travelpayouts.go@@ -51,7 +51,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.travelpayouts.com/v2/prices/latest?currency=usd&limit=5&token=%s", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.travelpayouts.com/v2/prices/latest?currency=usd&limit=5&token=%s", resMatch), nil)res, err := client.Do(req)if err == nil {defer res.Body.Close()diff --git a/pkg/detectors/unplugg/unplugg.go b/pkg/detectors/unplugg/unplugg.goindex 4c0607912..7d7c72ed8 100644--- a/pkg/detectors/unplugg/unplugg.go+++ b/pkg/detectors/unplugg/unplugg.go@@ -50,7 +50,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- payload := strings.NewReader(`{"data":[{"timestamp":1466640000,"value":0.27589941523037853},{"timestamp":1466640900,"value":0.4059699097648263}],"forecast_to":1458136800,"callback":"http://yourdomain.com/samplecallback"}`)+ payload := strings.NewReader(`{"data":[{"timestamp":1466640000,"value":0.27589941523037853},{"timestamp":1466640900,"value":0.4059699097648263}],"forecast_to":1458136800,"callback":"https://yourdomain.com/samplecallback"}`)req, _ := http.NewRequestWithContext(ctx, "POST", "https://api.unplu.gg/forecast", payload)req.Header.Add("Content-Type", "application/json")req.Header.Add("x-access-token", resMatch)diff --git a/pkg/detectors/userstack/userstack.go b/pkg/detectors/userstack/userstack.goindex 22eee222a..32a6cddcd 100644--- a/pkg/detectors/userstack/userstack.go+++ b/pkg/detectors/userstack/userstack.go@@ -52,7 +52,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.userstack.com/detect?access_key=%s&ua=Mozilla/5.0", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.userstack.com/detect?access_key=%s&ua=Mozilla/5.0", resMatch), nil)res, err := client.Do(req)if err == nil {bodyBytes, err := ioutil.ReadAll(res.Body)diff --git a/pkg/detectors/vatlayer/vatlayer.go b/pkg/detectors/vatlayer/vatlayer.goindex e02d094d7..c2eaa671e 100644--- a/pkg/detectors/vatlayer/vatlayer.go+++ b/pkg/detectors/vatlayer/vatlayer.go@@ -52,7 +52,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://www.apilayer.net/api/validate?access_key=%s&vat_number=LU26375245&format=1", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://www.apilayer.net/api/validate?access_key=%s&vat_number=LU26375245&format=1", resMatch), nil)res, err := client.Do(req)if err == nil {bodyBytes, err := ioutil.ReadAll(res.Body)diff --git a/pkg/detectors/virustotal/virustotal.go b/pkg/detectors/virustotal/virustotal.goindex 5d4ac6592..c17eadff2 100644--- a/pkg/detectors/virustotal/virustotal.go+++ b/pkg/detectors/virustotal/virustotal.go@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif err != nil {continue}- _, err = io.Copy(fw, strings.NewReader("http://www.amazon.com"))+ _, err = io.Copy(fw, strings.NewReader("https://www.amazon.com"))if err != nil {continue}diff --git a/pkg/detectors/weatherstack/weatherstack.go b/pkg/detectors/weatherstack/weatherstack.goindex 76ff0632f..896889801 100644--- a/pkg/detectors/weatherstack/weatherstack.go+++ b/pkg/detectors/weatherstack/weatherstack.go@@ -52,7 +52,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.weatherstack.com/current?access_key=%s&query=LA", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.weatherstack.com/current?access_key=%s&query=LA", resMatch), nil)req.Header.Add("Content-Type", "application/json")res, err := client.Do(req)if err == nil {diff --git a/pkg/detectors/whoxy/whoxy.go b/pkg/detectors/whoxy/whoxy.goindex cc4f54503..1912aa328 100644--- a/pkg/detectors/whoxy/whoxy.go+++ b/pkg/detectors/whoxy/whoxy.go@@ -52,7 +52,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.whoxy.com/?key=%s&account=balance", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.whoxy.com/?key=%s&account=balance", resMatch), nil)req.Header.Add("Content-Type", "application/json")res, err := client.Do(req)if err == nil {diff --git a/pkg/detectors/worldweather/worldweather.go b/pkg/detectors/worldweather/worldweather.goindex deb17880d..00f528613 100644--- a/pkg/detectors/worldweather/worldweather.go+++ b/pkg/detectors/worldweather/worldweather.go@@ -51,7 +51,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}if verify {- req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://api.worldweatheronline.com/premium/v1/search.ashx?query=LA&key=%s", resMatch), nil)+ req, _ := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://api.worldweatheronline.com/premium/v1/search.ashx?query=LA&key=%s", resMatch), nil)req.Header.Add("Content-Type", "application/json")res, err := client.Do(req)if err == nil {diff --git a/pkg/engine/github.go b/pkg/engine/github.goindex 724346d03..4483d00f5 100644--- a/pkg/engine/github.go+++ b/pkg/engine/github.go@@ -5,7 +5,7 @@ import ("github.com/sirupsen/logrus""google.golang.org/protobuf/proto"- anypb "google.golang.org/protobuf/types/known/anypb"+ "google.golang.org/protobuf/types/known/anypb""github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/pb/sourcespb"diff --git a/pkg/pb/credentialspb/credentials.pb.go b/pkg/pb/credentialspb/credentials.pb.goindex 44e28aa52..72a9aee57 100644--- a/pkg/pb/credentialspb/credentials.pb.go+++ b/pkg/pb/credentialspb/credentials.pb.go@@ -650,11 +650,11 @@ var file_credentials_proto_rawDesc = []byte{0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69,0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x15, 0x0a,0x06, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61,- 0x70, 0x70, 0x49, 0x64, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,+ 0x70, 0x70, 0x49, 0x64, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,0x6f, 0x6d, 0x2f, 0x74, 0x72, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,- 0x74, 0x79, 0x2f, 0x74, 0x72, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x70, 0x6b,- 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73,- 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x74, 0x79, 0x2f, 0x74, 0x72, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x76, 0x33,+ 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,+ 0x61, 0x6c, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (diff --git a/pkg/pb/detectorspb/detectors.pb.go b/pkg/pb/detectorspb/detectors.pb.goindex 027819ab7..ce0bfbf41 100644--- a/pkg/pb/detectorspb/detectors.pb.go+++ b/pkg/pb/detectorspb/detectors.pb.go@@ -3356,11 +3356,12 @@ var file_detectors_proto_rawDesc = []byte{0x0a, 0x17, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x6d, 0x69, 0x74, 0x68, 0x45, 0x6e, 0x76, 0x69, 0x72,0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x10, 0xea, 0x05, 0x12, 0x13, 0x0a, 0x0e,0x46, 0x6c, 0x61, 0x67, 0x73, 0x6d, 0x69, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x10, 0xeb,- 0x05, 0x12, 0x08, 0x0a, 0x03, 0x4d, 0x75, 0x78, 0x10, 0xec, 0x05, 0x42, 0x3a, 0x5a, 0x38, 0x67,+ 0x05, 0x12, 0x08, 0x0a, 0x03, 0x4d, 0x75, 0x78, 0x10, 0xec, 0x05, 0x42, 0x3d, 0x5a, 0x3b, 0x67,0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x72, 0x75, 0x66, 0x66, 0x6c,0x65, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x74, 0x72, 0x75, 0x66, 0x66, 0x6c,- 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x64, 0x65, 0x74, 0x65,- 0x63, 0x74, 0x6f, 0x72, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x64,+ 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x33,}var (diff --git a/pkg/pb/source_metadatapb/source_metadata.pb.go b/pkg/pb/source_metadatapb/source_metadata.pb.goindex c02f019ed..144194281 100644--- a/pkg/pb/source_metadatapb/source_metadata.pb.go+++ b/pkg/pb/source_metadatapb/source_metadata.pb.go@@ -2153,12 +2153,12 @@ var file_source_metadata_proto_rawDesc = []byte{0x0a, 0x07, 0x6a, 0x65, 0x6e, 0x6b, 0x69, 0x6e, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32,0x18, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,0x61, 0x2e, 0x4a, 0x65, 0x6e, 0x6b, 0x69, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x07, 0x6a, 0x65, 0x6e,- 0x6b, 0x69, 0x6e, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x40, 0x5a, 0x3e,+ 0x6b, 0x69, 0x6e, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x43, 0x5a, 0x41,0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x72, 0x75, 0x66, 0x66,0x6c, 0x65, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x74, 0x72, 0x75, 0x66, 0x66,- 0x6c, 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x73, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x70, 0x62, 0x62, 0x06,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x6c, 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f,+ 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x70,+ 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (diff --git a/pkg/pb/sourcespb/sources.pb.go b/pkg/pb/sourcespb/sources.pb.goindex d2bd24c8c..f00a53d9f 100644--- a/pkg/pb/sourcespb/sources.pb.go+++ b/pkg/pb/sourcespb/sources.pb.go@@ -11,7 +11,8 @@ import (credentialspb "github.com/trufflesecurity/trufflehog/v3/pkg/pb/credentialspb"protoreflect "google.golang.org/protobuf/reflect/protoreflect"protoimpl "google.golang.org/protobuf/runtime/protoimpl"- _ "google.golang.org/protobuf/types/known/durationpb"+ anypb "google.golang.org/protobuf/types/known/anypb"+ durationpb "google.golang.org/protobuf/types/known/durationpb"reflect "reflect"sync "sync")@@ -132,6 +133,85 @@ func (SourceType) EnumDescriptor() ([]byte, []int) {return file_sources_proto_rawDescGZIP(), []int{0}}+type LocalSource struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`+ ScanInterval *durationpb.Duration `protobuf:"bytes,3,opt,name=scan_interval,json=scanInterval,proto3" json:"scan_interval,omitempty"`+ Verify bool `protobuf:"varint,4,opt,name=verify,proto3" json:"verify,omitempty"`+ Connection *anypb.Any `protobuf:"bytes,5,opt,name=connection,proto3" json:"connection,omitempty"`+}++func (x *LocalSource) Reset() {+ *x = LocalSource{}+ if protoimpl.UnsafeEnabled {+ mi := &file_sources_proto_msgTypes[0]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *LocalSource) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*LocalSource) ProtoMessage() {}++func (x *LocalSource) ProtoReflect() protoreflect.Message {+ mi := &file_sources_proto_msgTypes[0]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use LocalSource.ProtoReflect.Descriptor instead.+func (*LocalSource) Descriptor() ([]byte, []int) {+ return file_sources_proto_rawDescGZIP(), []int{0}+}++func (x *LocalSource) GetType() string {+ if x != nil {+ return x.Type+ }+ return ""+}++func (x *LocalSource) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *LocalSource) GetScanInterval() *durationpb.Duration {+ if x != nil {+ return x.ScanInterval+ }+ return nil+}++func (x *LocalSource) GetVerify() bool {+ if x != nil {+ return x.Verify+ }+ return false+}++func (x *LocalSource) GetConnection() *anypb.Any {+ if x != nil {+ return x.Connection+ }+ return nil+}+type AzureStorage struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -149,7 +229,7 @@ type AzureStorage struct {func (x *AzureStorage) Reset() {*x = AzureStorage{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[0]+ mi := &file_sources_proto_msgTypes[1]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -162,7 +242,7 @@ func (x *AzureStorage) String() string {func (*AzureStorage) ProtoMessage() {}func (x *AzureStorage) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[0]+ mi := &file_sources_proto_msgTypes[1]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -175,7 +255,7 @@ func (x *AzureStorage) ProtoReflect() protoreflect.Message {// Deprecated: Use AzureStorage.ProtoReflect.Descriptor instead.func (*AzureStorage) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{0}+ return file_sources_proto_rawDescGZIP(), []int{1}}func (m *AzureStorage) GetCredential() isAzureStorage_Credential {@@ -265,7 +345,7 @@ type Bitbucket struct {func (x *Bitbucket) Reset() {*x = Bitbucket{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[1]+ mi := &file_sources_proto_msgTypes[2]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -278,7 +358,7 @@ func (x *Bitbucket) String() string {func (*Bitbucket) ProtoMessage() {}func (x *Bitbucket) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[1]+ mi := &file_sources_proto_msgTypes[2]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -291,7 +371,7 @@ func (x *Bitbucket) ProtoReflect() protoreflect.Message {// Deprecated: Use Bitbucket.ProtoReflect.Descriptor instead.func (*Bitbucket) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{1}+ return file_sources_proto_rawDescGZIP(), []int{2}}func (x *Bitbucket) GetEndpoint() string {@@ -372,7 +452,7 @@ type CircleCI struct {func (x *CircleCI) Reset() {*x = CircleCI{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[2]+ mi := &file_sources_proto_msgTypes[3]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -385,7 +465,7 @@ func (x *CircleCI) String() string {func (*CircleCI) ProtoMessage() {}func (x *CircleCI) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[2]+ mi := &file_sources_proto_msgTypes[3]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -398,7 +478,7 @@ func (x *CircleCI) ProtoReflect() protoreflect.Message {// Deprecated: Use CircleCI.ProtoReflect.Descriptor instead.func (*CircleCI) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{2}+ return file_sources_proto_rawDescGZIP(), []int{3}}func (x *CircleCI) GetEndpoint() string {@@ -448,7 +528,7 @@ type Confluence struct {func (x *Confluence) Reset() {*x = Confluence{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[3]+ mi := &file_sources_proto_msgTypes[4]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -461,7 +541,7 @@ func (x *Confluence) String() string {func (*Confluence) ProtoMessage() {}func (x *Confluence) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[3]+ mi := &file_sources_proto_msgTypes[4]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -474,7 +554,7 @@ func (x *Confluence) ProtoReflect() protoreflect.Message {// Deprecated: Use Confluence.ProtoReflect.Descriptor instead.func (*Confluence) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{3}+ return file_sources_proto_rawDescGZIP(), []int{4}}func (x *Confluence) GetEndpoint() string {@@ -548,7 +628,7 @@ type DockerHub struct {func (x *DockerHub) Reset() {*x = DockerHub{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[4]+ mi := &file_sources_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -561,7 +641,7 @@ func (x *DockerHub) String() string {func (*DockerHub) ProtoMessage() {}func (x *DockerHub) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[4]+ mi := &file_sources_proto_msgTypes[5]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -574,7 +654,7 @@ func (x *DockerHub) ProtoReflect() protoreflect.Message {// Deprecated: Use DockerHub.ProtoReflect.Descriptor instead.func (*DockerHub) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{4}+ return file_sources_proto_rawDescGZIP(), []int{5}}func (m *DockerHub) GetCredential() isDockerHub_Credential {@@ -622,7 +702,7 @@ type ECR struct {func (x *ECR) Reset() {*x = ECR{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[5]+ mi := &file_sources_proto_msgTypes[6]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -635,7 +715,7 @@ func (x *ECR) String() string {func (*ECR) ProtoMessage() {}func (x *ECR) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[5]+ mi := &file_sources_proto_msgTypes[6]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -648,7 +728,7 @@ func (x *ECR) ProtoReflect() protoreflect.Message {// Deprecated: Use ECR.ProtoReflect.Descriptor instead.func (*ECR) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{5}+ return file_sources_proto_rawDescGZIP(), []int{6}}func (m *ECR) GetCredential() isECR_Credential {@@ -693,7 +773,7 @@ type Filesystem struct {func (x *Filesystem) Reset() {*x = Filesystem{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[6]+ mi := &file_sources_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -706,7 +786,7 @@ func (x *Filesystem) String() string {func (*Filesystem) ProtoMessage() {}func (x *Filesystem) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[6]+ mi := &file_sources_proto_msgTypes[7]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -719,7 +799,7 @@ func (x *Filesystem) ProtoReflect() protoreflect.Message {// Deprecated: Use Filesystem.ProtoReflect.Descriptor instead.func (*Filesystem) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{6}+ return file_sources_proto_rawDescGZIP(), []int{7}}func (x *Filesystem) GetDirectories() []string {@@ -743,7 +823,7 @@ type GCS struct {func (x *GCS) Reset() {*x = GCS{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[7]+ mi := &file_sources_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -756,7 +836,7 @@ func (x *GCS) String() string {func (*GCS) ProtoMessage() {}func (x *GCS) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[7]+ mi := &file_sources_proto_msgTypes[8]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -769,7 +849,7 @@ func (x *GCS) ProtoReflect() protoreflect.Message {// Deprecated: Use GCS.ProtoReflect.Descriptor instead.func (*GCS) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{7}+ return file_sources_proto_rawDescGZIP(), []int{8}}func (m *GCS) GetCredential() isGCS_Credential {@@ -819,7 +899,7 @@ type Git struct {func (x *Git) Reset() {*x = Git{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[8]+ mi := &file_sources_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -832,7 +912,7 @@ func (x *Git) String() string {func (*Git) ProtoMessage() {}func (x *Git) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[8]+ mi := &file_sources_proto_msgTypes[9]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -845,7 +925,7 @@ func (x *Git) ProtoReflect() protoreflect.Message {// Deprecated: Use Git.ProtoReflect.Descriptor instead.func (*Git) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{8}+ return file_sources_proto_rawDescGZIP(), []int{9}}func (m *Git) GetCredential() isGit_Credential {@@ -916,7 +996,7 @@ type GitLab struct {func (x *GitLab) Reset() {*x = GitLab{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[9]+ mi := &file_sources_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -929,7 +1009,7 @@ func (x *GitLab) String() string {func (*GitLab) ProtoMessage() {}func (x *GitLab) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[9]+ mi := &file_sources_proto_msgTypes[10]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -942,7 +1022,7 @@ func (x *GitLab) ProtoReflect() protoreflect.Message {// Deprecated: Use GitLab.ProtoReflect.Descriptor instead.func (*GitLab) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{9}+ return file_sources_proto_rawDescGZIP(), []int{10}}func (x *GitLab) GetEndpoint() string {@@ -1029,7 +1109,7 @@ type GitHub struct {func (x *GitHub) Reset() {*x = GitHub{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[10]+ mi := &file_sources_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1042,7 +1122,7 @@ func (x *GitHub) String() string {func (*GitHub) ProtoMessage() {}func (x *GitHub) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[10]+ mi := &file_sources_proto_msgTypes[11]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1055,7 +1135,7 @@ func (x *GitHub) ProtoReflect() protoreflect.Message {// Deprecated: Use GitHub.ProtoReflect.Descriptor instead.func (*GitHub) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{10}+ return file_sources_proto_rawDescGZIP(), []int{11}}func (x *GitHub) GetEndpoint() string {@@ -1160,7 +1240,7 @@ type JIRA struct {func (x *JIRA) Reset() {*x = JIRA{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[11]+ mi := &file_sources_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1173,7 +1253,7 @@ func (x *JIRA) String() string {func (*JIRA) ProtoMessage() {}func (x *JIRA) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[11]+ mi := &file_sources_proto_msgTypes[12]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1186,7 +1266,7 @@ func (x *JIRA) ProtoReflect() protoreflect.Message {// Deprecated: Use JIRA.ProtoReflect.Descriptor instead.func (*JIRA) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{11}+ return file_sources_proto_rawDescGZIP(), []int{12}}func (x *JIRA) GetEndpoint() string {@@ -1266,7 +1346,7 @@ type NPMUnauthenticatedPackage struct {func (x *NPMUnauthenticatedPackage) Reset() {*x = NPMUnauthenticatedPackage{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[12]+ mi := &file_sources_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1279,7 +1359,7 @@ func (x *NPMUnauthenticatedPackage) String() string {func (*NPMUnauthenticatedPackage) ProtoMessage() {}func (x *NPMUnauthenticatedPackage) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[12]+ mi := &file_sources_proto_msgTypes[13]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1292,7 +1372,7 @@ func (x *NPMUnauthenticatedPackage) ProtoReflect() protoreflect.Message {// Deprecated: Use NPMUnauthenticatedPackage.ProtoReflect.Descriptor instead.func (*NPMUnauthenticatedPackage) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{12}+ return file_sources_proto_rawDescGZIP(), []int{13}}func (m *NPMUnauthenticatedPackage) GetCredential() isNPMUnauthenticatedPackage_Credential {@@ -1332,7 +1412,7 @@ type PyPIUnauthenticatedPackage struct {func (x *PyPIUnauthenticatedPackage) Reset() {*x = PyPIUnauthenticatedPackage{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[13]+ mi := &file_sources_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1345,7 +1425,7 @@ func (x *PyPIUnauthenticatedPackage) String() string {func (*PyPIUnauthenticatedPackage) ProtoMessage() {}func (x *PyPIUnauthenticatedPackage) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[13]+ mi := &file_sources_proto_msgTypes[14]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1358,7 +1438,7 @@ func (x *PyPIUnauthenticatedPackage) ProtoReflect() protoreflect.Message {// Deprecated: Use PyPIUnauthenticatedPackage.ProtoReflect.Descriptor instead.func (*PyPIUnauthenticatedPackage) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{13}+ return file_sources_proto_rawDescGZIP(), []int{14}}func (m *PyPIUnauthenticatedPackage) GetCredential() isPyPIUnauthenticatedPackage_Credential {@@ -1401,7 +1481,7 @@ type S3 struct {func (x *S3) Reset() {*x = S3{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[14]+ mi := &file_sources_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1414,7 +1494,7 @@ func (x *S3) String() string {func (*S3) ProtoMessage() {}func (x *S3) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[14]+ mi := &file_sources_proto_msgTypes[15]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1427,7 +1507,7 @@ func (x *S3) ProtoReflect() protoreflect.Message {// Deprecated: Use S3.ProtoReflect.Descriptor instead.func (*S3) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{14}+ return file_sources_proto_rawDescGZIP(), []int{15}}func (m *S3) GetCredential() isS3_Credential {@@ -1502,7 +1582,7 @@ type Slack struct {func (x *Slack) Reset() {*x = Slack{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[15]+ mi := &file_sources_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1515,7 +1595,7 @@ func (x *Slack) String() string {func (*Slack) ProtoMessage() {}func (x *Slack) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[15]+ mi := &file_sources_proto_msgTypes[16]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1528,7 +1608,7 @@ func (x *Slack) ProtoReflect() protoreflect.Message {// Deprecated: Use Slack.ProtoReflect.Descriptor instead.func (*Slack) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{15}+ return file_sources_proto_rawDescGZIP(), []int{16}}func (x *Slack) GetEndpoint() string {@@ -1578,7 +1658,7 @@ type Test struct {func (x *Test) Reset() {*x = Test{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[16]+ mi := &file_sources_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1591,7 +1671,7 @@ func (x *Test) String() string {func (*Test) ProtoMessage() {}func (x *Test) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[16]+ mi := &file_sources_proto_msgTypes[17]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1604,7 +1684,7 @@ func (x *Test) ProtoReflect() protoreflect.Message {// Deprecated: Use Test.ProtoReflect.Descriptor instead.func (*Test) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{16}+ return file_sources_proto_rawDescGZIP(), []int{17}}type Buildkite struct {@@ -1620,7 +1700,7 @@ type Buildkite struct {func (x *Buildkite) Reset() {*x = Buildkite{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[17]+ mi := &file_sources_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1633,7 +1713,7 @@ func (x *Buildkite) String() string {func (*Buildkite) ProtoMessage() {}func (x *Buildkite) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[17]+ mi := &file_sources_proto_msgTypes[18]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1646,7 +1726,7 @@ func (x *Buildkite) ProtoReflect() protoreflect.Message {// Deprecated: Use Buildkite.ProtoReflect.Descriptor instead.func (*Buildkite) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{17}+ return file_sources_proto_rawDescGZIP(), []int{18}}func (m *Buildkite) GetCredential() isBuildkite_Credential {@@ -1689,7 +1769,7 @@ type Gerrit struct {func (x *Gerrit) Reset() {*x = Gerrit{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[18]+ mi := &file_sources_proto_msgTypes[19]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1702,7 +1782,7 @@ func (x *Gerrit) String() string {func (*Gerrit) ProtoMessage() {}func (x *Gerrit) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[18]+ mi := &file_sources_proto_msgTypes[19]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1715,7 +1795,7 @@ func (x *Gerrit) ProtoReflect() protoreflect.Message {// Deprecated: Use Gerrit.ProtoReflect.Descriptor instead.func (*Gerrit) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{18}+ return file_sources_proto_rawDescGZIP(), []int{19}}func (x *Gerrit) GetEndpoint() string {@@ -1783,7 +1863,7 @@ type Jenkins struct {func (x *Jenkins) Reset() {*x = Jenkins{}if protoimpl.UnsafeEnabled {- mi := &file_sources_proto_msgTypes[19]+ mi := &file_sources_proto_msgTypes[20]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1796,7 +1876,7 @@ func (x *Jenkins) String() string {func (*Jenkins) ProtoMessage() {}func (x *Jenkins) ProtoReflect() protoreflect.Message {- mi := &file_sources_proto_msgTypes[19]+ mi := &file_sources_proto_msgTypes[20]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1809,7 +1889,7 @@ func (x *Jenkins) ProtoReflect() protoreflect.Message {// Deprecated: Use Jenkins.ProtoReflect.Descriptor instead.func (*Jenkins) Descriptor() ([]byte, []int) {- return file_sources_proto_rawDescGZIP(), []int{19}+ return file_sources_proto_rawDescGZIP(), []int{20}}func (x *Jenkins) GetEndpoint() string {@@ -1850,258 +1930,273 @@ var file_sources_proto_rawDesc = []byte{0x07, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,0x6f, 0x1a, 0x11, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x70,- 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70,- 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x02, 0x0a, 0x0c, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x74,- 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x2d, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74,- 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x48, 0x00, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74,- 0x72, 0x69, 0x6e, 0x67, 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x61, 0x75,- 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65,- 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68,- 0x48, 0x00, 0x52, 0x09, 0x62, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x2f, 0x0a,- 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63,- 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x11, 0x63, 0x6c, 0x69,- 0x65, 0x6e, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x48,+ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,+ 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,+ 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,+ 0xc3, 0x01, 0x0a, 0x0b, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,+ 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,+ 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x63, 0x61, 0x6e, 0x5f,+ 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,+ 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x63, 0x61, 0x6e, 0x49,+ 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x65, 0x72, 0x69, 0x66,+ 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12,+ 0x34, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65,+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xae, 0x02, 0x0a, 0x0c, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x53,+ 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x2d, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63,+ 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x48, 0x00, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53,+ 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x61,+ 0x75, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65, 0x64,+ 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74,+ 0x68, 0x48, 0x00, 0x52, 0x09, 0x62, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x2f,+ 0x0a, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,+ 0x63, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x11, 0x63, 0x6c,+ 0x69, 0x65, 0x6e, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12,+ 0x48, 0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74,+ 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65,+ 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74,+ 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68,+ 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x74, 0x6f,+ 0x72, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x18,+ 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f,+ 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64,+ 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0xe1, 0x01, 0x0a, 0x09, 0x42, 0x69, 0x74, 0x62, 0x75,+ 0x63, 0x6b, 0x65, 0x74, 0x12, 0x24, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01,+ 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x6f,+ 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b,+ 0x65, 0x6e, 0x12, 0x2b, 0x0a, 0x05, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x13, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e,+ 0x4f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x12,+ 0x37, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x04, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,+ 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x48, 0x00, 0x52, 0x09, 0x62,+ 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f,+ 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c,+ 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a,+ 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x56, 0x0a, 0x08, 0x43, 0x69,+ 0x72, 0x63, 0x6c, 0x65, 0x43, 0x49, 0x12, 0x24, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69,+ 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90,+ 0x01, 0x01, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x05,+ 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74,+ 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,+ 0x61, 0x6c, 0x22, 0xdb, 0x01, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x75, 0x65, 0x6e, 0x63,+ 0x65, 0x12, 0x24, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01, 0x52, 0x08, 0x65,+ 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x48, 0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74,+ 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x1c, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55,+ 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00,+ 0x52, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65,+ 0x64, 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,+ 0x61, 0x6c, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x48, 0x00, 0x52,+ 0x09, 0x62, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x6f,+ 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b,+ 0x65, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,+ 0x22, 0x87, 0x01, 0x0a, 0x09, 0x44, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x48, 0x75, 0x62, 0x12, 0x48,0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65,- 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69,0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65,- 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x74, 0x6f, 0x72,- 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x05,- 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e,- 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65,- 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0xe1, 0x01, 0x0a, 0x09, 0x42, 0x69, 0x74, 0x62, 0x75, 0x63,- 0x6b, 0x65, 0x74, 0x12, 0x24, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01, 0x52,- 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x6f, 0x6b,- 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65,- 0x6e, 0x12, 0x2b, 0x0a, 0x05, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x13, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x4f,- 0x61, 0x75, 0x74, 0x68, 0x32, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x12, 0x37,- 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01,- 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73,- 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x48, 0x00, 0x52, 0x09, 0x62, 0x61,- 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73,- 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72,- 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63,- 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x56, 0x0a, 0x08, 0x43, 0x69, 0x72,- 0x63, 0x6c, 0x65, 0x43, 0x49, 0x12, 0x24, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,+ 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f,+ 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c,+ 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a,+ 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x6c, 0x0a, 0x03, 0x45, 0x43,+ 0x52, 0x12, 0x37, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,+ 0x61, 0x6c, 0x73, 0x2e, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x48, 0x00, 0x52,+ 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65,+ 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a,+ 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72,+ 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x2e, 0x0a, 0x0a, 0x46, 0x69, 0x6c, 0x65,+ 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74,+ 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x72,+ 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x48, 0x0a, 0x03, 0x47, 0x43, 0x53, 0x12,+ 0x19, 0x0a, 0x07, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x73, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x48, 0x00, 0x52, 0x06, 0x6a, 0x73, 0x6f, 0x6e, 0x53, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x75,+ 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x75, 0x63,+ 0x6b, 0x65, 0x74, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,+ 0x61, 0x6c, 0x22, 0xdc, 0x01, 0x0a, 0x03, 0x47, 0x69, 0x74, 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x61,+ 0x73, 0x69, 0x63, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16,+ 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x42, 0x61, 0x73,+ 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x48, 0x00, 0x52, 0x09, 0x62, 0x61, 0x73, 0x69, 0x63, 0x41,+ 0x75, 0x74, 0x68, 0x12, 0x48, 0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74,+ 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63,+ 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75, 0x74,+ 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e,+ 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x20, 0x0a,+ 0x0b, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03,+ 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12,+ 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18,+ 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72,+ 0x69, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,+ 0x6c, 0x22, 0xde, 0x01, 0x0a, 0x06, 0x47, 0x69, 0x74, 0x4c, 0x61, 0x62, 0x12, 0x24, 0x0a, 0x08,+ 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08,+ 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69,+ 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2b, 0x0a, 0x05, 0x6f, 0x61,+ 0x75, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x63, 0x72, 0x65, 0x64,+ 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x4f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x48, 0x00,+ 0x52, 0x05, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x69, 0x63,+ 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72,+ 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41,+ 0x75, 0x74, 0x68, 0x48, 0x00, 0x52, 0x09, 0x62, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68,+ 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73,+ 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f,+ 0x72, 0x69, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,+ 0x61, 0x6c, 0x22, 0xe3, 0x02, 0x0a, 0x06, 0x47, 0x69, 0x74, 0x48, 0x75, 0x62, 0x12, 0x24, 0x0a,+ 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,+ 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f,+ 0x69, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x5f, 0x61, 0x70,+ 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,+ 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x47, 0x69, 0x74, 0x48, 0x75, 0x62, 0x41, 0x70, 0x70, 0x48,+ 0x00, 0x52, 0x09, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x70, 0x70, 0x12, 0x16, 0x0a, 0x05,+ 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74,+ 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x48, 0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,+ 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e,+ 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75,+ 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75,+ 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x22,+ 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05,+ 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69,+ 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69,+ 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x72, 0x67, 0x61, 0x6e,+ 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x63, 0x61, 0x6e,+ 0x55, 0x73, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x63, 0x61,+ 0x6e, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64,+ 0x65, 0x46, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e,+ 0x63, 0x6c, 0x75, 0x64, 0x65, 0x46, 0x6f, 0x72, 0x6b, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72,+ 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x86, 0x02, 0x0a, 0x04, 0x4a, 0x49, 0x52,+ 0x41, 0x12, 0x24, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01, 0x52, 0x08, 0x65,+ 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x69, 0x63,+ 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72,+ 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41,+ 0x75, 0x74, 0x68, 0x48, 0x00, 0x52, 0x09, 0x62, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68,+ 0x12, 0x48, 0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61,+ 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x72, 0x65, 0x64,+ 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,+ 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74,+ 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2b, 0x0a, 0x05, 0x6f, 0x61,+ 0x75, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x63, 0x72, 0x65, 0x64,+ 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x4f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x48, 0x00,+ 0x52, 0x05, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,+ 0x6c, 0x22, 0x73, 0x0a, 0x19, 0x4e, 0x50, 0x4d, 0x55, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,+ 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x48,+ 0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65,+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,+ 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69,+ 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65,+ 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64,+ 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x74, 0x0a, 0x1a, 0x50, 0x79, 0x50, 0x49, 0x55, 0x6e,+ 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x50, 0x61, 0x63,+ 0x6b, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,+ 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e,+ 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75,+ 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75,+ 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x42, 0x0c,+ 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0xfd, 0x01, 0x0a,+ 0x02, 0x53, 0x33, 0x12, 0x37, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65,+ 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,+ 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x48,+ 0x00, 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x48, 0x0a, 0x0f,+ 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,+ 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61,+ 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74,+ 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x4c, 0x0a, 0x11, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f,+ 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e,+ 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,+ 0x48, 0x00, 0x52, 0x10, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,+ 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18,+ 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x42, 0x0c,+ 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x6f, 0x0a, 0x05,+ 0x53, 0x6c, 0x61, 0x63, 0x6b, 0x12, 0x24, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01,0x01, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x74,0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f,- 0x6b, 0x65, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,- 0x6c, 0x22, 0xdb, 0x01, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x75, 0x65, 0x6e, 0x63, 0x65,- 0x12, 0x24, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01, 0x52, 0x08, 0x65, 0x6e,- 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x48, 0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68,- 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x1c, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e,- 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52,- 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64,- 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x03,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,- 0x6c, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x48, 0x00, 0x52, 0x09,- 0x62, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x6f, 0x6b,- 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65,- 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22,- 0x87, 0x01, 0x0a, 0x09, 0x44, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x48, 0x75, 0x62, 0x12, 0x48, 0x0a,- 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,- 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63,- 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,- 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73,- 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72,- 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63,- 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x6c, 0x0a, 0x03, 0x45, 0x43, 0x52,- 0x12, 0x37, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,- 0x6c, 0x73, 0x2e, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x48, 0x00, 0x52, 0x09,- 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x67,- 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x72,- 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65,- 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x2e, 0x0a, 0x0a, 0x46, 0x69, 0x6c, 0x65, 0x73,- 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f,- 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x72, 0x65,- 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x48, 0x0a, 0x03, 0x47, 0x43, 0x53, 0x12, 0x19,- 0x0a, 0x07, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x73, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48,- 0x00, 0x52, 0x06, 0x6a, 0x73, 0x6f, 0x6e, 0x53, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x75, 0x63,- 0x6b, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x75, 0x63, 0x6b,- 0x65, 0x74, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,- 0x6c, 0x22, 0xdc, 0x01, 0x0a, 0x03, 0x47, 0x69, 0x74, 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x61, 0x73,- 0x69, 0x63, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e,+ 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18,+ 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x42,+ 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x06, 0x0a,+ 0x04, 0x54, 0x65, 0x73, 0x74, 0x22, 0x31, 0x0a, 0x09, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x6b, 0x69,+ 0x74, 0x65, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72,+ 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0xdb, 0x01, 0x0a, 0x06, 0x47, 0x65, 0x72,+ 0x72, 0x69, 0x74, 0x12, 0x24, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01, 0x52,+ 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x61, 0x73,+ 0x69, 0x63, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e,0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69,0x63, 0x41, 0x75, 0x74, 0x68, 0x48, 0x00, 0x52, 0x09, 0x62, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75,0x74, 0x68, 0x12, 0x48, 0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69,- 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x72,+ 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x72,0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75, 0x74, 0x68,0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e, 0x61,- 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b,- 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,- 0x09, 0x52, 0x0b, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x22,- 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x04,- 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69,- 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,- 0x22, 0xde, 0x01, 0x0a, 0x06, 0x47, 0x69, 0x74, 0x4c, 0x61, 0x62, 0x12, 0x24, 0x0a, 0x08, 0x65,- 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa,- 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,- 0x74, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,- 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2b, 0x0a, 0x05, 0x6f, 0x61, 0x75,- 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65,- 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x4f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x48, 0x00, 0x52,- 0x05, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f,- 0x61, 0x75, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65,- 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75,- 0x74, 0x68, 0x48, 0x00, 0x52, 0x09, 0x62, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12,- 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18,- 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72,- 0x69, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,- 0x6c, 0x22, 0xe3, 0x02, 0x0a, 0x06, 0x47, 0x69, 0x74, 0x48, 0x75, 0x62, 0x12, 0x24, 0x0a, 0x08,- 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08,- 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69,- 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x5f, 0x61, 0x70, 0x70,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,- 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x47, 0x69, 0x74, 0x48, 0x75, 0x62, 0x41, 0x70, 0x70, 0x48, 0x00,- 0x52, 0x09, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x70, 0x70, 0x12, 0x16, 0x0a, 0x05, 0x74,- 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f,- 0x6b, 0x65, 0x6e, 0x12, 0x48, 0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74,- 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63,- 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75, 0x74,- 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e,- 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x22, 0x0a,- 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20,- 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65,- 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,- 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69,- 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x63, 0x61, 0x6e, 0x55,- 0x73, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x63, 0x61, 0x6e,- 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65,- 0x46, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x63,- 0x6c, 0x75, 0x64, 0x65, 0x46, 0x6f, 0x72, 0x6b, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65,- 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x86, 0x02, 0x0a, 0x04, 0x4a, 0x49, 0x52, 0x41,- 0x12, 0x24, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01, 0x52, 0x08, 0x65, 0x6e,- 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f,- 0x61, 0x75, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65,- 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75,- 0x74, 0x68, 0x48, 0x00, 0x52, 0x09, 0x62, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12,- 0x48, 0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74,- 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65,- 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74,- 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68,- 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2b, 0x0a, 0x05, 0x6f, 0x61, 0x75,- 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65,- 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x4f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x48, 0x00, 0x52,- 0x05, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,- 0x22, 0x73, 0x0a, 0x19, 0x4e, 0x50, 0x4d, 0x55, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74,- 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a,- 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,- 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63,- 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,- 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65,- 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x74, 0x0a, 0x1a, 0x50, 0x79, 0x50, 0x49, 0x55, 0x6e, 0x61,- 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b,- 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74,- 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63,- 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75, 0x74,- 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e,- 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x42, 0x0c, 0x0a,- 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0xfd, 0x01, 0x0a, 0x02,- 0x53, 0x33, 0x12, 0x37, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,- 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x48, 0x00,- 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x48, 0x0a, 0x0f, 0x75,- 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,- 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74,- 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69,- 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x4c, 0x0a, 0x11, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x65,- 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x1d, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x43,- 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x48,- 0x00, 0x52, 0x10, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,- 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x03,- 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x42, 0x0c, 0x0a,- 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x6f, 0x0a, 0x05, 0x53,- 0x6c, 0x61, 0x63, 0x6b, 0x12, 0x24, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01,- 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x6f,- 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b,- 0x65, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18, 0x03,- 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x42, 0x0c,- 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x06, 0x0a, 0x04,- 0x54, 0x65, 0x73, 0x74, 0x22, 0x31, 0x0a, 0x09, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x6b, 0x69, 0x74,- 0x65, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65,- 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0xdb, 0x01, 0x0a, 0x06, 0x47, 0x65, 0x72, 0x72,- 0x69, 0x74, 0x12, 0x24, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01, 0x52, 0x08,- 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x69,- 0x63, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63,- 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63,- 0x41, 0x75, 0x74, 0x68, 0x48, 0x00, 0x52, 0x09, 0x62, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74,- 0x68, 0x12, 0x48, 0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63,- 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x72, 0x65,- 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x55, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65,- 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e, 0x61, 0x75,- 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65,- 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x76, 0x0a, 0x07, 0x4a, 0x65, 0x6e, 0x6b, 0x69, 0x6e, 0x73,- 0x12, 0x24, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01, 0x52, 0x08, 0x65, 0x6e,- 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f,- 0x61, 0x75, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72, 0x65,- 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75,- 0x74, 0x68, 0x48, 0x00, 0x52, 0x09, 0x62, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x42,- 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2a, 0xfe, 0x04,- 0x0a, 0x0a, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19,- 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x5a, 0x55, 0x52,- 0x45, 0x5f, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x53,- 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x49, 0x54, 0x42, 0x55,- 0x43, 0x4b, 0x45, 0x54, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45,- 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x49, 0x52, 0x43, 0x4c, 0x45, 0x43, 0x49, 0x10, 0x02,- 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,- 0x43, 0x4f, 0x4e, 0x46, 0x4c, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x20, 0x0a, 0x1c,- 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x4f, 0x43, 0x4b,- 0x45, 0x52, 0x48, 0x55, 0x42, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x53, 0x10, 0x04, 0x12, 0x13,- 0x0a, 0x0f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x43,- 0x52, 0x10, 0x05, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59,- 0x50, 0x45, 0x5f, 0x47, 0x43, 0x53, 0x10, 0x06, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x4f, 0x55, 0x52,- 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x48, 0x55, 0x42, 0x10, 0x07,- 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,- 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x47, 0x49, 0x54, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12,- 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x4c,- 0x41, 0x42, 0x10, 0x09, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54,- 0x59, 0x50, 0x45, 0x5f, 0x4a, 0x49, 0x52, 0x41, 0x10, 0x0a, 0x12, 0x24, 0x0a, 0x20, 0x53, 0x4f,- 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x50, 0x4d, 0x5f, 0x55, 0x4e,- 0x41, 0x55, 0x54, 0x48, 0x44, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x41, 0x47, 0x45, 0x53, 0x10, 0x0b,- 0x12, 0x25, 0x0a, 0x21, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,- 0x50, 0x59, 0x50, 0x49, 0x5f, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x44, 0x5f, 0x50, 0x41, 0x43,- 0x4b, 0x41, 0x47, 0x45, 0x53, 0x10, 0x0c, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x4f, 0x55, 0x52, 0x43,- 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x33, 0x10, 0x0d, 0x12, 0x15, 0x0a, 0x11, 0x53,- 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x4c, 0x41, 0x43, 0x4b,- 0x10, 0x0e, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50,- 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x0f, 0x12, 0x13,- 0x0a, 0x0f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x49,- 0x54, 0x10, 0x10, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59,- 0x50, 0x45, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x11, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x4f, 0x55,- 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x33, 0x5f, 0x55, 0x4e, 0x41, 0x55,- 0x54, 0x48, 0x45, 0x44, 0x10, 0x12, 0x12, 0x2a, 0x0a, 0x26, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45,- 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x48, 0x55, 0x42, 0x5f, 0x55, 0x4e, 0x41,- 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x4f, 0x52, 0x47,- 0x10, 0x13, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50,- 0x45, 0x5f, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x4b, 0x49, 0x54, 0x45, 0x10, 0x14, 0x12, 0x16, 0x0a,- 0x12, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x45, 0x52,- 0x52, 0x49, 0x54, 0x10, 0x15, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f,- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4a, 0x45, 0x4e, 0x4b, 0x49, 0x4e, 0x53, 0x10, 0x16, 0x42, 0x38,- 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x72, 0x75,- 0x66, 0x66, 0x6c, 0x65, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x74, 0x72, 0x75,- 0x66, 0x66, 0x6c, 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x73,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64,+ 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x76, 0x0a, 0x07, 0x4a, 0x65, 0x6e, 0x6b, 0x69, 0x6e,+ 0x73, 0x12, 0x24, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x90, 0x01, 0x01, 0x52, 0x08, 0x65,+ 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x69, 0x63,+ 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x72,+ 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41,+ 0x75, 0x74, 0x68, 0x48, 0x00, 0x52, 0x09, 0x62, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68,+ 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2a, 0xfe,+ 0x04, 0x0a, 0x0a, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a,+ 0x19, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x5a, 0x55,+ 0x52, 0x45, 0x5f, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15,+ 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x49, 0x54, 0x42,+ 0x55, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x4f, 0x55, 0x52, 0x43,+ 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x49, 0x52, 0x43, 0x4c, 0x45, 0x43, 0x49, 0x10,+ 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45,+ 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x4c, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x20, 0x0a,+ 0x1c, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x4f, 0x43,+ 0x4b, 0x45, 0x52, 0x48, 0x55, 0x42, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x53, 0x10, 0x04, 0x12,+ 0x13, 0x0a, 0x0f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45,+ 0x43, 0x52, 0x10, 0x05, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54,+ 0x59, 0x50, 0x45, 0x5f, 0x47, 0x43, 0x53, 0x10, 0x06, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x4f, 0x55,+ 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x48, 0x55, 0x42, 0x10,+ 0x07, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45,+ 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x47, 0x49, 0x54, 0x10, 0x08, 0x12, 0x16, 0x0a,+ 0x12, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x49, 0x54,+ 0x4c, 0x41, 0x42, 0x10, 0x09, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f,+ 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4a, 0x49, 0x52, 0x41, 0x10, 0x0a, 0x12, 0x24, 0x0a, 0x20, 0x53,+ 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x50, 0x4d, 0x5f, 0x55,+ 0x4e, 0x41, 0x55, 0x54, 0x48, 0x44, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x41, 0x47, 0x45, 0x53, 0x10,+ 0x0b, 0x12, 0x25, 0x0a, 0x21, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45,+ 0x5f, 0x50, 0x59, 0x50, 0x49, 0x5f, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x44, 0x5f, 0x50, 0x41,+ 0x43, 0x4b, 0x41, 0x47, 0x45, 0x53, 0x10, 0x0c, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x4f, 0x55, 0x52,+ 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x33, 0x10, 0x0d, 0x12, 0x15, 0x0a, 0x11,+ 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x4c, 0x41, 0x43,+ 0x4b, 0x10, 0x0e, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x0f, 0x12,+ 0x13, 0x0a, 0x0f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47,+ 0x49, 0x54, 0x10, 0x10, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54,+ 0x59, 0x50, 0x45, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x11, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x4f,+ 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x33, 0x5f, 0x55, 0x4e, 0x41,+ 0x55, 0x54, 0x48, 0x45, 0x44, 0x10, 0x12, 0x12, 0x2a, 0x0a, 0x26, 0x53, 0x4f, 0x55, 0x52, 0x43,+ 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x48, 0x55, 0x42, 0x5f, 0x55, 0x4e,+ 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x4f, 0x52,+ 0x47, 0x10, 0x13, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x4b, 0x49, 0x54, 0x45, 0x10, 0x14, 0x12, 0x16,+ 0x0a, 0x12, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x45,+ 0x52, 0x52, 0x49, 0x54, 0x10, 0x15, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45,+ 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4a, 0x45, 0x4e, 0x4b, 0x49, 0x4e, 0x53, 0x10, 0x16, 0x42,+ 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x72,+ 0x75, 0x66, 0x66, 0x6c, 0x65, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x74, 0x72,+ 0x75, 0x66, 0x66, 0x6c, 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x6b, 0x67, 0x2f,+ 0x70, 0x62, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x33,}var (@@ -2117,67 +2212,72 @@ func file_sources_proto_rawDescGZIP() []byte {}var file_sources_proto_enumTypes = make([]protoimpl.EnumInfo, 1)-var file_sources_proto_msgTypes = make([]protoimpl.MessageInfo, 20)+var file_sources_proto_msgTypes = make([]protoimpl.MessageInfo, 21)var file_sources_proto_goTypes = []interface{}{(SourceType)(0), // 0: sources.SourceType- (*AzureStorage)(nil), // 1: sources.AzureStorage- (*Bitbucket)(nil), // 2: sources.Bitbucket- (*CircleCI)(nil), // 3: sources.CircleCI- (*Confluence)(nil), // 4: sources.Confluence- (*DockerHub)(nil), // 5: sources.DockerHub- (*ECR)(nil), // 6: sources.ECR- (*Filesystem)(nil), // 7: sources.Filesystem- (*GCS)(nil), // 8: sources.GCS- (*Git)(nil), // 9: sources.Git- (*GitLab)(nil), // 10: sources.GitLab- (*GitHub)(nil), // 11: sources.GitHub- (*JIRA)(nil), // 12: sources.JIRA- (*NPMUnauthenticatedPackage)(nil), // 13: sources.NPMUnauthenticatedPackage- (*PyPIUnauthenticatedPackage)(nil), // 14: sources.PyPIUnauthenticatedPackage- (*S3)(nil), // 15: sources.S3- (*Slack)(nil), // 16: sources.Slack- (*Test)(nil), // 17: sources.Test- (*Buildkite)(nil), // 18: sources.Buildkite- (*Gerrit)(nil), // 19: sources.Gerrit- (*Jenkins)(nil), // 20: sources.Jenkins- (*credentialspb.BasicAuth)(nil), // 21: credentials.BasicAuth- (*credentialspb.Unauthenticated)(nil), // 22: credentials.Unauthenticated- (*credentialspb.Oauth2)(nil), // 23: credentials.Oauth2- (*credentialspb.KeySecret)(nil), // 24: credentials.KeySecret- (*credentialspb.GitHubApp)(nil), // 25: credentials.GitHubApp- (*credentialspb.CloudEnvironment)(nil), // 26: credentials.CloudEnvironment+ (*LocalSource)(nil), // 1: sources.LocalSource+ (*AzureStorage)(nil), // 2: sources.AzureStorage+ (*Bitbucket)(nil), // 3: sources.Bitbucket+ (*CircleCI)(nil), // 4: sources.CircleCI+ (*Confluence)(nil), // 5: sources.Confluence+ (*DockerHub)(nil), // 6: sources.DockerHub+ (*ECR)(nil), // 7: sources.ECR+ (*Filesystem)(nil), // 8: sources.Filesystem+ (*GCS)(nil), // 9: sources.GCS+ (*Git)(nil), // 10: sources.Git+ (*GitLab)(nil), // 11: sources.GitLab+ (*GitHub)(nil), // 12: sources.GitHub+ (*JIRA)(nil), // 13: sources.JIRA+ (*NPMUnauthenticatedPackage)(nil), // 14: sources.NPMUnauthenticatedPackage+ (*PyPIUnauthenticatedPackage)(nil), // 15: sources.PyPIUnauthenticatedPackage+ (*S3)(nil), // 16: sources.S3+ (*Slack)(nil), // 17: sources.Slack+ (*Test)(nil), // 18: sources.Test+ (*Buildkite)(nil), // 19: sources.Buildkite+ (*Gerrit)(nil), // 20: sources.Gerrit+ (*Jenkins)(nil), // 21: sources.Jenkins+ (*durationpb.Duration)(nil), // 22: google.protobuf.Duration+ (*anypb.Any)(nil), // 23: google.protobuf.Any+ (*credentialspb.BasicAuth)(nil), // 24: credentials.BasicAuth+ (*credentialspb.Unauthenticated)(nil), // 25: credentials.Unauthenticated+ (*credentialspb.Oauth2)(nil), // 26: credentials.Oauth2+ (*credentialspb.KeySecret)(nil), // 27: credentials.KeySecret+ (*credentialspb.GitHubApp)(nil), // 28: credentials.GitHubApp+ (*credentialspb.CloudEnvironment)(nil), // 29: credentials.CloudEnvironment}var file_sources_proto_depIdxs = []int32{- 21, // 0: sources.AzureStorage.basic_auth:type_name -> credentials.BasicAuth- 22, // 1: sources.AzureStorage.unauthenticated:type_name -> credentials.Unauthenticated- 23, // 2: sources.Bitbucket.oauth:type_name -> credentials.Oauth2- 21, // 3: sources.Bitbucket.basic_auth:type_name -> credentials.BasicAuth- 22, // 4: sources.Confluence.unauthenticated:type_name -> credentials.Unauthenticated- 21, // 5: sources.Confluence.basic_auth:type_name -> credentials.BasicAuth- 22, // 6: sources.DockerHub.unauthenticated:type_name -> credentials.Unauthenticated- 24, // 7: sources.ECR.access_key:type_name -> credentials.KeySecret- 21, // 8: sources.Git.basic_auth:type_name -> credentials.BasicAuth- 22, // 9: sources.Git.unauthenticated:type_name -> credentials.Unauthenticated- 23, // 10: sources.GitLab.oauth:type_name -> credentials.Oauth2- 21, // 11: sources.GitLab.basic_auth:type_name -> credentials.BasicAuth- 25, // 12: sources.GitHub.github_app:type_name -> credentials.GitHubApp- 22, // 13: sources.GitHub.unauthenticated:type_name -> credentials.Unauthenticated- 21, // 14: sources.JIRA.basic_auth:type_name -> credentials.BasicAuth- 22, // 15: sources.JIRA.unauthenticated:type_name -> credentials.Unauthenticated- 23, // 16: sources.JIRA.oauth:type_name -> credentials.Oauth2- 22, // 17: sources.NPMUnauthenticatedPackage.unauthenticated:type_name -> credentials.Unauthenticated- 22, // 18: sources.PyPIUnauthenticatedPackage.unauthenticated:type_name -> credentials.Unauthenticated- 24, // 19: sources.S3.access_key:type_name -> credentials.KeySecret- 22, // 20: sources.S3.unauthenticated:type_name -> credentials.Unauthenticated- 26, // 21: sources.S3.cloud_environment:type_name -> credentials.CloudEnvironment- 21, // 22: sources.Gerrit.basic_auth:type_name -> credentials.BasicAuth- 22, // 23: sources.Gerrit.unauthenticated:type_name -> credentials.Unauthenticated- 21, // 24: sources.Jenkins.basic_auth:type_name -> credentials.BasicAuth- 25, // [25:25] is the sub-list for method output_type- 25, // [25:25] is the sub-list for method input_type- 25, // [25:25] is the sub-list for extension type_name- 25, // [25:25] is the sub-list for extension extendee- 0, // [0:25] is the sub-list for field type_name+ 22, // 0: sources.LocalSource.scan_interval:type_name -> google.protobuf.Duration+ 23, // 1: sources.LocalSource.connection:type_name -> google.protobuf.Any+ 24, // 2: sources.AzureStorage.basic_auth:type_name -> credentials.BasicAuth+ 25, // 3: sources.AzureStorage.unauthenticated:type_name -> credentials.Unauthenticated+ 26, // 4: sources.Bitbucket.oauth:type_name -> credentials.Oauth2+ 24, // 5: sources.Bitbucket.basic_auth:type_name -> credentials.BasicAuth+ 25, // 6: sources.Confluence.unauthenticated:type_name -> credentials.Unauthenticated+ 24, // 7: sources.Confluence.basic_auth:type_name -> credentials.BasicAuth+ 25, // 8: sources.DockerHub.unauthenticated:type_name -> credentials.Unauthenticated+ 27, // 9: sources.ECR.access_key:type_name -> credentials.KeySecret+ 24, // 10: sources.Git.basic_auth:type_name -> credentials.BasicAuth+ 25, // 11: sources.Git.unauthenticated:type_name -> credentials.Unauthenticated+ 26, // 12: sources.GitLab.oauth:type_name -> credentials.Oauth2+ 24, // 13: sources.GitLab.basic_auth:type_name -> credentials.BasicAuth+ 28, // 14: sources.GitHub.github_app:type_name -> credentials.GitHubApp+ 25, // 15: sources.GitHub.unauthenticated:type_name -> credentials.Unauthenticated+ 24, // 16: sources.JIRA.basic_auth:type_name -> credentials.BasicAuth+ 25, // 17: sources.JIRA.unauthenticated:type_name -> credentials.Unauthenticated+ 26, // 18: sources.JIRA.oauth:type_name -> credentials.Oauth2+ 25, // 19: sources.NPMUnauthenticatedPackage.unauthenticated:type_name -> credentials.Unauthenticated+ 25, // 20: sources.PyPIUnauthenticatedPackage.unauthenticated:type_name -> credentials.Unauthenticated+ 27, // 21: sources.S3.access_key:type_name -> credentials.KeySecret+ 25, // 22: sources.S3.unauthenticated:type_name -> credentials.Unauthenticated+ 29, // 23: sources.S3.cloud_environment:type_name -> credentials.CloudEnvironment+ 24, // 24: sources.Gerrit.basic_auth:type_name -> credentials.BasicAuth+ 25, // 25: sources.Gerrit.unauthenticated:type_name -> credentials.Unauthenticated+ 24, // 26: sources.Jenkins.basic_auth:type_name -> credentials.BasicAuth+ 27, // [27:27] is the sub-list for method output_type+ 27, // [27:27] is the sub-list for method input_type+ 27, // [27:27] is the sub-list for extension type_name+ 27, // [27:27] is the sub-list for extension extendee+ 0, // [0:27] is the sub-list for field type_name}func init() { file_sources_proto_init() }@@ -2187,7 +2287,7 @@ func file_sources_proto_init() {}if !protoimpl.UnsafeEnabled {file_sources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*AzureStorage); i {+ switch v := v.(*LocalSource); i {case 0:return &v.statecase 1:@@ -2199,7 +2299,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Bitbucket); i {+ switch v := v.(*AzureStorage); i {case 0:return &v.statecase 1:@@ -2211,7 +2311,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*CircleCI); i {+ switch v := v.(*Bitbucket); i {case 0:return &v.statecase 1:@@ -2223,7 +2323,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Confluence); i {+ switch v := v.(*CircleCI); i {case 0:return &v.statecase 1:@@ -2235,7 +2335,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*DockerHub); i {+ switch v := v.(*Confluence); i {case 0:return &v.statecase 1:@@ -2247,7 +2347,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ECR); i {+ switch v := v.(*DockerHub); i {case 0:return &v.statecase 1:@@ -2259,7 +2359,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Filesystem); i {+ switch v := v.(*ECR); i {case 0:return &v.statecase 1:@@ -2271,7 +2371,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*GCS); i {+ switch v := v.(*Filesystem); i {case 0:return &v.statecase 1:@@ -2283,7 +2383,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Git); i {+ switch v := v.(*GCS); i {case 0:return &v.statecase 1:@@ -2295,7 +2395,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*GitLab); i {+ switch v := v.(*Git); i {case 0:return &v.statecase 1:@@ -2307,7 +2407,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*GitHub); i {+ switch v := v.(*GitLab); i {case 0:return &v.statecase 1:@@ -2319,7 +2419,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*JIRA); i {+ switch v := v.(*GitHub); i {case 0:return &v.statecase 1:@@ -2331,7 +2431,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*NPMUnauthenticatedPackage); i {+ switch v := v.(*JIRA); i {case 0:return &v.statecase 1:@@ -2343,7 +2443,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*PyPIUnauthenticatedPackage); i {+ switch v := v.(*NPMUnauthenticatedPackage); i {case 0:return &v.statecase 1:@@ -2355,7 +2455,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*S3); i {+ switch v := v.(*PyPIUnauthenticatedPackage); i {case 0:return &v.statecase 1:@@ -2367,7 +2467,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Slack); i {+ switch v := v.(*S3); i {case 0:return &v.statecase 1:@@ -2379,7 +2479,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Test); i {+ switch v := v.(*Slack); i {case 0:return &v.statecase 1:@@ -2391,7 +2491,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Buildkite); i {+ switch v := v.(*Test); i {case 0:return &v.statecase 1:@@ -2403,7 +2503,7 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Gerrit); i {+ switch v := v.(*Buildkite); i {case 0:return &v.statecase 1:@@ -2415,6 +2515,18 @@ func file_sources_proto_init() {}}file_sources_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Gerrit); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_sources_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Jenkins); i {case 0:return &v.state@@ -2427,75 +2539,75 @@ func file_sources_proto_init() {}}}- file_sources_proto_msgTypes[0].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[1].OneofWrappers = []interface{}{(*AzureStorage_ConnectionString)(nil),(*AzureStorage_BasicAuth)(nil),(*AzureStorage_ClientCertificate)(nil),(*AzureStorage_Unauthenticated)(nil),}- file_sources_proto_msgTypes[1].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[2].OneofWrappers = []interface{}{(*Bitbucket_Token)(nil),(*Bitbucket_Oauth)(nil),(*Bitbucket_BasicAuth)(nil),}- file_sources_proto_msgTypes[2].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[3].OneofWrappers = []interface{}{(*CircleCI_Token)(nil),}- file_sources_proto_msgTypes[3].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[4].OneofWrappers = []interface{}{(*Confluence_Unauthenticated)(nil),(*Confluence_BasicAuth)(nil),(*Confluence_Token)(nil),}- file_sources_proto_msgTypes[4].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[5].OneofWrappers = []interface{}{(*DockerHub_Unauthenticated)(nil),}- file_sources_proto_msgTypes[5].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[6].OneofWrappers = []interface{}{(*ECR_AccessKey)(nil),}- file_sources_proto_msgTypes[7].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[8].OneofWrappers = []interface{}{(*GCS_JsonSa)(nil),}- file_sources_proto_msgTypes[8].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[9].OneofWrappers = []interface{}{(*Git_BasicAuth)(nil),(*Git_Unauthenticated)(nil),}- file_sources_proto_msgTypes[9].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[10].OneofWrappers = []interface{}{(*GitLab_Token)(nil),(*GitLab_Oauth)(nil),(*GitLab_BasicAuth)(nil),}- file_sources_proto_msgTypes[10].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[11].OneofWrappers = []interface{}{(*GitHub_GithubApp)(nil),(*GitHub_Token)(nil),(*GitHub_Unauthenticated)(nil),}- file_sources_proto_msgTypes[11].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[12].OneofWrappers = []interface{}{(*JIRA_BasicAuth)(nil),(*JIRA_Unauthenticated)(nil),(*JIRA_Oauth)(nil),}- file_sources_proto_msgTypes[12].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[13].OneofWrappers = []interface{}{(*NPMUnauthenticatedPackage_Unauthenticated)(nil),}- file_sources_proto_msgTypes[13].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[14].OneofWrappers = []interface{}{(*PyPIUnauthenticatedPackage_Unauthenticated)(nil),}- file_sources_proto_msgTypes[14].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[15].OneofWrappers = []interface{}{(*S3_AccessKey)(nil),(*S3_Unauthenticated)(nil),(*S3_CloudEnvironment)(nil),}- file_sources_proto_msgTypes[15].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[16].OneofWrappers = []interface{}{(*Slack_Token)(nil),}- file_sources_proto_msgTypes[17].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[18].OneofWrappers = []interface{}{(*Buildkite_Token)(nil),}- file_sources_proto_msgTypes[18].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[19].OneofWrappers = []interface{}{(*Gerrit_BasicAuth)(nil),(*Gerrit_Unauthenticated)(nil),}- file_sources_proto_msgTypes[19].OneofWrappers = []interface{}{+ file_sources_proto_msgTypes[20].OneofWrappers = []interface{}{(*Jenkins_BasicAuth)(nil),}type x struct{}@@ -2504,7 +2616,7 @@ func file_sources_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_sources_proto_rawDesc,NumEnums: 1,- NumMessages: 20,+ NumMessages: 21,NumExtensions: 0,NumServices: 0,},diff --git a/pkg/pb/sourcespb/sources.pb.validate.go b/pkg/pb/sourcespb/sources.pb.validate.goindex 191f590b3..79ce1ba88 100644--- a/pkg/pb/sourcespb/sources.pb.validate.go+++ b/pkg/pb/sourcespb/sources.pb.validate.go@@ -35,6 +35,168 @@ var (_ = sort.Sort)+// Validate checks the field values on LocalSource with the rules defined in+// the proto definition for this message. If any rules are violated, the first+// error encountered is returned, or nil if there are no violations.+func (m *LocalSource) Validate() error {+ return m.validate(false)+}++// ValidateAll checks the field values on LocalSource with the rules defined in+// the proto definition for this message. If any rules are violated, the+// result is a list of violation errors wrapped in LocalSourceMultiError, or+// nil if none found.+func (m *LocalSource) ValidateAll() error {+ return m.validate(true)+}++func (m *LocalSource) validate(all bool) error {+ if m == nil {+ return nil+ }++ var errors []error++ // no validation rules for Type++ // no validation rules for Name++ if all {+ switch v := interface{}(m.GetScanInterval()).(type) {+ case interface{ ValidateAll() error }:+ if err := v.ValidateAll(); err != nil {+ errors = append(errors, LocalSourceValidationError{+ field: "ScanInterval",+ reason: "embedded message failed validation",+ cause: err,+ })+ }+ case interface{ Validate() error }:+ if err := v.Validate(); err != nil {+ errors = append(errors, LocalSourceValidationError{+ field: "ScanInterval",+ reason: "embedded message failed validation",+ cause: err,+ })+ }+ }+ } else if v, ok := interface{}(m.GetScanInterval()).(interface{ Validate() error }); ok {+ if err := v.Validate(); err != nil {+ return LocalSourceValidationError{+ field: "ScanInterval",+ reason: "embedded message failed validation",+ cause: err,+ }+ }+ }++ // no validation rules for Verify++ if all {+ switch v := interface{}(m.GetConnection()).(type) {+ case interface{ ValidateAll() error }:+ if err := v.ValidateAll(); err != nil {+ errors = append(errors, LocalSourceValidationError{+ field: "Connection",+ reason: "embedded message failed validation",+ cause: err,+ })+ }+ case interface{ Validate() error }:+ if err := v.Validate(); err != nil {+ errors = append(errors, LocalSourceValidationError{+ field: "Connection",+ reason: "embedded message failed validation",+ cause: err,+ })+ }+ }+ } else if v, ok := interface{}(m.GetConnection()).(interface{ Validate() error }); ok {+ if err := v.Validate(); err != nil {+ return LocalSourceValidationError{+ field: "Connection",+ reason: "embedded message failed validation",+ cause: err,+ }+ }+ }++ if len(errors) > 0 {+ return LocalSourceMultiError(errors)+ }+ return nil+}++// LocalSourceMultiError is an error wrapping multiple validation errors+// returned by LocalSource.ValidateAll() if the designated constraints aren't met.+type LocalSourceMultiError []error++// Error returns a concatenation of all the error messages it wraps.+func (m LocalSourceMultiError) Error() string {+ var msgs []string+ for _, err := range m {+ msgs = append(msgs, err.Error())+ }+ return strings.Join(msgs, "; ")+}++// AllErrors returns a list of validation violation errors.+func (m LocalSourceMultiError) AllErrors() []error { return m }++// LocalSourceValidationError is the validation error returned by+// LocalSource.Validate if the designated constraints aren't met.+type LocalSourceValidationError struct {+ field string+ reason string+ cause error+ key bool+}++// Field function returns field value.+func (e LocalSourceValidationError) Field() string { return e.field }++// Reason function returns reason value.+func (e LocalSourceValidationError) Reason() string { return e.reason }++// Cause function returns cause value.+func (e LocalSourceValidationError) Cause() error { return e.cause }++// Key function returns key value.+func (e LocalSourceValidationError) Key() bool { return e.key }++// ErrorName returns error name.+func (e LocalSourceValidationError) ErrorName() string { return "LocalSourceValidationError" }++// Error satisfies the builtin error interface+func (e LocalSourceValidationError) Error() string {+ cause := ""+ if e.cause != nil {+ cause = fmt.Sprintf(" | caused by: %v", e.cause)+ }++ key := ""+ if e.key {+ key = "key for "+ }++ return fmt.Sprintf(+ "invalid %sLocalSource.%s: %s%s",+ key,+ e.field,+ e.reason,+ cause)+}++var _ error = LocalSourceValidationError{}++var _ interface {+ Field() string+ Reason() string+ Key() bool+ Cause() error+ ErrorName() string+} = LocalSourceValidationError{}+// Validate checks the field values on AzureStorage with the rules defined in// the proto definition for this message. If any rules are violated, the first// error encountered is returned, or nil if there are no violations.diff --git a/pkg/sources/filesystem/filesystem.go b/pkg/sources/filesystem/filesystem.goindex 298deda61..3a129e354 100644--- a/pkg/sources/filesystem/filesystem.go+++ b/pkg/sources/filesystem/filesystem.go@@ -15,11 +15,10 @@ import ("google.golang.org/protobuf/types/known/anypb""github.com/trufflesecurity/trufflehog/v3/pkg/common"- "github.com/trufflesecurity/trufflehog/v3/pkg/sanitizer"- "github.com/trufflesecurity/trufflehog/v3/pkg/sources"-"github.com/trufflesecurity/trufflehog/v3/pkg/pb/source_metadatapb""github.com/trufflesecurity/trufflehog/v3/pkg/pb/sourcespb"+ "github.com/trufflesecurity/trufflehog/v3/pkg/sanitizer"+ "github.com/trufflesecurity/trufflehog/v3/pkg/sources")const (diff --git a/pkg/sources/github/github.go b/pkg/sources/github/github.goindex ec8408910..45010fd74 100644--- a/pkg/sources/github/github.go+++ b/pkg/sources/github/github.go@@ -108,7 +108,7 @@ func (s *Source) Init(aCtx context.Context, name string, jobId, sourceId int64,var conn sourcespb.GitHuberr := anypb.UnmarshalTo(connection, &conn, proto.UnmarshalOptions{})if err != nil {- errors.WrapPrefix(err, "error unmarshalling connection", 0)+ return errors.WrapPrefix(err, "error unmarshalling connection", 0)}s.conn = &conn@@ -290,11 +290,12 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk) errlog.Debugf("Found %v total repos to scan", len(s.repos))wg := sync.WaitGroup{}- errChan := make(chan error)+ errs := []error{}+ var errsMut sync.Mutexfor i, repoURL := range s.repos {s.jobSem.Acquire(ctx, 1)wg.Add(1)- go func(ctx context.Context, errCh chan error, repoURL string, i int) {+ go func(ctx context.Context, repoURL string, i int) {defer s.jobSem.Release(1)defer wg.Done()@@ -316,7 +317,9 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk) errvar token stringtoken, err = s.Token(ctx, installationClient)if err != nil {- errCh <- err+ errsMut.Lock()+ errs = append(errs, err)+ errsMut.Unlock()return}path, repo, err = git.CloneRepoUsingToken(token, repoURL, "clone")@@ -333,16 +336,14 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk) err}scanned += 1logrus.Debugf("scanned %d/%d repos", scanned, len(s.repos))- }(ctx, errChan, repoURL, i)+ }(ctx, repoURL, i)}wg.Wait()- close(errChan)+// This only returns first error which is what we did prior to concurrency- for err := range errChan {- if err != nil {- return err- }+ if len(errs) > 0 {+ return errs[0]}return nildiff --git a/pkg/sources/gitlab/gitlab.go b/pkg/sources/gitlab/gitlab.goindex 26f7a3658..35445bce8 100644--- a/pkg/sources/gitlab/gitlab.go+++ b/pkg/sources/gitlab/gitlab.go@@ -6,10 +6,16 @@ import ("net/url""os""runtime"+ "strings""sync""github.com/go-errors/errors"log "github.com/sirupsen/logrus"+ "github.com/xanzy/go-gitlab"+ "golang.org/x/sync/semaphore"+ "google.golang.org/protobuf/proto"+ "google.golang.org/protobuf/types/known/anypb"+"github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/giturl""github.com/trufflesecurity/trufflehog/v3/pkg/pb/source_metadatapb"@@ -17,10 +23,6 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/sanitizer""github.com/trufflesecurity/trufflehog/v3/pkg/sources""github.com/trufflesecurity/trufflehog/v3/pkg/sources/git"- "github.com/xanzy/go-gitlab"- "golang.org/x/sync/semaphore"- "google.golang.org/protobuf/proto"- "google.golang.org/protobuf/types/known/anypb")type Source struct {@@ -70,7 +72,7 @@ func (s *Source) Init(aCtx context.Context, name string, jobId, sourceId int64,var conn sourcespb.GitLaberr := anypb.UnmarshalTo(connection, &conn, proto.UnmarshalOptions{})if err != nil {- errors.WrapPrefix(err, "error unmarshalling connection", 0)+ return errors.WrapPrefix(err, "error unmarshalling connection", 0)}s.repos = conn.Repositories@@ -152,9 +154,8 @@ func (s *Source) getAllProjects(apiClient *gitlab.Client) ([]*gitlab.Project, erreturn nil, errors.Errorf("unable to authenticate using: %s", s.authMethod)}- var projects []*gitlab.Project+ projects := map[int]*gitlab.Project{}- // TODO: enumerate all usewr projectsprojectQueryOptions := &gitlab.ListProjectsOptions{OrderBy: gitlab.String("last_activity_at"),}@@ -163,7 +164,9 @@ func (s *Source) getAllProjects(apiClient *gitlab.Client) ([]*gitlab.Project, erif err != nil {return nil, errors.Errorf("received error on listing projects: %s\n", err)}- projects = append(projects, userProjects...)+ for _, prj := range userProjects {+ projects[prj.ID] = prj+ }projectQueryOptions.Page = res.NextPageif res.NextPage == 0 {break@@ -173,7 +176,7 @@ func (s *Source) getAllProjects(apiClient *gitlab.Client) ([]*gitlab.Project, ervar groups []*gitlab.GrouplistGroupsOptions := gitlab.ListGroupsOptions{- AllAvailable: gitlab.Bool(false), // This actually grabs outside groups on public GitLab+ AllAvailable: gitlab.Bool(false), // This actually grabs public groups on public GitLab if set to trueTopLevelOnly: gitlab.Bool(false),Owned: gitlab.Bool(false),}@@ -202,19 +205,29 @@ func (s *Source) getAllProjects(apiClient *gitlab.Client) ([]*gitlab.Project, erif err != nil {return nil, errors.Errorf("received error on listing projects: %s\n", err)}- projects = append(projects, grpPrjs...)+ for _, prj := range grpPrjs {+ projects[prj.ID] = prj+ }listGroupProjectOptions.Page = res.NextPageif res.NextPage == 0 {break}}}- log.WithField("projects", projects).Debugf("Enumerated %d GitLab projects", len(projects))- return projects, nil+ var projectNamesWithNamespace []string+ for _, project := range projects {+ projectNamesWithNamespace = append(projectNamesWithNamespace, project.NameWithNamespace)+ }+ log.WithField("projects", strings.Join(projectNamesWithNamespace, ", ")).Debugf("Enumerated %d GitLab projects", len(projects))++ var projectList []*gitlab.Project+ for _, project := range projects {+ projectList = append(projectList, project)+ }+ return projectList, nil}-func (s *Source) getRepos(apiClient *gitlab.Client) ([]*url.URL, []error) {- //is repo defined?+func (s *Source) getRepos() ([]*url.URL, []error) {var validRepos []*url.URLvar errs []errorif len(s.repos) > 0 {@@ -222,6 +235,7 @@ func (s *Source) getRepos(apiClient *gitlab.Client) ([]*url.URL, []error) {repo, err := giturl.NormalizeGitlabRepo(prj)if err != nil {errs = append(errs, errors.WrapPrefix(err, fmt.Sprintf("unable to normalize gitlab repo url %s", prj), 0))+ continue}// The repo normalization has already successfully parsed the URL at this point, so we can ignore the error.@@ -235,18 +249,19 @@ func (s *Source) getRepos(apiClient *gitlab.Client) ([]*url.URL, []error) {}func (s *Source) scanRepos(ctx context.Context, chunksChan chan *sources.Chunk, repos []*url.URL) []error {- errChan := make(chan error)wg := sync.WaitGroup{}+ errs := []error{}+ var errsMut sync.Mutexif s.authMethod == "UNAUTHENTICATED" {for i, u := range repos {if common.IsDone(ctx) {- // We are returning nil instead of the errors slice here because+ // We are returning nil instead of the scanErrors slice here because// we don't want to mark this scan as errored if we cancelled it.return nil}s.jobSem.Acquire(ctx, 1)wg.Add(1)- go func(ctx context.Context, errCh chan error, repoURL *url.URL, i int) {+ go func(ctx context.Context, repoURL *url.URL, i int) {defer s.jobSem.Release(1)defer wg.Done()if len(repoURL.String()) == 0 {@@ -257,27 +272,33 @@ func (s *Source) scanRepos(ctx context.Context, chunksChan chan *sources.Chunk,path, repo, err := git.CloneRepoUsingUnauthenticated(repoURL.String())defer os.RemoveAll(path)if err != nil {- errCh <- err+ errsMut.Lock()+ errs = append(errs, err)+ errsMut.Unlock()return}+ log.Debugf("Starting to scan repo %d/%d: %s", i+1, len(repos), repoURL.String())err = s.git.ScanRepo(ctx, repo, git.NewScanOptions(), chunksChan)if err != nil {- errCh <- err+ errsMut.Lock()+ errs = append(errs, err)+ errsMut.Unlock()return}- }(ctx, errChan, u, i)+ log.Debugf("Completed scanning repo %d/%d: %s", i+1, len(repos), repoURL.String())+ }(ctx, u, i)}} else {for i, u := range repos {if common.IsDone(ctx) {- // We are returning nil instead of the errors slice here because+ // We are returning nil instead of the scanErrors slice here because// we don't want to mark this scan as errored if we cancelled it.return nil}s.jobSem.Acquire(ctx, 1)wg.Add(1)- go func(ctx context.Context, errCh chan error, repoURL *url.URL, i int) {+ go func(ctx context.Context, repoURL *url.URL, i int) {defer s.jobSem.Release(1)defer wg.Done()if len(repoURL.String()) == 0 {@@ -288,27 +309,27 @@ func (s *Source) scanRepos(ctx context.Context, chunksChan chan *sources.Chunk,path, repo, err := git.CloneRepoUsingToken(s.token, repoURL.String(), s.user)defer os.RemoveAll(path)if err != nil {- errCh <- err+ errsMut.Lock()+ errs = append(errs, err)+ errsMut.Unlock()return}+ log.Debugf("Starting to scan repo %d/%d: %s", i+1, len(repos), repoURL.String())err = s.git.ScanRepo(ctx, repo, git.NewScanOptions(), chunksChan)if err != nil {- errCh <- err+ errsMut.Lock()+ errs = append(errs, err)+ errsMut.Unlock()return}- }(ctx, errChan, u, i)+ log.Debugf("Completed scanning repo %d/%d: %s", i+1, len(repos), repoURL.String())+ }(ctx, u, i)}}wg.Wait()- close(errChan)- var errors []error- for err := range errChan {- errors = append(errors, err)- }-- return errors+ return errs}// Chunks emits chunks of bytes over a channel.@@ -319,10 +340,16 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk) errreturn errors.New(err)}// get repo within target- repos, errs := s.getRepos(apiClient)+ repos, errs := s.getRepos()for _, repoErr := range errs {log.WithError(repoErr).Warn("error getting repo")}++ // End early if we had errors getting specified repos but none were validated+ if len(errs) > 0 && len(repos) == 0 {+ return errors.New("All specified repos had validation issues, ending scan")+ }+// get all repos if not specifiedif repos == nil {projects, err := s.getAllProjects(apiClient)diff --git a/pkg/sources/sources.go b/pkg/sources/sources.goindex 2c9a5b194..234d9a5a7 100644--- a/pkg/sources/sources.go+++ b/pkg/sources/sources.go@@ -55,9 +55,7 @@ type Progress struct {func (p *Progress) SetProgressComplete(i, scope int, message string) {p.mut.Lock()defer p.mut.Unlock()- if p == nil {- p = &Progress{}- }+p.Message = messagep.SectionsCompleted = int32(i)p.SectionsRemaining = int32(scope)diff --git a/proto/credentials.proto b/proto/credentials.protoindex 6180531db..6bf77479c 100644--- a/proto/credentials.proto+++ b/proto/credentials.proto@@ -2,7 +2,7 @@ syntax = "proto3";package credentials;-option go_package = "github.com/trufflesecurity/trufflehog/pkg/pb/credentialspb";+option go_package = "github.com/trufflesecurity/trufflehog/v3/pkg/pb/credentialspb";message Unauthenticated {}diff --git a/proto/detectors.proto b/proto/detectors.protoindex 45ffe6ecd..416a97e6a 100644--- a/proto/detectors.proto+++ b/proto/detectors.proto@@ -2,7 +2,7 @@ syntax = "proto3";package detectors;-option go_package = "github.com/trufflesecurity/trufflehog/pkg/pb/detectorspb";+option go_package = "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb";enum DetectorType {Alibaba = 0;diff --git a/proto/secrets.proto b/proto/secrets.protoindex 6e86644b0..288d1307f 100644--- a/proto/secrets.proto+++ b/proto/secrets.proto@@ -2,7 +2,7 @@ syntax = "proto3";package secret;-option go_package = "github.com/trufflesecurity/trufflehog/pkg/pb/detectorspb";+option go_package = "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb";enum DetectorType {Alibaba = 0;diff --git a/proto/source_metadata.proto b/proto/source_metadata.protoindex 822bff7a0..fa7ed957f 100644--- a/proto/source_metadata.proto+++ b/proto/source_metadata.proto@@ -2,7 +2,7 @@ syntax = "proto3";package source_metadata;-option go_package = "github.com/trufflesecurity/trufflehog/pkg/pb/source_metadatapb";+option go_package = "github.com/trufflesecurity/trufflehog/v3/pkg/pb/source_metadatapb";message Azure {string container = 1;diff --git a/proto/sources.proto b/proto/sources.protoindex adbfafbb4..08ffdd3d8 100644--- a/proto/sources.proto+++ b/proto/sources.proto@@ -2,10 +2,11 @@ syntax = "proto3";package sources;-option go_package = "github.com/trufflesecurity/trufflehog/pkg/pb/sourcespb";+option go_package = "github.com/trufflesecurity/trufflehog/v3/pkg/pb/sourcespb";import "validate/validate.proto";import "credentials.proto";+import "google/protobuf/any.proto";import "google/protobuf/duration.proto";@@ -35,6 +36,14 @@ enum SourceType {SOURCE_TYPE_JENKINS = 22;}+message LocalSource {+ string type = 1 ;+ string name = 2 ;+ google.protobuf.Duration scan_interval = 3;+ bool verify = 4;+ google.protobuf.Any connection = 5;+}+message AzureStorage {oneof credential {string connection_string = 1;