-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into consumer-api-doc-rewording
- Loading branch information
Showing
49 changed files
with
788 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
build/openresty/patches/lua-cjson-2.1.0.13_01-error-on-t_end.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From e1fca089680e76896744ec2f25219dd705fe21da Mon Sep 17 00:00:00 2001 | ||
From: Wangchong Zhou <wangchong@konghq.com> | ||
Date: Wed, 17 Apr 2024 18:00:10 +0800 | ||
Subject: [PATCH 1/4] bugfix: throw error if T_END found in the middle of input | ||
|
||
--- | ||
lua_cjson.c | 4 ++++ | ||
tests/test.lua | 5 +++++ | ||
2 files changed, 9 insertions(+) | ||
|
||
diff --git a/bundle/lua-cjson-2.1.0.13/lua_cjson.c b/bundle/lua-cjson-2.1.0.13/lua_cjson.c | ||
index 363466c..7343f32 100644 | ||
--- a/bundle/lua-cjson-2.1.0.13/lua_cjson.c | ||
+++ b/bundle/lua-cjson-2.1.0.13/lua_cjson.c | ||
@@ -1437,6 +1437,10 @@ static int json_decode(lua_State *l) | ||
if (token.type != T_END) | ||
json_throw_parse_error(l, &json, "the end", &token); | ||
|
||
+ /* Make sure T_END (\x00) doesn't occur at middle of input */ | ||
+ if (json.data + json_len > json.ptr) | ||
+ json_throw_parse_error(l, &json, "EOF", &token); | ||
+ | ||
strbuf_free(json.tmp); | ||
|
||
return 1; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
message: "Bumped atc-router from v1.6.0 to v1.6.1" | ||
message: "Bumped atc-router from v1.6.0 to v1.6.2" | ||
type: dependency | ||
scope: Core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
message: "Bumped libexpat to 2.6.2" | ||
type: dependency | ||
scope: Core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
message: "Bumped lua-kong-nginx-module from 0.8.0 to 0.10.0" | ||
message: | | ||
Bumped lua-kong-nginx-module from 0.8.0 to 0.11.0 | ||
type: dependency | ||
scope: Core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
message: "Bumped lua-resty-acme to 0.13.0" | ||
type: dependency | ||
scope: Core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
message: Bump lua-resty-http to 0.17.2. | ||
type: dependency |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
message: "Bumped lua-resty-openssl to 1.2.1" | ||
message: Bumped lua-resty-openssl from 1.2.0 to 1.3.1 | ||
type: dependency | ||
scope: Core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
message: | | ||
Improve the robustness of lua-cjson when handling unexpected input. | ||
type: dependency |
3 changes: 3 additions & 0 deletions
3
changelog/unreleased/kong/fix-dbless-duplicate-target-error.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
message: "Fixed an issue wherein `POST /config?flatten_errors=1` could not return a proper response if the input included duplicate upstream targets" | ||
type: bugfix | ||
scope: Core |
3 changes: 3 additions & 0 deletions
3
changelog/unreleased/kong/fix-vault-secret-update-without-ttl.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
message: Fixed a bug that allowed vault secrets to refresh even when they had no TTL set. | ||
type: bugfix | ||
scope: Core |
4 changes: 4 additions & 0 deletions
4
changelog/unreleased/kong/fix-wasm-disable-pwm-lua-resolver.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
message: | | ||
Disable usage of the Lua DNS resolver from proxy-wasm by default. | ||
type: bugfix | ||
scope: Configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
message: Update telemetry collection for AI Plugins to allow multiple instances data to be set for the same request. | ||
message: Update telemetry collection for AI Plugins to allow multiple plugins data to be set for the same request. | ||
type: bugfix | ||
scope: Core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.