Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
feat [detector]: added hasura detector (#3427)
Sahil Silare05866d526e16
diff --git a/pkg/detectors/hasura/hasura.go b/pkg/detectors/hasura/hasura.gonew file mode 100644index 000000000..27bfd0b29--- /dev/null+++ b/pkg/detectors/hasura/hasura.go@@ -0,0 +1,157 @@+package hasura++import (+ "bytes"+ "context"+ "encoding/json"+ "fmt"+ "io"+ "net/http"+ "strings"++ regexp "github.com/wasilibs/go-re2"++ "github.com/trufflesecurity/trufflehog/v3/pkg/common"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors"+ "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+)++type Scanner struct {+ client *http.Client+}++// Ensure the Scanner satisfies the interface at compile time.+var _ detectors.Detector = (*Scanner)(nil)++var (+ defaultClient = common.SaneHttpClient()++ // domainPat finds Hasura cloud domains.+ domainPat = regexp.MustCompile(`\b([a-zA-Z0-9-]+\.hasura\.app)\b`)+ // keyPat finds potential Hasura admin secrets, often prefixed with "hasura".+ keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"hasura"}) + `\b([a-zA-Z0-9]{64})\b`)+)++func (s Scanner) Keywords() []string {+ return []string{"hasura"}+}++func (s Scanner) getClient() *http.Client {+ if s.client != nil {+ return s.client+ }++ return defaultClient+}++// FromData will find and optionally verify Hasura secrets in a given set of bytes.+func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error) {+ dataStr := string(data)++ var uniqueKeyMatches, uniqueDomainMatches = make(map[string]struct{}), make(map[string]struct{})++ for _, match := range keyPat.FindAllStringSubmatch(dataStr, -1) {+ uniqueKeyMatches[match[1]] = struct{}{}+ }++ for _, match := range domainPat.FindAllStringSubmatch(dataStr, -1) {+ uniqueDomainMatches[match[1]] = struct{}{}+ }++ // Logic: For each key, try to verify against each found domain.+ // Stop and record a verified finding on the first successful match.+ for key := range uniqueKeyMatches {+ for domain := range uniqueDomainMatches {+ s1 := detectors.Result{+ DetectorType: detectorspb.DetectorType_Hasura,+ Raw: []byte(key),+ RawV2: fmt.Appendf([]byte(""), "%s:%s", domain, key),+ }++ if verify {+ isVerified, extraData, verificationErr := s.verifyHasura(ctx, s.getClient(), domain, key)+ s1.Verified = isVerified+ s1.ExtraData = extraData+ s1.SetVerificationError(verificationErr, key)+ }++ results = append(results, s1)+ // If we successfully verified this key with a domain, we don't need to check it against other domains.+ if s1.Verified {+ break+ }+ }+ }++ return results, nil+}++func (s Scanner) Type() detectorspb.DetectorType {+ return detectorspb.DetectorType_Hasura+}++func (s Scanner) Description() string {+ return `Hasura is an open-source engine that instantly generates GraphQL and REST APIs over PostgreSQL (and other databases).+ It allows you to query, mutate, and subscribe to data in real time. Admin secrets (or admin keys) are used to securely access+ and manage Hasura projects, giving full control over data, metadata, and schema.`+}++// verifyHasura attempts to validate a Hasura key against a given domain.+func (s Scanner) verifyHasura(ctx context.Context, client *http.Client, domain, key string) (bool, map[string]string, error) {+ query := `{"query":"query { __schema { types { name } } }"}`+ url := fmt.Sprintf("https://%s/v1/graphql", domain)++ req, err := http.NewRequestWithContext(ctx, http.MethodPost, url, strings.NewReader(query))+ if err != nil {+ return false, nil, err+ }+ req.Header.Set("Content-Type", "application/json")+ req.Header.Set("x-hasura-admin-secret", key)++ resp, err := client.Do(req)+ if err != nil {+ return false, nil, err+ }+ defer func() {+ _, _ = io.Copy(io.Discard, resp.Body)+ _ = resp.Body.Close()+ }()++ extraData := map[string]string{"domain": domain}++ // Since the API returns 200 OK for both valid and invalid keys, we MUST parse the body.+ bodyBytes, err := io.ReadAll(resp.Body)+ if err != nil {+ return false, extraData, err+ }++ // Handle non-200 status codes+ if resp.StatusCode != http.StatusOK {+ // Special case: Project not reachable is a definitive "not verified", not an error+ if resp.StatusCode == http.StatusInternalServerError && isHasuraProjectUnavailable(bodyBytes) {+ return false, extraData, nil+ }+ return false, extraData, fmt.Errorf("unexpected status code: %d", resp.StatusCode)+ }++ var response struct {+ Data any `json:"data"`+ Errors []any `json:"errors"`+ }++ if err := json.Unmarshal(bodyBytes, &response); err != nil {+ return false, extraData, fmt.Errorf("failed to unmarshal json response: %w", err)+ }++ // Key is verified if we have data and no errors+ if response.Data != nil && len(response.Errors) == 0 {+ return true, extraData, nil+ }++ // Key is not verified if we have errors or no data+ return false, extraData, nil+}++func isHasuraProjectUnavailable(bodyBytes []byte) bool {+ return bytes.Contains(bodyBytes, []byte("Project not reachable")) || bytes.Contains(bodyBytes, []byte("Unable to load this project"))+}diff --git a/pkg/detectors/hasura/hasura_integration_test.go b/pkg/detectors/hasura/hasura_integration_test.gonew file mode 100644index 000000000..5b52c3fd8--- /dev/null+++ b/pkg/detectors/hasura/hasura_integration_test.go@@ -0,0 +1,176 @@+//go:build detectors+// +build detectors++package hasura++import (+ "context"+ "fmt"+ "testing"+ "time"++ "github.com/google/go-cmp/cmp"+ "github.com/google/go-cmp/cmp/cmpopts"++ "github.com/trufflesecurity/trufflehog/v3/pkg/common"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors"+ "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+)++func TestHasura_FromData(t *testing.T) {+ ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)+ defer cancel()+ testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors5")+ if err != nil {+ t.Fatalf("could not get test secrets from GCP: %s", err)+ }++ secret := testSecrets.MustGetField("HASURA")+ inactiveSecret := testSecrets.MustGetField("HASURA_INACTIVE")+ domain := testSecrets.MustGetField("HASURA_DOMAIN")++ type args struct {+ ctx context.Context+ data []byte+ verify bool+ }+ tests := []struct {+ name string+ s Scanner+ args args+ want []detectors.Result+ wantErr bool+ wantVerificationErr bool+ }{+ {+ name: "found, verified",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte(fmt.Sprintf("You can find a hasura secret %s within hasura domain %s", secret, domain)),+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_Hasura,+ Verified: true,+ Raw: []byte(secret),+ RawV2: []byte(fmt.Sprintf("%s:%s", domain, secret)),+ ExtraData: map[string]string{"domain": domain},+ },+ },+ wantErr: false,+ wantVerificationErr: false,+ },+ {+ name: "found, unverified",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte(fmt.Sprintf("You can find a hasura secret %s within hasura domain %s but not valid", inactiveSecret, domain)),+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_Hasura,+ Verified: false,+ Raw: []byte(inactiveSecret),+ RawV2: []byte(fmt.Sprintf("%s:%s", domain, inactiveSecret)),+ ExtraData: map[string]string{"domain": domain},+ },+ },+ wantErr: false,+ wantVerificationErr: false,+ },+ {+ name: "not found",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte("You cannot find the secret within"),+ verify: true,+ },+ want: nil,+ wantErr: false,+ wantVerificationErr: false,+ },+ {+ name: "found, would be verified if not for timeout",+ s: Scanner{client: common.SaneHttpClientTimeOut(1 * time.Microsecond)},+ args: args{+ ctx: context.Background(),+ data: []byte(fmt.Sprintf("You can find a hasura secret %s within %s", secret, domain)),+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_Hasura,+ Verified: false,+ Raw: []byte(secret),+ RawV2: []byte(fmt.Sprintf("%s:%s", domain, secret)),+ ExtraData: nil,+ },+ },+ wantErr: false,+ wantVerificationErr: true,+ },+ {+ name: "found, unexpected api response",+ s: Scanner{client: common.ConstantResponseHttpClient(500, "")},+ args: args{+ ctx: context.Background(),+ data: []byte(fmt.Sprintf("You can find a hasura secret %s within %s", secret, domain)),+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_Hasura,+ Verified: false,+ Raw: []byte(secret),+ RawV2: []byte(fmt.Sprintf("%s:%s", domain, secret)),+ ExtraData: map[string]string{"domain": domain},+ },+ },+ wantErr: false,+ wantVerificationErr: true,+ },+ }+ for _, tt := range tests {+ t.Run(tt.name, func(t *testing.T) {+ got, err := tt.s.FromData(tt.args.ctx, tt.args.verify, tt.args.data)+ if (err != nil) != tt.wantErr {+ t.Errorf("FromData() error = %v, wantErr %v", err, tt.wantErr)+ return+ }+ for i := range got {+ if len(got[i].Raw) == 0 {+ t.Fatalf("no raw secret present: \n %+v", got[i])+ }++ if (got[i].VerificationError() != nil) != tt.wantVerificationErr {+ t.Fatalf("wantVerificationErr = %v, got verification error = %v", tt.wantVerificationErr, got[i].VerificationError())+ }+ }+ ignoreOpts := cmpopts.IgnoreFields(detectors.Result{}, "verificationError", "primarySecret")+ if diff := cmp.Diff(tt.want, got, ignoreOpts); diff != "" {+ t.Errorf("Hasura.FromData() %s - diff: (-got +want)\n%s", tt.name, diff)+ }+ })+ }+}++func BenchmarkFromData(benchmark *testing.B) {+ ctx := context.Background()+ s := Scanner{}+ for name, data := range detectors.MustGetBenchmarkData() {+ benchmark.Run(name, func(b *testing.B) {+ b.ResetTimer()+ for n := 0; n < b.N; n++ {+ _, err := s.FromData(ctx, false, data)+ if err != nil {+ b.Fatal(err)+ }+ }+ })+ }+}diff --git a/pkg/detectors/hasura/hasura_test.go b/pkg/detectors/hasura/hasura_test.gonew file mode 100644index 000000000..bc254bc7e--- /dev/null+++ b/pkg/detectors/hasura/hasura_test.go@@ -0,0 +1,136 @@+package hasura++import (+ "context"+ "testing"++ "github.com/google/go-cmp/cmp"+)++func TestHasura_Pattern(t *testing.T) {+ d := Scanner{}++ tests := []struct {+ name string+ input string+ expectedPairs []string+ }{+ {+ name: "simple case: one domain, one key",+ input: "The hasura admin secret is 05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4 for the domain project-one-12345.hasura.app",+ expectedPairs: []string{"project-one-12345.hasura.app:05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4"},+ },+ {+ name: "multiple keys, single domain",+ input: `+ The domain is project-one-12345.hasura.app+ hasura key1: 05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4+ hasura key2: aBcDeFgHiJkLmNoPqRsTuVwXyZ123456aBcDeFgHiJkLmNoPqRsTuVwXyZ123456+ `,+ expectedPairs: []string{+ "project-one-12345.hasura.app:05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4",+ "project-one-12345.hasura.app:aBcDeFgHiJkLmNoPqRsTuVwXyZ123456aBcDeFgHiJkLmNoPqRsTuVwXyZ123456",+ },+ },+ {+ name: "single key, multiple domains",+ input: `+ The hasura key is 05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4+ Domain 1: project-one-12345.hasura.app+ Domain 2: project-two-67890.hasura.app+ `,+ expectedPairs: []string{+ "project-one-12345.hasura.app:05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4",+ "project-two-67890.hasura.app:05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4",+ },+ },+ {+ name: "many-to-many: multiple keys and domains",+ input: `+ Here is a hasura key: 05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4+ And another hasura key: aBcDeFgHiJkLmNoPqRsTuVwXyZ123456aBcDeFgHiJkLmNoPqRsTuVwXyZ123456+ And a hasura domain: project-one-12345.hasura.app+ And another domain: project-two-67890.hasura.app+ `,+ expectedPairs: []string{+ "project-one-12345.hasura.app:05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4",+ "project-one-12345.hasura.app:aBcDeFgHiJkLmNoPqRsTuVwXyZ123456aBcDeFgHiJkLmNoPqRsTuVwXyZ123456",+ "project-two-67890.hasura.app:05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4",+ "project-two-67890.hasura.app:aBcDeFgHiJkLmNoPqRsTuVwXyZ123456aBcDeFgHiJkLmNoPqRsTuVwXyZ123456",+ },+ },+ {+ name: "negative case: only a key, no domain",+ input: "A hasura secret without a domain: 05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4",+ expectedPairs: []string{},+ },+ {+ name: "negative case: only a domain, no key",+ input: "A hasura domain without a secret: project-one-12345.hasura.app",+ expectedPairs: []string{},+ },+ {+ name: "negative case: invalid key with valid domain",+ input: "An invalid hasura key not-a-valid-key-12345 with a valid domain project-one-12345.hasura.app",+ expectedPairs: []string{},+ },+ {+ name: "mixed valid and invalid keys with one domain",+ input: `+ The domain is project-one-12345.hasura.app+ Valid hasura key: 05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4+ Invalid hasura key: not-a-valid-key-12345+ `,+ expectedPairs: []string{"project-one-12345.hasura.app:05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4"},+ },+ {+ name: "negative case: invalid domain with valid key",+ input: "A hasura key 05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4 with an invalid domain example.com",+ expectedPairs: []string{},+ },+ {+ name: "negative case: key without 'hasura' keyword nearby",+ input: "A random 64-char string 05tUFwoJfK2dui0CWKxzqJHmNzQrsX40Kwd7g2OEqLl1RZeU6pRvyOSnD4nghgH4 with a valid domain project-one-12345.hasura.app",+ expectedPairs: []string{},+ },+ }++ for _, test := range tests {+ t.Run(test.name, func(t *testing.T) {+ // Run the detector with verification turned off for pattern testing.+ results, err := d.FromData(context.Background(), false, []byte(test.input))+ if err != nil {+ t.Fatalf("FromData() returned an unexpected error: %v", err)+ }++ // Check if the number of results matches what we expect.+ if len(results) != len(test.expectedPairs) {+ t.Errorf("expected %d results, but got %d", len(test.expectedPairs), len(results))+ // Log results for easier debugging+ for i, r := range results {+ t.Logf("Got result %d: %s", i, string(r.RawV2))+ }+ t.FailNow()+ }++ // For a more robust comparison, load the results into maps to ignore order.+ actualPairs := make(map[string]struct{}, len(results))+ for _, r := range results {+ // The RawV2 field should contain the "domain:key" pair.+ if len(r.RawV2) > 0 {+ actualPairs[string(r.RawV2)] = struct{}{}+ }+ }++ expectedPairsMap := make(map[string]struct{}, len(test.expectedPairs))+ for _, v := range test.expectedPairs {+ expectedPairsMap[v] = struct{}{}+ }++ // Use cmp.Diff to find any mismatches between the expected and actual pairs.+ if diff := cmp.Diff(expectedPairsMap, actualPairs); diff != "" {+ t.Errorf("FromData() results mismatch (-want +got):\n%s", diff)+ }+ })+ }+}diff --git a/pkg/engine/defaults/defaults.go b/pkg/engine/defaults/defaults.goindex 1f3db298b..88718488c 100644--- a/pkg/engine/defaults/defaults.go+++ b/pkg/engine/defaults/defaults.go@@ -349,6 +349,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/happyscribe""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/harness""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/harvest"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/hasura""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/hellosign""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/helpcrunch""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/helpscout"@@ -1717,6 +1718,7 @@ func buildDetectorList() []detectors.Detector {&zulipchat.Scanner{},&stripepaymentintent.Scanner{},&bitbucketapppassword.Scanner{},+ &hasura.Scanner{},}}diff --git a/pkg/pb/detectorspb/detectors.pb.go b/pkg/pb/detectorspb/detectors.pb.goindex 29dcf158c..b2c7f3f53 100644--- a/pkg/pb/detectorspb/detectors.pb.go+++ b/pkg/pb/detectorspb/detectors.pb.go@@ -1133,7 +1133,8 @@ const (DetectorType_DeepSeek DetectorType = 1026DetectorType_StripePaymentIntent DetectorType = 1027DetectorType_LangSmith DetectorType = 1028- DetectorType_BitbucketAppPassword DetectorType = 1029+ DetectorType_BitbucketAppPassword DetectorType = 1029+ DetectorType_Hasura DetectorType = 1030)// Enum value maps for DetectorType.@@ -2164,7 +2165,8 @@ var (1026: "DeepSeek",1027: "StripePaymentIntent",1028: "LangSmith",- 1029: "BitbucketAppPassword",+ 1029: "BitbucketAppPassword",+ 1030: "Hasura",}DetectorType_value = map[string]int32{"Alibaba": 0,@@ -3193,6 +3195,7 @@ var ("StripePaymentIntent": 1027,"LangSmith": 1028,"BitbucketAppPassword": 1029,+ "Hasura": 1030,})@@ -3646,7 +3649,7 @@ var file_detectors_proto_rawDesc = []byte{0x4c, 0x41, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x41, 0x53, 0x45, 0x36, 0x34,0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x54, 0x46, 0x31, 0x36, 0x10, 0x03, 0x12, 0x13, 0x0a,0x0f, 0x45, 0x53, 0x43, 0x41, 0x50, 0x45, 0x44, 0x5f, 0x55, 0x4e, 0x49, 0x43, 0x4f, 0x44, 0x45,- 0x10, 0x04, 0x2a, 0xd9, 0x84, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72,+ 0x10, 0x04, 0x2a, 0x81, 0x85, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72,0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x6c, 0x69, 0x62, 0x61, 0x62, 0x61, 0x10,0x00, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x4d, 0x51, 0x50, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x41,0x57, 0x53, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x10, 0x03, 0x12,@@ -4707,12 +4710,14 @@ var file_detectors_proto_rawDesc = []byte{0x69, 0x6e, 0x67, 0x10, 0x81, 0x08, 0x12, 0x0d, 0x0a, 0x08, 0x44, 0x65, 0x65, 0x70, 0x53, 0x65,0x65, 0x6b, 0x10, 0x82, 0x08, 0x12, 0x18, 0x0a, 0x13, 0x53, 0x74, 0x72, 0x69, 0x70, 0x65, 0x50,0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x10, 0x83, 0x08, 0x12,- 0x0e, 0x0a, 0x09, 0x4c, 0x61, 0x6e, 0x67, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x10, 0x84, 0x08, 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, 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,+ 0x0e, 0x0a, 0x09, 0x4c, 0x61, 0x6e, 0x67, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x10, 0x84, 0x08, 0x12,+ 0x19, 0x0a, 0x14, 0x42, 0x69, 0x74, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50,+ 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x10, 0x85, 0x08, 0x12, 0x0b, 0x0a, 0x06, 0x48, 0x61,+ 0x73, 0x75, 0x72, 0x61, 0x10, 0x86, 0x08, 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, 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/proto/detectors.proto b/proto/detectors.protoindex 695742621..fc1d80e45 100644--- a/proto/detectors.proto+++ b/proto/detectors.proto@@ -1039,6 +1039,7 @@ enum DetectorType {StripePaymentIntent = 1027;LangSmith = 1028;BitbucketAppPassword = 1029;+ Hasura = 1030;}message Result {