Kong 0.10.1 發布
Kong是在客戶端和(微)服務間轉發API通信的API網關,通過插件擴展功能。Kong有兩個主要組件:
- Kong Server :基于nginx的服務器,用來接收API請求。
- Apache Cassandra :用來存儲操作數據。
你可以通過增加更多Kong Server機器對Kong服務進行水平擴展,通過前置的負載均衡器向這些機器分發請求。根據文檔描述,兩個Cassandra節點就足以支撐絕大多數情況,但如果網絡非常擁擠,可以考慮適當增加更多節點。
對于開源社區來說,Kong 中最誘人的一個特性是可以通過插件擴展已有功能,這些插件在 API 請求響應循環的生命周期中被執行。插件使用 Lua 編寫,而且 Kong 還有如下幾個基礎功能:
- HTTP 基本認證
- 密鑰認證
- CORS( Cross-origin Resource Sharing,跨域資源共享)
- TCP/UDP
- 文件日志
- API 請求限流
- 請求轉發
- nginx 監控
更新日志
- Serf has been downgraded to version 0.7 in our distributions,although versions up to 0.8.1 are still supported. This fixes a problem when automatically detecting the first non-loopback private IP address, which was defaulted to
127.0.0.1
in Kong 0.10.0. Greater versions of Serf can still
be used, but the IP address needs to be manually specified in thecluster_advertise
configuration property. - Admin API:
- Disable support for TLS/1.0.
#2212
- Disable support for TLS/1.0.
Added
- Admin API:
- Active targets can be pulled with
GET /upstreams/{name}/targets/active
.
#2230 - Provide a convenience endpoint to disable targets at:
DELETE /upstreams/{name}/targets/{target}
.Under the hood, this creates a new target withweigth = 0
(the correct way of disabling targets, which used to cause confusion).
#2256
- Active targets can be pulled with
- Plugins:
- cors: Support for configuring multiple Origin domains.
#2203
- cors: Support for configuring multiple Origin domains.
Fixed
- Use an LRU cache for Lua-land entities caching to avoid exhausting the Lua VM memory in long-running instances.
#2246 - Avoid potential deadlocks upon callback errors in the caching module for database entities.
#2197 - Relax multipart MIME type parsing. A space is allowed in between values of the Content-Type header.
#2215 - Admin API:
- Better handling of non-supported HTTP methods on endpoints of the Admin API. In some cases this used to throw an internal error. Calling any endpoint with a non-supported HTTP method now always returns
405 Method Not Allowed
as expected.
#2213
- Better handling of non-supported HTTP methods on endpoints of the Admin API. In some cases this used to throw an internal error. Calling any endpoint with a non-supported HTTP method now always returns
- CLI:
- Better error handling when missing Serf executable.
#2218 - Fix a bug in the
kong migrations
command that would prevent it to run correctly.
#2238 - Trim list values specified in the configuration file.
#2206 - Align the default configuration file's values to the actual, hard-coded default values to avoid confusion.
#2254
- Better error handling when missing Serf executable.
- Plugins:
- hmac: Generate an HMAC secret value if none is provided.
#2158 - oauth2: Don't try to remove credential values from request bodies if the MIME type is multipart, since such attemps would result in an error.
#2176 - ldap: This plugin should not be applied to a single Consumer, however, this was not properly enforced. It is now impossible to apply this plugin to a single Consumer (as per all authentication plugin).
#2237 - aws-lambda: Support for
us-west-2
region in schema.
#2257
- hmac: Generate an HMAC secret value if none is provided.
下載
- kong-0.10.1.aws.rpm
- kong-0.10.1.el6.noarch.rpm
- kong-0.10.1.el7.noarch.rpm
- kong-0.10.1.jessie_all.deb
- kong-0.10.1.osx.pkg
- kong-0.10.1.precise_all.deb
- kong-0.10.1.trusty_all.deb
- kong-0.10.1.vivid_all.deb
- kong-0.10.1.wheezy_all.deb
- kong-0.10.1.xenial_all.deb
- Source code (zip)
- Source code (tar.gz)
本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/615bb2ea
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!