Skip to content

Commit b968016

Browse files
authored
Merge branch 'apache:master' into master
2 parents 5c0b76c + b205d08 commit b968016

File tree

232 files changed

+13903
-8154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+13903
-8154
lines changed

.devcontainer/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ services:
2525
- ..:/workspace:cached
2626
network_mode: service:etcd
2727
etcd:
28-
image: bitnami/etcd:3.5
28+
image: bitnamilegacy/etcd:3.5
2929
volumes:
3030
- etcd_data:/bitnami/etcd
3131
environment:

.github/workflows/doc-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v4
2626
- name: 🚀 Use Node.js
27-
uses: actions/setup-node@v4.0.2
27+
uses: actions/setup-node@v4.4.0
2828
with:
2929
node-version: "12.x"
3030
- run: npm install -g [email protected]

.github/workflows/kubernetes-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
5454
kubectl apply -f ./t/kubernetes/configs/endpoint.yaml
5555
56+
kubectl apply -f ./t/kubernetes/configs/endpointslices.yaml
57+
5658
KUBERNETES_CLIENT_TOKEN_CONTENT=$(kubectl get secrets | grep apisix-test | awk '{system("kubectl get secret -o jsonpath={.data.token} "$1" | base64 --decode")}')
5759
5860
KUBERNETES_CLIENT_TOKEN_DIR="/tmp/var/run/secrets/kubernetes.io/serviceaccount"

.github/workflows/link-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
wget https://raw.githubusercontent.com/xuruidong/markdown-link-checker/main/link_checker.py
4040
4141
- name: Setup python
42-
uses: actions/setup-python@v5
42+
uses: actions/setup-python@v6
4343
with:
4444
python-version: '3.9'
4545

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: actions/checkout@v4
3434

3535
- name: Setup Nodejs env
36-
uses: actions/setup-node@v4.0.2
36+
uses: actions/setup-node@v4.4.0
3737
with:
3838
node-version: '12'
3939

.github/workflows/source-install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- redhat
3232
services:
3333
etcd:
34-
image: bitnami/etcd:3.5.4
34+
image: bitnamilegacy/etcd:3.5.4
3535
ports:
3636
- 2379:2379
3737
- 2380:2380

CHANGELOG.md

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,13 @@ title: Changelog
8282

8383
## 3.13.0
8484

85-
### Deprecation
85+
**The changes marked with :warning: are not backward compatible.**
86+
87+
### Change
8688

