Eric Zhao
fb31bb8d4d
Fix the empty value matching bug in GatewayParamParser of API gateway adapter common module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
e50be35a9d
dashboard: code and frontend style refinement for #927 and #869
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
田阳
5e85965754
dashboard: fix the problem that dashboard could not correctly display the SystemRule in CPU usage strategy ( #927 )
5 years ago
Eric Zhao
d19df2aadc
Polish awesome-sentinel.md and add slides of Dubbo Tech Day ( #936 )
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
lym-ifae
7dd20dd202
Add support for excluding some URLs in Web Servlet CommonFilter ( #914 )
5 years ago
Lin.Liang
61c8397e48
Fix temp file problem in log test cases ( #908 )
5 years ago
Lin.Liang
326dd4434d
Fix the compatibility problem of ConfigUtil for Windows environment ( #903 )
5 years ago
Eric Zhao
4a9543fd1f
dashboard: improvements for gateway flow control pages
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
cdfive
856ff312e9
dashboard: add support for managing gateway flow rules ( #699 )
5 years ago
cdfive
eda7fdc5c8
Add parse method for parse ApiPredicateItem from json string in UpdateGatewayApiDefinitionGroupCommandHandler
5 years ago
cdfive
817a41d996
doc: add a blog link about building front-end development environment of dashboard in awesome-sentinel.md
5 years ago
Eric Zhao
90662a423b
Code refinement for Sentinel config classes
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Lin.Liang
ff33de199a
Support arbitrary configuration properties file path for Sentinel ( #804 )
- Support customized log and configuration properties directory
5 years ago
yidadi
c14e3296cb
Refine the methods and variable name in SlotChainProvider ( #871 )
5 years ago
Lin.Liang
ba146765e3
Reuse connections of the same address in ZooKeeper data-source ( #788 )
* Fix the problem that too many connections (zkClient) are established
5 years ago
Braavos
dca4440d40
Add unit tests for com.alibaba.csp.sentinel.eagleeye.EagleEyeCoreUtils ( #854 )
5 years ago
Eric Zhao
66b9198fc3
dashboard: update dependencies in package.json to fix vulnerabilities
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
58a83b42aa
Update ZooKeeper client in data-source module to 3.4.14 to fix vulnerability
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
cdfive
8661d9abc1
Add support for logging into console for common logs ( #836 )
* Add a ConsoleHandler to support logging into stdout and stderr.
* Add a `csp.sentinel.log.output.type` property to configure for output type of record logs (only a temporary design)
* Add millisecond to the format of CspFormatter
5 years ago
Eric Zhao
7997cf65fc
Fix the numeric overflow bug of ping response data in the cluster module ( #844 )
- Change type of cluster ping data response from byte to int. This change is compatible with old versions
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
56e463e1fe
Add support for request item pattern matching in API gateway flow control ( #842 )
- Update the `GatewayParamParser` to support matching the request item.
- Update the internal logic of converting gateway rules to parameter flow rules. The unified mismatched parameters (`SentinelGatewayConstants.GATEWAY_NOT_MATCH_PARAM`) will be configured as an exception item with a large threshold (indicating always pass).
- Add a `GatewayRegexCache` to cache the compiled regex for performance.
- Constant rename: separate URL matching strategy from parameter matching strategy
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
d59beaec66
Fix the bug that numeric overflow might occur when refilling tokens in ParamFlowChecker ( #838 )
- use AtomicLong to replace AtomicInteger
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
eb7508ca80
Improve the edit dialog for FlowRule and ParamFlowRule in Sentinel dashboard ( #845 )
* dashboard: update edit dialog for FlowRule and ParamFlowRule
- Add duration configuration support for ParamFlowRule
- Some other enhancements
* Code polish: move implementation of toRule() to AbstractRuleEntity
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
00f116e344
Refine the DegradeRule and add validating logic for the two new attributes
- improvement of #789
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Jason Joo
254ccbbdc5
doc: Update README.md with the new metric log writing format ( #840 )
5 years ago
Eric Zhao
08676c4f6e
Support parsing cookie as request items in gateway flow control ( #814 )
- Add `getCookieValue` method in RequestItemParser interface and update GatewayParamParser
- Add cookie parsing logic for Spring Cloud Gateway and Zuul
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Lin.Liang
2eecd3ac6a
Make the value of RT_MAX_EXCEED_N in DegradeRule configurable ( #789 )
- Add two attributes in DegradeRule: rtSlowRequestAmount and minRequestAmount
5 years ago
Lin.Liang
e6e27c6faa
Make maxParamByteSize configurable in ParamFlowRequestDataWriter of cluster client module and fix bugs ( #823 )
5 years ago
Eric Zhao
0f6cadbc93
doc: remove vivo logo in README.md
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Luan Louis
f762ba2042
doc: add the blog link to awesome-sentinel.md about handling RESTful API resources ( #825 )
blog by @LuanLouis
5 years ago
cdfive
e810ab849e
Fix multiple slash command name issue in sentinel-transport-netty-http module ( #817 )
5 years ago
Jobs Wang
e3b9f99f9d
doc: add the link of sentinel-pigeon-adapter repo to awesome-sentinel.md ( #781 )
5 years ago
Eric Zhao
281d3420ca
dashboard: code refinement for version and auth API
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
HiSEN
72276a3951
dashboard: Add HTTP API to get the version the of the dashboard ( #800 )
5 years ago
liming
062385f306
doc: update awesome-sentinel.md ( #815 )
5 years ago
kexianjun
0176f0ead3
Use calculateTimeIdx to calculate array idx in LeapArray#getPreviousWindow ( #723 )
* also some code cleanup
5 years ago
Lin.Liang
ee38587a6e
Remove redundant operation when adding child node in NodeSelectorSlot ( #794 )
5 years ago
Lin.Liang
3a9e2629b7
Replace AtomicInteger with LongAdder for curThreadNum of StatisticNode ( #747 )
5 years ago
TomlongTK
9583e18706
doc: add a dashboard multiple data-source adapter demo to Awesome Sentinel ( #806 )
by @finefuture
5 years ago
Eric Zhao
4182c013c8
dashboard: Filter internal virtual resources in MetricFetcher
- also fix pom.xml to suppress warnings
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
f8ebbbccf4
Bump version to 1.7.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
3d2c33ef1d
Bump version to 1.6.1 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Carpenter Lee
f3e705c5f3
Add exceptionsToTrace and exceptionsToIgnore support in Tracer ( #766 )
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
5 years ago
Eric Zhao
8d0bb691b3
Fix the bug for parsing with only non-param gateway rules
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
ae0b8a5c74
Refactor API gateway common module to separate converted rules from other rule managers
- Separate converted parameter rules from ParamFlowManager. Now the converted rules will be kept in GatewayRuleManager directly.
- Add a GatewayFlowSlot to do separate flow checking for generated rules.
- Refactor rule converting mechanism: now gateway rules in normal mode (without parameter) will also be converted to a parameter flow rule. The index will be the last (the last position). In GatewayParamParser we put a constant value to the last position.
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
77dec5f845
Separate parameter metric storage from ParamFlowSlot and improve ParamFlowRuleUtil
- Add a ParameterMetricStorage specific for caching ParameterMetric (moved from ParamSlot)
- Add rule map building helper method in ParamFlowRuleUtil so that we can reuse it in other rule managers
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
54da16d304
Refactor FlowRuleChecker to improve code reuse
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
yikangfeng
4ec0462e31
Add getCpuUsageThreshold() method in SystemRuleManager ( #770 )
5 years ago
threedr3am
83ab401ab4
dashboard: fix wrong bean name of FlowRuleZookeeperProvider sample ( #765 )
5 years ago
Eric Zhao
0508c92665
Fix the bug that parameters are not carried when exiting entries in SentinelReactorSubscriber
5 years ago