Skip to content

Commit

Permalink
chore: upgrades coraza, fixes nightly check (envoyproxy#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
M4tteoP authored Dec 6, 2022
1 parent d7ccb20 commit bd4b778
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly-coraza-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Get last commit of coraza
id: coraza-latest-commit
run: echo "::set-output name=value::$(gh api repos/corazawaf/coraza/commits/v3/dev -q .sha)"
run: echo "value=$(gh api repos/corazawaf/coraza/commits/v3/dev -q .sha)" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/corazawaf/coraza-proxy-wasm
go 1.19

require (
github.com/corazawaf/coraza/v3 v3.0.0-20221108125006-22f2f33e5863
github.com/corazawaf/coraza/v3 v3.0.0-20221206102836-fb52935e8360
github.com/stretchr/testify v1.8.0
github.com/tetratelabs/proxy-wasm-go-sdk v0.20.1-0.20221031045735-89d180d022a5
github.com/tidwall/gjson v1.14.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/corazawaf/coraza/v3 v3.0.0-20221108125006-22f2f33e5863 h1:9wGp/AV78wZmj73bgJREXc/73OxbhJSOTa4ib3N1dDY=
github.com/corazawaf/coraza/v3 v3.0.0-20221108125006-22f2f33e5863/go.mod h1:SMJQI/wT4xkDyCPnt6LN3q8bnci/VXhq7IglfW5isOM=
github.com/corazawaf/coraza/v3 v3.0.0-20221206102836-fb52935e8360 h1:EHXMulKPpYruaaYb4n6OcZOsbWANTvrTLULVS0EgaM8=
github.com/corazawaf/coraza/v3 v3.0.0-20221206102836-fb52935e8360/go.mod h1:SMJQI/wT4xkDyCPnt6LN3q8bnci/VXhq7IglfW5isOM=
github.com/corazawaf/libinjection-go v0.1.1 h1:N/SMuy9Q4wPL72pU/OsoYjIIjfvUbsVwHf8A3tWMLKg=
github.com/corazawaf/libinjection-go v0.1.1/go.mod h1:OP4TM7xdJ2skyXqNX1AN1wN5nNZEmJNuWbNPOItn7aw=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down
4 changes: 2 additions & 2 deletions wasmplugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (ctx *httpContext) OnHttpRequestBody(bodySize int, endOfStream bool) types.
tx := ctx.tx

// Do not perform any action related to request body if SecRequestBodyAccess is set to false
if !tx.RequestBodyAccessible() {
if !tx.IsRequestBodyAccessible() {
proxywasm.LogDebug("skipping request body inspection, SecRequestBodyAccess is off.")
return types.ActionContinue
}
Expand Down Expand Up @@ -254,7 +254,7 @@ func (ctx *httpContext) OnHttpResponseBody(bodySize int, endOfStream bool) types
tx := ctx.tx

// Do not perform any action related to response body if SecResponseBodyAccess is set to false
if !tx.ResponseBodyAccessible() {
if !tx.IsResponseBodyAccessible() {
proxywasm.LogDebug("skipping response body inspection, SecResponseBodyAccess is off.")
return types.ActionContinue
}
Expand Down

0 comments on commit bd4b778

Please sign in to comment.