Skip to content

Commit 0ed0448

Browse files
authored
Merge pull request #40 from PerimeterX/release/v4.0.1
Release/v4.0.1
2 parents 85e2534 + 464747f commit 0ed0448

8 files changed

+2097
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88

9+
## [4.0.1] - 2024-12-26
10+
### Fixed
11+
- GraphQL default path
12+
13+
### Changed
14+
- Depend on perimeterx-nginx-plugin v7.3.4
15+
16+
917
## [4.0.0] - 2024-10-24
1018
### Added
1119
- Kong 3.x is now supported

kong-plugin-perimeterx-4.0.0-1.rockspec renamed to kong-plugin-perimeterx-4.0.1-1.rockspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package = "kong-plugin-perimeterx"
22

3-
version = "4.0.0-1"
3+
version = "4.0.1-1"
44

55
supported_platforms = {"linux", "macosx"}
66
source = {
77
url = "git://github.com/PerimeterX/perimeterx-kong-plugin.git",
8-
tag = "v4.0.0"
8+
tag = "v4.0.1"
99
}
1010

1111
description = {
@@ -15,7 +15,7 @@ description = {
1515
}
1616

1717
dependencies = {
18-
"perimeterx-nginx-plugin == 7.3.0"
18+
"perimeterx-nginx-plugin == 7.3.4"
1919
}
2020

2121
local pluginName = "perimeterx"

kong/plugins/perimeterx/handler.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ local pxconfig = require("px.pxconfig")
22
local pxtimer = require("px.utils.pxtimer")
33
local pxconstants = require("px.utils.pxconstants")
44
local px = require("px.pxnginx")
5-
local MODULE_VERSION = "4.0.0"
5+
local MODULE_VERSION = "4.0.1"
66
local MODULE_VERSION_FULL = "Kong Plugin v" .. MODULE_VERSION
77
local ngx_now = ngx.now
88

kong/plugins/perimeterx/schema.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ return {
8080
-- ## GraphQL
8181
{ px_sensitive_graphql_operation_types = {type = "array", elements = { type = "string" }, default = {}} },
8282
{ px_sensitive_graphql_operation_names = {type = "array", elements = { type = "string" }, default = {}} },
83-
{ px_graphql_routes = {type = "array", elements = { type = "string" }, default = {'/graphql'}} },
83+
{ px_graphql_routes = {type = "array", elements = { type = "string" }, default = {}} },
8484

8585
-- ## User Identifiers
8686
{ px_jwt_cookie_name = {type = "string"} },

px_metadata.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"module_name" : "KONG plugin",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"spec_version" : "1.0.0",
55
"supported_features": [
66
"advanced_blocking_response",
@@ -22,6 +22,7 @@
2222
"filter_by_user_agent",
2323
"filter_by_extension",
2424
"first_party",
25+
"graphql_support",
2526
"js_ref",
2627
"logger",
2728
"mobile_support",
@@ -34,6 +35,7 @@
3435
"risk_api",
3536
"sensitive_routes",
3637
"sensitive_headers",
38+
"user_identifiers"
3739
"vid_extraction"
3840
]
3941
}

scripts/Dockerfile.kong.3.4.2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ RUN ln -s /usr/local/lib/lua/px /usr/local/share/lua/5.1/px
99
COPY . /tmp/perimeterx-kong-plugin
1010
RUN cd /tmp/perimeterx-kong-plugin && luarocks make
1111
COPY kong/config/kong.dev.yml /etc/kong/kong.yml
12+
COPY scripts/kong.conf.default /etc/kong/kong.conf
1213

13-
EXPOSE 8000 8443 8001 8444
14+
EXPOSE 8000 8443 8001 8444 8002
1415

1516
USER kong
1617
ENTRYPOINT ["/docker-entrypoint.sh"]

scripts/kong.conf.default

Lines changed: 2077 additions & 0 deletions
Large diffs are not rendered by default.

scripts/run-kong.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ docker run \
5656
-e "KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl" \
5757
-e "KONG_DECLARATIVE_CONFIG=/etc/kong/kong.yml" \
5858
-e "KONG_PLUGINS=bundled,perimeterx" \
59+
-e "KONG_LOG_LEVEL=debug" \
5960
-p 8080:8000 \
6061
-p 8000:8000 \
6162
-p 8443:8443 \
6263
-p 8001:8001 \
64+
-p 8002:8002 \
6365
-p 8444:8444 \
6466
-v $(pwd)/:/tmp/px \
6567
-it --rm --name "$NAME" "$NAME"

0 commit comments

Comments
 (0)