Commit Graph

666 Commits

Author SHA1 Message Date
Mr.Z 47100e64ba Improve async invocation support in sentinel-apache-dubbo-adapter (#1124)
* Improve async support for Dubbo 2.7.2 and above (not compatible with 2.7.0 and 2.7.1 due to the bad compatibility design of Dubbo Filter)
2019-12-23 17:45:48 +08:00
Eric Zhao a5d6773cbc dashboard: Improve error handling in FlowController and update sample WebConfig
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-23 17:34:25 +08:00
fangwentong 0e110c68ea Fix the logic of getting maxSuccessQps in StatisticNode (#1196) 2019-12-20 13:57:53 +08:00
zhenxianyimeng 50f3080add Fix content-type parsing bug in transport module and support UTF-8 encoding in SentinelApiClient (#1207)
* Fix content-type parsing bug in `sentinel-transport-simple-http` module
* Change the charset of UrlEncodedFormEntity to UTF-8 in SentinelApiClient of the dashboard to support non-ASCII characters
2019-12-19 20:50:20 +08:00
Eric Zhao a63c1841ee Support setting config file path via system env and improve error handling in SentinelConfigLoader
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-18 19:00:52 +08:00
Liao, Hong-Jie 00dbb5ca3e doc: Add blog post to awesome-sentinel.md (#1195) 2019-12-11 14:49:16 +08:00
Eric Zhao 9d02e84674 Improve logic for configuring the heartbeat API path in TransportConfig
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-10 10:54:41 +08:00
nick.tan 9beb655b42 Support configuration for the heartbeat API path in transport module (#515) 2019-12-10 10:25:00 +08:00
Eric Zhao 49861f4ad5 dashboard: Improve authentication and authorization filter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-02 17:04:06 +08:00
Roshi e8a01e2e17 dashboard: Improve the ACL checking mechanism (#1042)
* Add `@AuthAction` annotation support
2019-12-02 15:57:07 +08:00
Eric Zhao 20ad3c8f79 Improve code and demo for sentinel-spring-webmvc-adapter module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-27 17:46:59 +08:00
kaizi2009 b14534fb35 Add Sentinel Spring Web MVC adapter module (#1104)
- Add sentinel-spring-webmvc-adapter module and demo
2019-11-27 14:47:04 +08:00
Eric Zhao c70565167f
refactor: Get the max allowed RT directly from SentinelConfig.statisticMaxRt() (#1173)
- to avoid the dependency chain: Constants -> SentinelConfig

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-21 17:03:10 +08:00
于玉桔 24f8d75601 Fix the incorrect logic of handling the end separator of the log directory in LogBase (#1172) 2019-11-21 13:37:50 +08:00
Eric Zhao 72a58f7ea7 Add Consumer functional interface in sentinel-core utils
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-20 13:55:26 +08:00
agensi c03de043af dashboard: fix "notZero" param typo of "clusterNode" command in SentinelApiClient (#1155) 2019-11-13 18:53:07 +08:00
Eric Zhao 9705f54611 Bump version to 1.7.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-12 11:08:14 +08:00
Eric Zhao d45ceb06dc Update README.md
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-12 10:20:46 +08:00
Eric Zhao 8cdf1de854 Bump version to 1.7.0
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-11 21:12:58 +08:00
Eric Zhao 275041403d Update resource classification in SentinelWebFluxFilter and improve reactor EntryConfig
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-11 19:31:48 +08:00
Eric Zhao 9c268bd89a Add Docker/k8s sample for Sentinel RLS token server and update document
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-11 18:37:55 +08:00
tao.zhang 73188b46b7 Fix the bug that the Zuul adapter does not exit the entry with parameters (#1148) 2019-11-08 22:27:59 +08:00
Eric Zhao ff5c010a51 Fix flowId offset bug in EnvoySentinelRuleConverter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-07 12:46:33 +08:00
Eric Zhao b66680be87
Add Sentinel Envoy RLS server implementation (#1139)
* Add the sentinel-cluster-server-envoy-rls module, a Envoy RLS server implementation using Sentinel token server.

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-06 21:48:38 +08:00
Eric Zhao d38d5484ef Remove redundant entry in Web servlet CommonFilter and update entry classification
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-06 21:00:08 +08:00
Eric Zhao 800f6b9d65 Update adapter modules to update corresponding resource classification
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-06 21:00:08 +08:00
Eric Zhao 086a6b0370 Support resource classification in Reactor adapter module and polish SC Gateway adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-06 21:00:08 +08:00
Eric Zhao 6bb2de8750 Support classification for Sentinel resources
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-06 21:00:08 +08:00
Eric Zhao 9d514d5036 Improve CommonFilter and WebServletConfig in Sentinel Web Servlet adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-06 15:28:37 +08:00
于玉桔 b6c2979cee Update doc for the `HTTP_METHOD_SPECIFY` property item (#1091) 2019-11-06 15:20:43 +08:00
李火亮 7c2c137f6f Improve empty parentId handling logic in FetchJsonTreeCommandHandler (#1140)
- Treat as root node when parentId is empty string in FetchJsonTreeCommandHandler
2019-11-06 13:25:24 +08:00
于玉桔 a451d4bbac Support customized block page HTTP status in sentinel-web-servlet-adapter (#1112)
* Return canonical status 429 in the default block handler of sentinel-web-servlet-adapter.
* Add a `csp.sentinel.web.servlet.block.page.http.status` property to support customized block status configuration.
2019-11-06 10:42:50 +08:00
Eric Zhao cf5b955f12 Improve AssertUtil for collection checking
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-05 17:51:56 +08:00
ballenwen f6dff5a859 Fix typo in the README.md of sentinel-annotation-aspectj (#1136) 2019-11-02 01:16:37 +08:00
Eric Zhao fc6ad47438 Update awesome-sentinel.md
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-10-31 10:16:38 +08:00
dependabot[bot] 3b5823987c Bump netty-all version in sentinel-demo-dubbo to fix vulnerability (#1130)
Bumps [netty-all](https://github.com/netty/netty) from 4.1.31.Final to 4.1.42.Final.

Signed-off-by: dependabot[bot] <support@github.com>
2019-10-31 09:48:17 +08:00
format 6cf0945b86 Upgrade nacos-client to 1.1.4 in sentinel-datasource-nacos module (#1129) 2019-10-31 09:31:29 +08:00
Eric Zhao 74a40aa285
Improve Node and Metric interface to support conditional metric retrieval (#1115)
* Add detailsOnCondition method in Metric interface to filter MetricNode within the time condition.
* Add rawMetricsInMin method in Node interface, which will retrieve and generate metric items from the min-level sliding window on condition.
* Add test cases for detailsOnCondition.

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-10-25 16:03:07 +08:00
于玉桔 f0e3348caf Add init parameter to support unifying web context name in Sentinel Web CommonFilter (#1111) 2019-10-24 23:24:00 +08:00
Eric Zhao b05502f8c2
Fix hookOnCancel handing logic in SentinelReactorSubscriber (#1089)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-10-23 19:35:14 +08:00
Eric Zhao b0905547ff Use ServiceLoaderUtil to create SPI ServiceLoader
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-10-23 19:20:53 +08:00
Eric Zhao 8d5654f727 Add ServiceLoaderUtil to improve SPI classloader mechanism and update SpiLoader
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-10-23 19:20:53 +08:00
wangyb dbf1f97dde Fix the cluster rule checking logic in FlowRuleUtil#checkClusterField() (#1105) 2019-10-22 20:28:21 +08:00
Neptune b1c8c43bbe Upgrade Apollo client version to 1.5.0 in sentinel-datasource-apollo module (#1098) 2019-10-21 10:00:06 +08:00
Eric Zhao 826447bc82
Fix the bug that resource name displayed in ClusterNode-related command APIs for SphU.entry(method) is incorrect (#1078)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-10-11 15:15:07 +08:00
Eric Zhao 94026399bf Improve code and document of sentinel-datasource-etcd module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-10-10 11:42:24 +08:00
Lin.Liang aeae6cfe37 Add Etcd data-source extension (#1018) 2019-10-10 11:19:27 +08:00
于玉桔 cdd8d6ff6c Support URL exclusion using UrlCleaner in Spring WebFlux adapter (#1049) 2019-10-08 14:14:35 +08:00
jingnan c505ca8aa5 Support registering writable data-source for GatewayFlowRule and customized ApiDefinition (#1057) 2019-09-23 12:37:58 +08:00
windWheel 4e55a6a749 Optimize the slot order in DefaultSlotChainBuilder (#1056) 2019-09-23 09:45:22 +08:00