Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST #11575

Closed
wants to merge 70 commits into from
Closed

TEST #11575

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
4d36e64
chore(release) bump kong-release-tools version requirement (#9323)
hanshuebner Aug 26, 2022
e0d8635
fix(release): we use aws instance profiles now instead of static AWS …
hutchic Aug 26, 2022
0ad9b8a
optimize unit test for router (#9329)
chronolaw Aug 28, 2022
f79bc63
tests(intergration/admin_api/targets_routes) fix flaky tests (#9333)
ADD-SP Aug 29, 2022
a5cd861
fix(router/atc) detect and return error for concurrent rebuilds durin…
dndx Aug 30, 2022
58adfe8
fix(rate-limiting) use local policy by default
aboudreault Aug 30, 2022
1e85e35
fix(response-rate-limiting) use local policy by default
aboudreault Aug 30, 2022
c99feb4
docs(changelog) add rate-limiting/response-rate-limiting policy change
aboudreault Aug 30, 2022
ad77e93
fix(release): Fixes to release mechanics
hanshuebner Aug 31, 2022
0f7cd89
fix(release): Fixes to release mechanics (#9351)
hanshuebner Aug 31, 2022
5560458
chore(release) update kong-build-tools requirement
Aug 31, 2022
3e58529
perf(clustering) on-demand export of declarative config for Hybrid mo…
dndx Sep 2, 2022
63e01a3
perf(utils) change `YIELD_ITERATIONS` to 1000 to avoid excessive yiel…
chronolaw Aug 31, 2022
7879c9e
fix(router/atc) `old_route` has the wrong assignment order which caus…
chronolaw Aug 31, 2022
1d3bed9
fix(db) blue/green migration for route regex path (#9334)
StarlightIbuki Sep 2, 2022
c4c4b5f
fix(router) prefix match no longer normalize input (#9389)
StarlightIbuki Sep 7, 2022
f4a3072
fix(router) anchor regex paths in traditional_compatible mode
flrgh Sep 7, 2022
6fbdae6
fix(runloop) do not reset `*:version` to `init` when worker respawns,
dndx Sep 7, 2022
413461c
docs(kong.conf) add `router_flavor` documentation
dndx Sep 6, 2022
5531642
fix(conf): typo fix, flavor should be expressions (#9411)
chronolaw Sep 9, 2022
5f7c8fb
chore(release) bump kong-release-tools version requirement (#9323) (#…
kikito Sep 9, 2022
8aefb90
fix(declartive): migration failed on nested route (#9416)
StarlightIbuki Sep 9, 2022
1c4b3cd
docs(changelog) change prometheus changelog and update prometheus das…
oowl Sep 9, 2022
3f7272e
docs(upgrade) instructions for 3.0 (#9417)
tyler-ball Sep 12, 2022
e24e5dc
fix(release) Pinning to KBT branch while troubleshooting RPM build fa…
hanshuebner Sep 12, 2022
4d03f74
docs(changelog) add 3.0.0 changes
Sep 12, 2022
f0c178c
docs(COPYRIGHT) update copyright for 3.0.0
Sep 12, 2022
282149f
docs(kong-admin-api.yml) update Admin API definition for 3.0.0
Sep 12, 2022
5039ca6
release: 3.0.0
Sep 12, 2022
31d3ed9
Release: 3.0.0 (#9421)
hanshuebner Sep 12, 2022
78eeaa7
Merge branch 'release/3.0.0' into release/3.0.x
Sep 12, 2022
8fa4d56
chore(deps): bump `kong-build-tools` to `4.25.4` (#9618)
ADD-SP Oct 26, 2022
9bdf389
chore(deps): bump kong-build-tools for the packaging fix
hutchic Nov 3, 2022
8f00d8b
docs(CHANGELOG) rename unreleased to 3.0.1
kikito Sep 22, 2022
2cdafef
fix(router/atc): properly handle empty fields on the `Route` object (…
chronolaw Sep 26, 2022
f49cb41
fix(instrumentation) plugin_header_filter instrumentation was not in …
chronolaw Sep 29, 2022
e270733
fix(*): do not use stale router data if workers are respawned
bungle Sep 29, 2022
2170d1f
fix(router/atc): properly handle expressions building error
chronolaw Oct 9, 2022
50c999b
fix(cmd): kong prepare to write out .kong_process_secrets (#9478) (#9…
chronolaw Oct 19, 2022
e4004ef
fix(core): ensure absolute path is used for event sock (#9591)
kikito Oct 20, 2022
32542c5
fix(plugins/zipkin): correctly parse `ot` baggage headers
pathak1515 Oct 19, 2022
d7389a2
docs(changelog): remove incorrect entries
flrgh Oct 20, 2022
dd3c2da
refactor(handler): trying to make reconfigure more atomic (#9595)
flrgh Oct 21, 2022
4518e15
docs(kong-admin-api.yml) update Admin API definition for 3.0.1
VicYP Nov 4, 2022
2fdda87
release: 3.0.1
VicYP Nov 4, 2022
c86981e
Release 3.0.1
VicYP Nov 7, 2022
997ef73
Release: 3.0.1 (#9689)
VicYP Nov 8, 2022
5ebaf5a
Merge branch 'release/3.0.1' into release/3.0.x
VicYP Nov 8, 2022
16cca2e
chore(deps): bump the kong-build-tools version (#9816) (#9821)
hutchic Nov 23, 2022
631c3b4
chore(ci): migrate some CI from Jenkins to github actions (#9795) (#9…
hutchic Nov 24, 2022
2eaa470
fix(ci): make sure docker tag is valid (#9829) (#9831)
mashapedeployment Nov 29, 2022
14d1756
fix(ci): auth (#9883) (#9885)
mashapedeployment Dec 5, 2022
266e07d
chore(deps): bump `atc-router` to 1.0.2
dndx Dec 9, 2022
7e65b13
chore(actions): pin `KONG_NGINX_MODULE_BRANCH` to `0.2.1` which was used
dndx Dec 9, 2022
e12a604
fix(router): add better error handling for ATC router when invalid field
dndx Dec 9, 2022
4219c28
chore(*): bump rockspec and `meta.lua` to `3.0.2`
dndx Dec 9, 2022
ca635bc
docs(kong-admin-api.yml) update Admin API definition for 3.0.2
VicYP Dec 9, 2022
f8bf308
release: 3.0.2
VicYP Dec 9, 2022
e96ad04
Merge branch 'release/3.0.2' into release/3.0.x
VicYP Dec 9, 2022
86eeed5
fix(build): bump the KBT version to avoid the alpine arm cache poisoning
hutchic Dec 13, 2022
fd16161
fix(runloop): `set_host_header` pass the wrong upstream_host (#9996)
catbro666 Dec 23, 2022
743fcc1
chore(ci): correctly pinning KONG_NGINX_MODULE (#10017)
mashapedeployment Dec 28, 2022
58294b4
docs(*): document new max_queued_batches parameter (#10072)
hanshuebner Jan 5, 2023
a6ca543
Revert "docs(*): document new max_queued_batches parameter (#10072)"
mayocream Jan 6, 2023
e0999d3
chore(ci): remove `CODEOWNERS` file
hbagdi Nov 8, 2022
c28de22
chore(ci): pin kbt version
mayocream Jan 6, 2023
2934db7
fix(*): prevent queues from growing without bounds (#10046) (#10251)
hanshuebner Feb 8, 2023
a41843f
fix(balancer) use local target cache (#10384) (#10411)
team-gateway-bot Mar 1, 2023
399e85c
fix(runloop): use upstream status code in passive health check (#10325)
oowl Mar 1, 2023
a761ea0
chore: auto-assign PR author as assignee
hbagdi Mar 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .ci/setup_env_github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ PCRE=$(dep_version RESTY_PCRE_VERSION)
RESTY_LMDB=$(dep_version RESTY_LMDB_VERSION)
RESTY_EVENTS=$(dep_version RESTY_EVENTS_VERSION)
ATC_ROUTER_VERSION=$(dep_version ATC_ROUTER_VERSION)
KONG_NGINX_MODULE_BRANCH=$(dep_version KONG_NGINX_MODULE_BRANCH)


#---------
Expand All @@ -21,8 +22,6 @@ ATC_ROUTER_VERSION=$(dep_version ATC_ROUTER_VERSION)
DOWNLOAD_ROOT=${DOWNLOAD_ROOT:=/download-root}
BUILD_TOOLS_DOWNLOAD=$GITHUB_WORKSPACE/kong-build-tools

KONG_NGINX_MODULE_BRANCH=${KONG_NGINX_MODULE_BRANCH:=master}

#--------
# Install
#--------
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/auto-assignee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Add assignee to PRs
on:
pull_request:
types: [ opened, reopened ]
permissions:
pull-requests: write
jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign@2daaeb2988aef24bf37e636fe733f365c046aba0

8 changes: 5 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ jobs:
DOWNLOAD_ROOT: $HOME/download-root

steps:
- name: Checkout Kong source code
uses: actions/checkout@v3

- name: Set environment variables
run: |
grep -v '^#' .requirements >> $GITHUB_ENV
echo "INSTALL_ROOT=$HOME/install-root" >> $GITHUB_ENV
echo "DOWNLOAD_ROOT=$HOME/download-root" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$INSTALL_ROOT/openssl/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
- name: Checkout Kong source code
uses: actions/checkout@v3

- name: Lookup build cache
uses: actions/cache@v3
Expand All @@ -31,7 +33,7 @@ jobs:
with:
repository: Kong/kong-build-tools
path: kong-build-tools
ref: master
ref: ${{ env.KONG_BUILD_TOOLS_VERSION }}

- name: Checkout go-pluginserver
if: steps.cache-deps.outputs.cache-hit != 'true'
Expand Down
128 changes: 128 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
name: Package & Smoke Test

on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- master
- next/*
- release/*

env:
DOCKER_REPOSITORY: kong/kong-build-tools

jobs:
package-and-test:
if: github.event_name == 'pull_request'
name: Build & Smoke Test Packages
runs-on: ubuntu-22.04

steps:
- name: Swap git with https
run: git config --global url."https://github".insteadOf git://github

- name: Setup some environment variables
run: |
echo "KONG_SOURCE_LOCATION=$GITHUB_WORKSPACE/kong-src" >> $GITHUB_ENV
echo "KONG_BUILD_TOOLS_LOCATION=$GITHUB_WORKSPACE/kong-build-tools" >> $GITHUB_ENV

- name: Checkout Kong source code
uses: actions/checkout@v3
with:
path: ${{ env.KONG_SOURCE_LOCATION }}
submodules: recursive
token: ${{ secrets.GHA_KONG_BOT_READ_TOKEN }}

- name: Setup kong-build-tools
run: |
pushd ${{ env.KONG_SOURCE_LOCATION }}
make setup-kong-build-tools

- name: Setup package naming environment variables
run: |
grep -v '^#' ${{ env.KONG_SOURCE_LOCATION}}/.requirements >> $GITHUB_ENV

- name: Package & Test
env:
GITHUB_TOKEN: ${{ secrets.GHA_KONG_BOT_READ_TOKEN }}
run: |
pushd ${{ env.KONG_SOURCE_LOCATION }}
make package/test/deb

package-test-and-unofficial-release:
if: github.event_name == 'push'
name: Build & Smoke & Unofficial Release Packages
runs-on: ubuntu-22.04
strategy:
matrix:
package_type: [deb, rpm, apk]

steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.GHA_DOCKERHUB_PUSH_USER }}
password: ${{ secrets.GHA_KONG_ORG_DOCKERHUB_PUSH_TOKEN }}

- name: Swap git with https
run: git config --global url."https://github".insteadOf git://github

- name: Setup directory environment variables
run: |
echo "KONG_SOURCE_LOCATION=$GITHUB_WORKSPACE/kong-src" >> $GITHUB_ENV
echo "KONG_BUILD_TOOLS_LOCATION=$GITHUB_WORKSPACE/kong-build-tools" >> $GITHUB_ENV

- name: Checkout Kong source code
uses: actions/checkout@v3
with:
path: ${{ env.KONG_SOURCE_LOCATION }}
submodules: recursive
token: ${{ secrets.GHA_KONG_BOT_READ_TOKEN }}

- name: Setup kong-build-tools
run: |
pushd ${{ env.KONG_SOURCE_LOCATION }}
make setup-kong-build-tools

- name: Setup package naming environment variables
run: |
grep -v '^#' ${{ env.KONG_SOURCE_LOCATION}}/.requirements >> $GITHUB_ENV
echo "DOCKER_RELEASE_REPOSITORY=kong/kong" >> $GITHUB_ENV
echo "KONG_TEST_CONTAINER_TAG=${GITHUB_REF_NAME##*/}-${{ matrix.package_type }}" >> $GITHUB_ENV
if [[ ${{matrix.package_type }} == "apk" ]]; then
echo "ADDITIONAL_TAG_LIST=${GITHUB_REF_NAME##*/}-alpine" >> $GITHUB_ENV
fi
if [[ ${{matrix.package_type }} == "deb" ]]; then
echo "ADDITIONAL_TAG_LIST=${GITHUB_REF_NAME##*/}-debian ${GITHUB_REF_NAME##*/} $GITHUB_SHA" >> $GITHUB_ENV
fi

- name: Package & Test
env:
GITHUB_TOKEN: ${{ secrets.GHA_KONG_BOT_READ_TOKEN }}
run: |
pushd ${{ env.KONG_SOURCE_LOCATION }}
make package/test/${{ matrix.package_type }}

- name: Push Docker Image
continue-on-error: true
env:
SKIP_TESTS: true
run: |
pushd ${{ env.KONG_SOURCE_LOCATION }}
make release/docker/${{ matrix.package_type }}

- name: Store the package artifacts
continue-on-error: true
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.package_type }}
path: ${{ env.KONG_BUILD_TOOLS_LOCATION }}/output/*

- name: Comment on commit
continue-on-error: true
uses: peter-evans/commit-comment@v2
with:
token: ${{ secrets.GHA_COMMENT_TOKEN }}
body: |
Docker image avaialble ${{ env.DOCKER_RELEASE_REPOSITORY }}:${{ env.KONG_TEST_CONTAINER_TAG }}
Artifacts availabe https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
4 changes: 2 additions & 2 deletions .requirements
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RESTY_OPENSSL_VERSION=1.1.1q
RESTY_PCRE_VERSION=8.45
RESTY_LMDB_VERSION=1.0.0
RESTY_EVENTS_VERSION=0.1.3
ATC_ROUTER_VERSION=1.0.0
ATC_ROUTER_VERSION=1.0.2
LIBYAML_VERSION=0.2.5
KONG_BUILD_TOOLS_VERSION=4.33.9
KONG_BUILD_TOOLS_VERSION=4.40.1
KONG_NGINX_MODULE_BRANCH=0.2.1
59 changes: 53 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Table of Contents

- [3.0.0-alpha.1](#300-alpha1)
- [3.0.1](#301)
- [3.0.0](#300)
- [2.8.1](#281)
- [2.8.0](#280)
- [2.7.1](#271)
Expand Down Expand Up @@ -67,12 +68,53 @@

## Unreleased

## [3.0.0-alpha.1]
### Fixes

> Released 2022/08/23
#### Core

### Breaking Changes
- Update the batch queues module so that queues no longer grow without bounds if
their consumers fail to process the entries. Instead, old batches are now dropped
and an error is logged.
[#10247](https://github.com/Kong/kong/pull/10247)
- Fix an issue where balancer passive healthcheck would use wrong status code when kong changes status code
from upstream in `header_filter` phase.
[#10325](https://github.com/Kong/kong/pull/10325)

## [3.0.1]

### Fixes

#### Core

- Fix issue where Zipkin plugin cannot parse OT baggage headers
due to invalid OT baggage pattern. [#9280](https://github.com/Kong/kong/pull/9280)
- Fix issue in `header_filter` instrumentation where the span was not
correctly created.
[#9434](https://github.com/Kong/kong/pull/9434)
- Fix issue in router building where when field contains an empty table,
the generated expression is invalid.
[#9451](https://github.com/Kong/kong/pull/9451)
- Fix issue in router rebuilding where when paths field is invalid,
the router's mutex is not released properly.
[#9480](https://github.com/Kong/kong/pull/9480)
- Fixed an issue where `kong docker-start` would fail if `KONG_PREFIX` was set to
a relative path.
[#9337](https://github.com/Kong/kong/pull/9337)
- Fixed an issue with error-handling and process cleanup in `kong start`.
[#9337](https://github.com/Kong/kong/pull/9337)

## [3.0.0]

> Released 2022/09/12

This major release adds a new router written in Rust and a tracing API
that is compatible with the OpenTelemetry API spec. Furthermore,
various internal changes have been made to improve Kong's performance
and memory consumption. As it is a major release, users are advised
to review the list of braking changes to determine whether
configuration changes are needed when upgrading.

### Breaking Changes

#### Deployment

Expand Down Expand Up @@ -221,7 +263,7 @@
[#8712](https://github.com/Kong/kong/pull/8712)
- **Prometheus**: The plugin doesn't export status codes, latencies, bandwidth and upstream
healthcheck metrics by default. They can still be turned on manually by setting `status_code_metrics`,
`lantency_metrics`, `bandwidth_metrics` and `upstream_health_metrics` respectively.
`lantency_metrics`, `bandwidth_metrics` and `upstream_health_metrics` respectively. Enabling those metrics will impact the performance if you have a large volume of Kong entities, we recommend using the [statsd](https://github.com/Kong/kong/tree/master/kong/plugins/statsd) plugin with the push model if that is the case. And now `prometheus` plugin new grafana [dashboard](https://grafana.com/grafana/dashboards/7424-kong-official/) updated
[#9028](https://github.com/Kong/kong/pull/9028)
- **ACME**: `allow_any_domain` field added. It is default to false and if set to true, the gateway will
ignore the `domains` field.
Expand All @@ -234,6 +276,10 @@
`ngx.ctx.proxy_cache_hit` anymore. Logging plugins that need the response data
must read it from `kong.ctx.shared.proxy_cache_hit` from Kong 3.0 on.
[#8607](https://github.com/Kong/kong/pull/8607)
- **Rate-limiting**: The default policy is now `local` for all deployment modes.
[#9344](https://github.com/Kong/kong/pull/9344)
- **Response-rate-limiting**: The default policy is now `local` for all deployment modes.
[#9344](https://github.com/Kong/kong/pull/9344)

### Deprecations

Expand Down Expand Up @@ -7408,7 +7454,8 @@ First version running with Cassandra.

[Back to TOC](#table-of-contents)

[3.0.0-alpha.1]: https://github.com/Kong/kong/compare/2.8.1...3.0.0-alpha.1
[3.0.1]: https://github.com/Kong/kong/compare/3.0.0...3.0.1
[3.0.0]: https://github.com/Kong/kong/compare/2.8.1...3.0.0
[2.8.1]: https://github.com/Kong/kong/compare/2.8.0...2.8.1
[2.8.0]: https://github.com/Kong/kong/compare/2.7.0...2.8.0
[2.7.1]: https://github.com/Kong/kong/compare/2.7.0...2.7.1
Expand Down
1 change: 0 additions & 1 deletion CODEOWNERS

This file was deleted.

5 changes: 3 additions & 2 deletions COPYRIGHT
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,7 @@ lualogging
https://github.com/lunarmodules/lualogging
https://github.com/lunarmodules/lualogging/blob/master/COPYRIGHT

Copyright (c) 2004-2021 Kepler Project.
Copyright (c) 2004-2022 Kepler Project.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -1812,7 +1812,8 @@ LuaRocks
https://luarocks.org
https://github.com/luarocks/luarocks/blob/master/COPYING

Copyright 2007-2018 Kepler Project.
Copyright 2007-2011, Kepler Project.
Copyright 2011-2022, the LuaRocks project authors.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading