Skip to content

Commit 21e5b96

Browse files
committed
- Upgraded deps
- Fixed redudant logic
1 parent 62b8e3f commit 21e5b96

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

go.mod

+2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ go 1.11
44

55
require (
66
github.com/PuerkitoBio/goquery v1.6.1
7+
github.com/andybalholm/cascadia v1.2.0 // indirect
78
gitlab.nobody.run/tbi/socksme v0.0.0-20201130024528-3ad02d4108c5
9+
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781 // indirect
810
)

go.sum

+9
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@ github.com/PuerkitoBio/goquery v1.6.1 h1:FgjbQZKl5HTmcn4sKBgvx8vv63nhyhIpv7lJpFG
22
github.com/PuerkitoBio/goquery v1.6.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBKeU+7zCJoLcc=
33
github.com/andybalholm/cascadia v1.1.0 h1:BuuO6sSfQNFRu1LppgbD25Hr2vLYW25JvxHs5zzsLTo=
44
github.com/andybalholm/cascadia v1.1.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y=
5+
github.com/andybalholm/cascadia v1.2.0 h1:vuRCkM5Ozh/BfmsaTm26kbjm0mIOM3yS5Ek/F5h18aE=
6+
github.com/andybalholm/cascadia v1.2.0/go.mod h1:YCyR8vOZT9aZ1CHEd8ap0gMVm2aFgxBp0T0eFw1RUQY=
57
gitlab.nobody.run/tbi/socksme v0.0.0-20201130024528-3ad02d4108c5 h1:OUBbWsRDwvD6Nu6rP8PN6xGxIxXpVPBPBE9iuvDQH90=
68
gitlab.nobody.run/tbi/socksme v0.0.0-20201130024528-3ad02d4108c5/go.mod h1:2R0aT7bhH9+xiSielZpKS/TL4nTki1jxOCCgXN8BzV8=
79
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
810
golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
911
golang.org/x/net v0.0.0-20200202094626-16171245cfb2 h1:CCH4IOTTfewWjGOlSp+zGcjutRKlBEZQ6wTn8ozI/nI=
1012
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
13+
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781 h1:DzZ89McO9/gWPsQXS/FVKAlG02ZjaQ6AlZRBimEYOd0=
14+
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk=
1115
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
16+
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
17+
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
18+
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
1219
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
20+
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
21+
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=

l9event.go

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ type L9SSHEvent struct {
5959
type L9LeakEvent struct {
6060
Stage string `json:"stage"`
6161
Type string `json:"type"`
62-
Data string `json:"data"`
6362
Severity string `json:"severity"`
6463
Dataset DatasetSummary `json:"dataset"`
6564
}

l9event.json

-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
"leak": {
8484
"stage": "open",
8585
"type": "configuration",
86-
"data": "Found .env file",
8786
"severity": "medium",
8887
"dataset": {
8988
"rows": 4,

l9plugin.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type ServicePluginInterface interface {
1818
GetProtocols() []string
1919
GetName() string
2020
GetStage() string
21-
Run(ctx context.Context, event *L9Event, options map[string]string) (leak L9LeakEvent, hasLeak bool)
21+
Run(ctx context.Context, event *L9Event, options map[string]string) (hasLeak bool)
2222
}
2323

2424
type ServicePluginBase struct {
@@ -90,7 +90,7 @@ type WebPluginInterface interface {
9090
GetRequests() []WebPluginRequest
9191
GetName() string
9292
GetStage() string
93-
Verify(request WebPluginRequest, response WebPluginResponse, event *L9Event, options map[string]string) (leak L9LeakEvent, hasLeak bool)
93+
Verify(request WebPluginRequest, response WebPluginResponse, event *L9Event, options map[string]string) (hasLeak bool)
9494
}
9595

9696
type WebPluginRequest struct {

0 commit comments

Comments
 (0)