Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
sdk/sqreen-instrumentation-tool: enable partial instrumentation of echo
Browse files Browse the repository at this point in the history
Enable partial instrumentation of Echo in order to run the In-App WAF
when the body is parsed into a Go object. This is achieved thanks to a
security rule dynamically attaching the In-App WAF to Echo's `Bind()`
method.
  • Loading branch information
Julio Guerra authored Sep 21, 2020
2 parents 685042a + 09e7315 commit bc2b88f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sdk/sqreen-instrumentation-tool/instrumentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ var (
"os",
"net/http",
"github.com/gin-gonic/gin",
"github.com/labstack/echo",
"go.mongodb.org/mongo-driver/mongo",
}

Expand All @@ -227,6 +228,10 @@ var (
// Limited for performance reasons to:
"mongo.go", // mongo.go contains the bson transformation function
},
"github.com/labstack/echo": {
// Same comment as net/http
"context.go", // context.go contains the body parsers
},
}
)

Expand Down

0 comments on commit bc2b88f

Please sign in to comment.