87-
- change: mark server-info plugin as deprecated [#12244](https://github.com/apache/apisix/pull/12244)
89+
- :warning: mark server-info plugin as deprecated [#12244](https://github.com/apache/apisix/pull/12244)
90+
- :warning: fill in the metadata of resource schema [#12224](https://github.com/apache/apisix/pull/12224).
91+
This PR sets additionalProperties to false for consumer credentials.
8892

8993
### Bugfixes
9094

@@ -159,14 +163,21 @@ title: Changelog
159163

160164
## 3.12.0
161165

166+
**The changes marked with :warning: are not backward compatible.**
167+
162168
### Change
163169

164-
- replace plugin attribute with plugin metadata in `opentelemetry` plugin [#11940](https://github.com/apache/apisix/pull/11940)
165-
- refactor: ai-content-moderation to ai-aws-content-moderation [#11596](https://github.com/apache/apisix/pull/11596])
170+
- :warning: replace plugin attribute with plugin metadata in `opentelemetry` plugin [#11940](https://github.com/apache/apisix/pull/11940)
171+
- :warning: refactor: ai-content-moderation to ai-aws-content-moderation [#12010](https://github.com/apache/apisix/pull/12010)
166172
- add expiration time for all Prometheus metrics [#11838](https://github.com/apache/apisix/pull/11838)
167173
- allow workflow config without case [#11787](https://github.com/apache/apisix/pull/11787)
168-
- refactor: ai-content-moderation to ai-aws-content-moderation (#12010)
169-
- rectify business logic/code in ai-proxy [#12055](https://github.com/apache/apisix/pull/12055)
174+
- unify google-cloud-oauth.lua file [#11596](https://github.com/apache/apisix/pull/11596)
175+
- :warning: ai-proxy remove passthrough [#12014](https://github.com/apache/apisix/pull/12014)
176+
- :warning: remove model options' `stream` default value [#12013](https://github.com/apache/apisix/pull/12013)
177+
- :warning: grpc-web response contains two trailer chunks [#11988](https://github.com/apache/apisix/pull/11988).
178+
This PR returns `405 Method not allowed` instead of `400 Bad Request` when request HTTP method errors.
179+
- :warning: disallow empty key configuration attributes [#11852](https://github.com/apache/apisix/pull/11852)
180+
- :warning: set default value of ssl_trusted_certificate to system [#11993](https://github.com/apache/apisix/pull/11993)
170181

171182
### Bugfixes
172183

@@ -230,10 +241,12 @@ title: Changelog
230241

231242
## 3.11.0
232243

244+
**The changes marked with :warning: are not backward compatible.**
245+
233246
### Change
234247

235-
- remove JWT signing endpoint and no longer require a private key to be uploaded in the jwt-auth plugin. [#11597](https://github.com/apache/apisix/pull/11597)
236-
- rewrite hmac-auth plugin for usability [#11581](https://github.com/apache/apisix/pull/11581)
248+
- :warning: remove JWT signing endpoint and no longer require a private key to be uploaded in the jwt-auth plugin. [#11597](https://github.com/apache/apisix/pull/11597)
249+
- :warning: rewrite hmac-auth plugin for usability [#11581](https://github.com/apache/apisix/pull/11581)
237250

238251
### Plugins
239252

@@ -257,13 +270,20 @@ title: Changelog
257270

258271
## 3.10.0
259272

273+
**The changes marked with :warning: are not backward compatible.**
274+
260275
### Change
261276

262-
- remove `core.grpc` module [#11427](https://github.com/apache/apisix/pull/11427)
277+
- :warning: remove `core.grpc` module [#11427](https://github.com/apache/apisix/pull/11427)
263278
- add max req/resp body size attributes [#11133](https://github.com/apache/apisix/pull/11133)
264-
- autogenerate admin api key if not passed [#11080](https://github.com/apache/apisix/pull/11080)
265-
- enable sensitive fields encryption by default [#11076](https://github.com/apache/apisix/pull/11076)
279+
- :warning: autogenerate admin api key if not passed [#11080](https://github.com/apache/apisix/pull/11080)
280+
- :warning: enable sensitive fields encryption by default [#11076](https://github.com/apache/apisix/pull/11076)
266281
- support more sensitive fields for encryption [#11095](https://github.com/apache/apisix/pull/11095)
282+
- :warning: avoid overwriting `Access-Control-Expose-Headers` response header [#11136](https://github.com/apache/apisix/pull/11136)
283+
This change removes the default `*` value for `expose_headers` and only sets the header when explicitly configured.
284+
- :warning: add a default limit of 100 for `get_headers()` [#11140](https://github.com/apache/apisix/pull/11140)
285+
- :warning: core.request.header return strings instead of table [#11127](https://github.com/apache/apisix/pull/11127)
286+
This function now always returns strings, previously it returned tables when duplicate headers existed.
267287

268288
### Plugins
269289

@@ -310,10 +330,12 @@ title: Changelog
310330

311331
## 3.9.0
312332

333+
**The changes marked with :warning: are not backward compatible.**
334+
313335
### Change
314336

315-
- change: use apisix.enable_http2 to enable HTTP/2 in APISIX (#11032)
316-
- change: unify the keyring and key_encrypt_salt fields (#10771)
337+
- :warning: use apisix.enable_http2 to enable HTTP/2 in APISIX [#11032](https://github.com/apache/apisix/pull/11032)
338+
- :warning: unify the keyring and key_encrypt_salt fields [#10771](https://github.com/apache/apisix/pull/10771)
317339

318340
### Core
319341

@@ -404,6 +426,8 @@ title: Changelog
404426

405427
## 3.7.0
406428

429+
**The changes marked with :warning: are not backward compatible.**
430+
407431
### Change
408432

409433
- :warning: Creating core resources does not allow passing in `create_time` and `update_time`: [#10232](https://github.com/apache/apisix/pull/10232)
@@ -442,6 +466,8 @@ title: Changelog
442466

443467
## 3.6.0
444468

469+
**The changes marked with :warning: are not backward compatible.**
470+
445471
### Change
446472

447473
- :warning: Remove gRPC support between APISIX and etcd and remove `etcd.use_grpc` configuration option: [#10015](https://github.com/apache/apisix/pull/10015)
@@ -470,6 +496,8 @@ title: Changelog
470496

471497
## 3.5.0
472498

499+
**The changes marked with :warning: are not backward compatible.**
500+
473501
### Change
474502

475503
- :warning: remove snowflake algorithm in the request-id plugin: [#9715](https://github.com/apache/apisix/pull/9715)

apisix-master-0.rockspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ dependencies = {
4040
"lua-resty-balancer = 0.04",
4141
"lua-resty-ngxvar = 0.5.2",
4242
"lua-resty-jit-uuid = 0.0.7",
43+
"lua-resty-ksuid = 1.0.1",
4344
"lua-resty-worker-events = 1.0.0",
4445
"lua-resty-healthcheck-api7 = 3.2.0",
4546
"api7-lua-resty-jwt = 0.2.5",
@@ -81,8 +82,10 @@ dependencies = {
8182
"lua-resty-t1k = 1.1.5",
8283
"brotli-ffi = 0.3-1",
8384
"lua-ffi-zlib = 0.6-0",
85+
"jsonpath = 1.0-1",
8486
"api7-lua-resty-aws == 2.0.2-1",
8587
"multipart = 0.5.9-1",
88+
"luautf8 = 0.1.6-1",
8689
}
8790

8891
build = {

apisix/admin/consumers.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ local plugins = require("apisix.admin.plugins")
1919
local resource = require("apisix.admin.resource")
2020

2121

22-
local function check_conf(username, conf, need_username, schema)
22+
local function check_conf(username, conf, need_username, schema, opts)
23+
opts = opts or {}
2324
local ok, err = core.schema.check(schema, conf)
2425
if not ok then
2526
return nil, {error_msg = "invalid configuration: " .. err}
@@ -36,7 +37,7 @@ local function check_conf(username, conf, need_username, schema)
3637
end
3738
end
3839

39-
if conf.group_id then
40+
if conf.group_id and not opts.skip_references_check then
4041
local key = "/consumer_groups/" .. conf.group_id
4142
local res, err = core.etcd.get(key)
4243
if not res then

apisix/admin/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ local standalone_uri_route = {
465465
http_head_route,
466466
{
467467
paths = [[/apisix/admin/configs]],
468-
methods = {"GET", "PUT"},
468+
methods = {"GET", "PUT", "HEAD"},
469469
handler = standalone_run,
470470
},
471471
}

0 commit comments

Comments
 (0)