Skip to content

Commit

Permalink
Merge branch 'next' into release/2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gszr committed Jun 17, 2020
2 parents a84c83e + 1d1274b commit 38abc3c
Show file tree
Hide file tree
Showing 138 changed files with 6,005 additions and 2,776 deletions.
2 changes: 1 addition & 1 deletion .ci/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if [ "$TEST_SUITE" == "dbless" ]; then
spec/02-integration/04-admin_api/15-off_spec.lua
fi
if [ "$TEST_SUITE" == "plugins" ]; then
set +e
set +ex
rm -f .failed

for p in spec/03-plugins/*; do
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
name: Build & Test

on:
pull_request:
branches:
- '*'
push:
branches:
- master
- next
- 'releases/*'
tags:
- '*'
on: [push, pull_request]

jobs:
build:
Expand Down
8 changes: 3 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3167,8 +3167,7 @@ but will be dropped in subsequent ones.
result in an HTTP `500` error if configured globally.
[#2906](https://github.com/Kong/kong/pull/2906)
- ip-restriction: Fixed support for the `0.0.0.0/0` CIDR block. This block is
now supported and won't trigger an error when used in the `whitelist` or
`blacklist` properties.
now supported and won't trigger an error when used in this plugin's properties.
[#2918](https://github.com/Kong/kong/pull/2918)

### Added
Expand Down Expand Up @@ -3251,8 +3250,7 @@ but will be dropped in subsequent ones.
Thanks [@kjsteuer](https://github.com/kjsteuer) for the fix!
[#2702](https://github.com/Mashape/kong/pull/2702)
- ip-restriction: Fixed support for the `0.0.0.0/0` CIDR block. This block is
now supported and won't trigger an error when used in the `whitelist` or
`blacklist` properties.
now supported and won't trigger an error when used in this plugin's properties.
[#2918](https://github.com/Mashape/kong/pull/2918)

[Back to TOC](#table-of-contents)
Expand Down Expand Up @@ -4750,7 +4748,7 @@ The old routes are still maintained but will be removed in upcoming versions. Co
- Plugins
- **New OAuth 2.0 plugin.** [#341](https://github.com/Kong/kong/pull/341) [#169](https://github.com/Kong/kong/pull/169)
- **New Mashape Analytics plugin.** [#360](https://github.com/Kong/kong/pull/360) [#272](https://github.com/Kong/kong/pull/272)
- **New IP whitelisting/blacklisting plugin.** [#379](https://github.com/Kong/kong/pull/379)
- **New IP restriction plugin.** [#379](https://github.com/Kong/kong/pull/379)
- Ratelimiting: support for multiple limits. [#382](https://github.com/Kong/kong/pull/382) [#205](https://github.com/Kong/kong/pull/205)
- HTTP logging: support for HTTPS endpoint. [#342](https://github.com/Kong/kong/issues/342)
- Logging plugins: new properties for logs timing. [#351](https://github.com/Kong/kong/issues/351)
Expand Down
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ pipeline {
sh 'echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin || true'
sh 'make setup-kong-build-tools'
sh 'RESTY_IMAGE_TAG=bionic make release'
sh 'RESTY_IMAGE_TAG=focal make release'
}
}
stage('Centos Releases') {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ transformations, and more through plugins.
- **OAuth2.0**: Easily add OAuth2.0 authentication to your APIs.
- **Logging**: Log requests and responses to your system over HTTP, TCP, UDP,
or to disk.
- **Security**: ACL, Bot detection, whitelist/blacklist IPs, etc...
- **Security**: ACL, Bot detection, allow/deny IPs, etc...
- **Syslog**: Logging to System log.
- **SSL**: Setup a Specific SSL Certificate for an underlying service or API.
- **Monitoring**: Live monitoring provides key load and performance server
Expand Down
56 changes: 56 additions & 0 deletions autodoc/data/admin-api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,32 @@ return {
to the upstream server.
]],
},
tls_verify = {
description = [[
Whether to enable verification of upstream server TLS certificate.
If set to `null` then Nginx default is respected.
]],
example = true,
},
tls_verify_depth = {
description = [[
Maximum depth of chain while verifying upstream server's TLS certificate.
If set to `null` when Nginx default is respected.
]],
},
ca_certificates = {
description = [[
Array of `CA Certificate` object UUIDs that are used to build the trust store
while verifying upstream server's TLS certificate.
If set to `null` when Nginx default is respected. If default CA list in Nginx
are not specified and TLS verification is enabled, then handshake with upstream
server will always fail (because no CA are trusted).
]],
example = {
"4e3ad2e4-0bc4-4638-8e34-c84a417ba39b",
"51e77dc2-8f3e-4afa-9d0e-0e3bbbcfd515",
}
},
tags = {
description = [[
An optional set of strings associated with the Service, for grouping and filtering.
Expand Down Expand Up @@ -1681,6 +1707,16 @@ return {
---:| ---
`${foreign_entity} ${endpoint_key} or id`<br>**required** | The unique identifier or the `${endpoint_key}` attribute of the ${ForeignEntity} whose ${Entities} are to be retrieved. When using this endpoint, only ${Entities} associated to the specified ${ForeignEntity} will be listed.
]],
fk_endpoint_w_fek = [[
##### List ${Entities} Associated to a Specific ${ForeignEntity}
<div class="endpoint ${method} indent">/${foreign_entities_url}/{${foreign_entity} ${endpoint_key} or id}/${entities_url}</div>
{:.indent}
Attributes | Description
---:| ---
`${foreign_entity} ${endpoint_key} or id`<br>**required** | The unique identifier or the `${endpoint_key}` attribute of the ${ForeignEntity} whose ${Entities} are to be retrieved. When using this endpoint, only ${Entities} associated to the specified ${ForeignEntity} will be listed.
]],
request_query = [[
Attributes | Description
---:| ---
Expand Down Expand Up @@ -1732,6 +1768,16 @@ return {
---:| ---
`${foreign_entity} ${endpoint_key} or id`<br>**required** | The unique identifier or the `${endpoint_key}` attribute of the ${ForeignEntity} that should be associated to the newly-created ${Entity}.
]],
fk_endpoint_w_fek = [[
##### Create ${Entity} Associated to a Specific ${ForeignEntity}
<div class="endpoint ${method} indent">/${foreign_entities_url}/{${foreign_entity} ${endpoint_key} or id}/${entities_url}</div>
{:.indent}
Attributes | Description
---:| ---
`${foreign_entity} ${endpoint_key} or id`<br>**required** | The unique identifier or the `${endpoint_key}` attribute of the ${ForeignEntity} that should be associated to the newly-created ${Entity}.
]],
request_body = [[
{{ page.${entity}_body }}
]],
Expand Down Expand Up @@ -1770,6 +1816,16 @@ return {
---:| ---
`${entity} ${endpoint_key} or id`<br>**required** | The unique identifier **or** the ${endpoint_key} of the ${Entity} associated to the ${ForeignEntity} to be ${passive_verb}.
]],
fk_endpoint_w_fek = [[
##### ${Active_verb} ${ForeignEntity} Associated to a Specific ${Entity}
<div class="endpoint ${method} indent">/${entities_url}/{${entity} id}/${foreign_entity_url}</div>
{:.indent}
Attributes | Description
---:| ---
`${entity} id`<br>**required** | The unique identifier of the ${Entity} associated to the ${ForeignEntity} to be ${passive_verb}.
]],
endpoint = [[
##### ${Active_verb} ${Entity}
Expand Down
17 changes: 16 additions & 1 deletion kong-2.1.0alpha.1-0.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dependencies = {
"kong-plugin-azure-functions ~> 0.4",
"kong-plugin-zipkin ~> 1.1",
"kong-plugin-serverless-functions ~> 1.0",
"kong-prometheus-plugin ~> 0.8",
"kong-prometheus-plugin ~> 0.9",
"kong-proxy-cache-plugin ~> 1.3",
"kong-plugin-request-transformer ~> 1.2",
"kong-plugin-session ~> 2.4",
Expand Down Expand Up @@ -139,6 +139,8 @@ build = {
["kong.runloop.plugins_iterator"] = "kong/runloop/plugins_iterator.lua",
["kong.runloop.balancer"] = "kong/runloop/balancer.lua",

["kong.workspaces"] = "kong/workspaces/init.lua",

["kong.db"] = "kong/db/init.lua",
["kong.db.errors"] = "kong/db/errors.lua",
["kong.db.iteration"] = "kong/db/iteration.lua",
Expand All @@ -149,6 +151,7 @@ build = {
["kong.db.dao.plugins"] = "kong/db/dao/plugins.lua",
["kong.db.dao.plugins.go"] = "kong/db/dao/plugins/go.lua",
["kong.db.dao.tags"] = "kong/db/dao/tags.lua",
["kong.db.dao.workspaces"] = "kong/db/dao/workspaces.lua",
["kong.db.declarative"] = "kong/db/declarative/init.lua",
["kong.db.schema"] = "kong/db/schema/init.lua",
["kong.db.schema.entities.consumers"] = "kong/db/schema/entities/consumers.lua",
Expand All @@ -162,6 +165,7 @@ build = {
["kong.db.schema.entities.plugins"] = "kong/db/schema/entities/plugins.lua",
["kong.db.schema.entities.tags"] = "kong/db/schema/entities/tags.lua",
["kong.db.schema.entities.ca_certificates"] = "kong/db/schema/entities/ca_certificates.lua",
["kong.db.schema.entities.workspaces"] = "kong/db/schema/entities/workspaces.lua",
["kong.db.schema.others.migrations"] = "kong/db/schema/others/migrations.lua",
["kong.db.schema.others.declarative_config"] = "kong/db/schema/others/declarative_config.lua",
["kong.db.schema.entity"] = "kong/db/schema/entity.lua",
Expand All @@ -183,6 +187,7 @@ build = {

["kong.db.migrations.state"] = "kong/db/migrations/state.lua",
["kong.db.migrations.helpers"] = "kong/db/migrations/helpers.lua",
["kong.db.migrations.subsystems"] = "kong/db/migrations/subsystems.lua",
["kong.db.migrations.core"] = "kong/db/migrations/core/init.lua",
["kong.db.migrations.core.000_base"] = "kong/db/migrations/core/000_base.lua",
["kong.db.migrations.core.003_100_to_110"] = "kong/db/migrations/core/003_100_to_110.lua",
Expand All @@ -192,6 +197,7 @@ build = {
["kong.db.migrations.core.007_140_to_150"] = "kong/db/migrations/core/007_140_to_150.lua",
["kong.db.migrations.core.008_150_to_200"] = "kong/db/migrations/core/008_150_to_200.lua",
["kong.db.migrations.core.009_200_to_210"] = "kong/db/migrations/core/009_200_to_210.lua",
["kong.db.migrations.operations.200_to_210"] = "kong/db/migrations/operations/200_to_210.lua",

["kong.pdk"] = "kong/pdk/init.lua",
["kong.pdk.private.checks"] = "kong/pdk/private/checks.lua",
Expand All @@ -216,6 +222,7 @@ build = {
["kong.plugins.basic-auth.migrations"] = "kong/plugins/basic-auth/migrations/init.lua",
["kong.plugins.basic-auth.migrations.000_base_basic_auth"] = "kong/plugins/basic-auth/migrations/000_base_basic_auth.lua",
["kong.plugins.basic-auth.migrations.002_130_to_140"] = "kong/plugins/basic-auth/migrations/002_130_to_140.lua",
["kong.plugins.basic-auth.migrations.003_200_to_210"] = "kong/plugins/basic-auth/migrations/003_200_to_210.lua",
["kong.plugins.basic-auth.crypto"] = "kong/plugins/basic-auth/crypto.lua",
["kong.plugins.basic-auth.handler"] = "kong/plugins/basic-auth/handler.lua",
["kong.plugins.basic-auth.access"] = "kong/plugins/basic-auth/access.lua",
Expand All @@ -225,6 +232,7 @@ build = {
["kong.plugins.key-auth.migrations"] = "kong/plugins/key-auth/migrations/init.lua",
["kong.plugins.key-auth.migrations.000_base_key_auth"] = "kong/plugins/key-auth/migrations/000_base_key_auth.lua",
["kong.plugins.key-auth.migrations.002_130_to_140"] = "kong/plugins/key-auth/migrations/002_130_to_140.lua",
["kong.plugins.key-auth.migrations.003_200_to_210"] = "kong/plugins/key-auth/migrations/003_200_to_210.lua",
["kong.plugins.key-auth.handler"] = "kong/plugins/key-auth/handler.lua",
["kong.plugins.key-auth.schema"] = "kong/plugins/key-auth/schema.lua",
["kong.plugins.key-auth.daos"] = "kong/plugins/key-auth/daos.lua",
Expand Down Expand Up @@ -290,10 +298,13 @@ build = {

["kong.plugins.ip-restriction.handler"] = "kong/plugins/ip-restriction/handler.lua",
["kong.plugins.ip-restriction.schema"] = "kong/plugins/ip-restriction/schema.lua",
["kong.plugins.ip-restriction.migrations"] = "kong/plugins/ip-restriction/migrations/init.lua",
["kong.plugins.ip-restriction.migrations.001_200_to_210"] = "kong/plugins/ip-restriction/migrations/001_200_to_210.lua",

["kong.plugins.acl.migrations"] = "kong/plugins/acl/migrations/init.lua",
["kong.plugins.acl.migrations.000_base_acl"] = "kong/plugins/acl/migrations/000_base_acl.lua",
["kong.plugins.acl.migrations.002_130_to_140"] = "kong/plugins/acl/migrations/002_130_to_140.lua",
["kong.plugins.acl.migrations.003_200_to_210"] = "kong/plugins/acl/migrations/003_200_to_210.lua",
["kong.plugins.acl.handler"] = "kong/plugins/acl/handler.lua",
["kong.plugins.acl.schema"] = "kong/plugins/acl/schema.lua",
["kong.plugins.acl.daos"] = "kong/plugins/acl/daos.lua",
Expand All @@ -307,6 +318,7 @@ build = {
["kong.plugins.jwt.migrations"] = "kong/plugins/jwt/migrations/init.lua",
["kong.plugins.jwt.migrations.000_base_jwt"] = "kong/plugins/jwt/migrations/000_base_jwt.lua",
["kong.plugins.jwt.migrations.002_130_to_140"] = "kong/plugins/jwt/migrations/002_130_to_140.lua",
["kong.plugins.jwt.migrations.003_200_to_210"] = "kong/plugins/jwt/migrations/003_200_to_210.lua",
["kong.plugins.jwt.handler"] = "kong/plugins/jwt/handler.lua",
["kong.plugins.jwt.schema"] = "kong/plugins/jwt/schema.lua",
["kong.plugins.jwt.daos"] = "kong/plugins/jwt/daos.lua",
Expand All @@ -316,6 +328,7 @@ build = {
["kong.plugins.hmac-auth.migrations"] = "kong/plugins/hmac-auth/migrations/init.lua",
["kong.plugins.hmac-auth.migrations.000_base_hmac_auth"] = "kong/plugins/hmac-auth/migrations/000_base_hmac_auth.lua",
["kong.plugins.hmac-auth.migrations.002_130_to_140"] = "kong/plugins/hmac-auth/migrations/002_130_to_140.lua",
["kong.plugins.hmac-auth.migrations.003_200_to_210"] = "kong/plugins/hmac-auth/migrations/003_200_to_210.lua",
["kong.plugins.hmac-auth.handler"] = "kong/plugins/hmac-auth/handler.lua",
["kong.plugins.hmac-auth.access"] = "kong/plugins/hmac-auth/access.lua",
["kong.plugins.hmac-auth.schema"] = "kong/plugins/hmac-auth/schema.lua",
Expand Down Expand Up @@ -344,6 +357,8 @@ build = {
["kong.plugins.bot-detection.handler"] = "kong/plugins/bot-detection/handler.lua",
["kong.plugins.bot-detection.schema"] = "kong/plugins/bot-detection/schema.lua",
["kong.plugins.bot-detection.rules"] = "kong/plugins/bot-detection/rules.lua",
["kong.plugins.bot-detection.migrations"] = "kong/plugins/bot-detection/migrations/init.lua",
["kong.plugins.bot-detection.migrations.001_200_to_210"] = "kong/plugins/bot-detection/migrations/001_200_to_210.lua",

["kong.plugins.request-termination.handler"] = "kong/plugins/request-termination/handler.lua",
["kong.plugins.request-termination.schema"] = "kong/plugins/request-termination/schema.lua",
Expand Down
Loading

0 comments on commit 38abc3c

Please sign in to comment.