Commit Graph

762 Commits

Author SHA1 Message Date
Oliver
8838ae1417
Override hashCode and equals to avoid repeated item (#8207) 2022-04-20 10:00:39 +08:00
shalk(xiao kun)
69bad6f447
add rollover with date for log4j2 with JM.LOG.RETAIN.DURATION.OFF and JM.LOG.RETAIN.DURATION (#8134) 2022-04-18 11:34:24 +08:00
liqipeng
f0104c0ea0
[ISSUE #8144] add volatile modifier to ServerListManager.serversFromEndpoint(2.x) (#8146)
* add volatile modifier to `ServerListManager.serversFromEndpoint`

* optimize `onReceiveChecksums` in race condition

* judge responsible server in same localAddress; add `volatile` modifier for `EnvUtil.localAddress`
2022-04-18 11:33:08 +08:00
胡俊
da563d7734
Revert "[ISSUE#6999]Logback overrides the automatic refresh of application logback . issu… (#7596)" (#8173)
This reverts commit 7bb6cf2d13.
2022-04-18 11:25:49 +08:00
lmw0509
d3264546ad
Replace redundant code with lambda expression (#8074) 2022-04-06 10:47:28 +08:00
chenhao26
b4cc3fcddb
Optimize HTTP constants (#7998)
* Optimize HTTP constants

* check nacos style

* check nacos style2

* check nacos style3

* deleet Unused constants in UtilAndComs
2022-03-25 16:05:42 +08:00
李晓双 Li Xiao Shuang
88fb26cfc6
[ISSUE #5695] Add config encrypt spi for nacos server. (#7934)
* [ISSUE#5695] Add a plugin SPI for configuration encryption and decryption for Nacos 2.0 (#6655)

* Defines the interface

* 增加aes实现

* 客户端、服务端加解密实现

* 客户端、服务端加解密实现

* fix code quality (#6727)

* [ISSUE#5695] Add a plugin SPI for configuration encryption and decryption for Nacos 2.0, EncryptedDataKey is persisted (#6740)

* Defines the interface

* 增加aes实现

* 客户端、服务端加解密实现

* 客户端、服务端加解密实现

* 秘钥持久化

* 秘钥持久化

* [ISSUE#5695] Summer2021 Cache encryptedDataKey  (#6878)

* Defines the interface

* 增加aes实现

* 客户端、服务端加解密实现

* 客户端、服务端加解密实现

* 秘钥持久化

* 秘钥持久化

* 秘钥缓存到内存中

* 解决冲突

* 修改filter继承AbstractConfigFilter (#6879)

* [ISSUE#5695] Summer2021   EncryptedDataKey is persisted to Derby (#6882)

* [ISSUE#5695] Add a plugin SPI for configuration encryption and decryption for Nacos 2.0 (#6655)

* Defines the interface

* 增加aes实现

* 客户端、服务端加解密实现

* 客户端、服务端加解密实现

* fix code quality (#6727)

* # This is a combination of 6 commits.tree cf7a399f99c4d81b8667c8de06f5ceb8c79fb6f0
parent 8024ecf31bf23a9edab416be8a3bfd1c0e48ce5e
author 李晓双 Li Xiao Shuang <644968328@qq.com> 1630028256 +0800
committer lixiaoshuang <644968328@qq.com> 1631804378 +0800

# This is a combination of 3 commits.
# This is the 1st commit message:

[ISSUE#5695] Add a plugin SPI for configuration encryption and decryption for Nacos 2.0, EncryptedDataKey is persisted (#6740)

* Defines the interface

* 增加aes实现

* 客户端、服务端加解密实现

* 客户端、服务端加解密实现

* 秘钥持久化

* 秘钥持久化
# This is the commit message #2:

[ISSUE#5695] Summer2021 Cache encryptedDataKey  (#6878)

* Defines the interface

* 增加aes实现

* 客户端、服务端加解密实现

* 客户端、服务端加解密实现

* 秘钥持久化

* 秘钥持久化

* 秘钥缓存到内存中

* 解决冲突
# This is the commit message #3:

修改filter继承AbstractConfigFilter (#6879)


# This is the commit message #6:

客户端、服务端加解密实现

* parent 8024ecf31bf23a9edab416be8a3bfd1c0e48ce5e
author 李晓双 Li Xiao Shuang <644968328@qq.com> 1630028256 +0800
committer lixiaoshuang <644968328@qq.com> 1631805204 +0800

parent 8024ecf31bf23a9edab416be8a3bfd1c0e48ce5e
author 李晓双 Li Xiao Shuang <644968328@qq.com> 1630028256 +0800
committer lixiaoshuang <644968328@qq.com> 1631804378 +0800

[ISSUE#5695] Add a plugin SPI for configuration encryption and decryption for Nacos 2.0, EncryptedDataKey is persisted (#6740)

* 配置加解密插件

* derby支持秘钥存储

* 克隆功能兼容配置加解密 (#6913)

* [ISSUE#5695] Summer2021 Import/export compatible with configuration encryption and decryption (#6956)

* 克隆功能兼容配置加解密

* 导入导出兼容配置加解密

* 秘钥base64编码、更换AES加密模式 (#6974)

* [ISSUE#5695] Summer2021 add unit test for ConfigCryptoFilter (#6991)

* add unit test for ConfigCryptoFilter

* add unit test for ConfigCryptoFilter

* [ISSUE#5695] Summer2021 add unit test for CryptoExecutor (#6990)

* add unit test for CryptoExecutor

* add Copyright

* [ISSUE#5695] Summer2021  add unit test for CryptoManager (#6989)

* add unit test for CryptoManager

* add unit test for CryptoManager

* [ISSUE#5695] Summer2021 add unit test for AesCrypto (#6988)

* add unit test for AesCrypto

* update AesCryptoTest

* Increased iv randomness

* add default Iv

* fix javadoc

* fix unit test

* defining plugin intergace

* Replace the client encryption and decryption actuator

* Replace the server encryption and decryption actuator

* add unit test

* add unit test

* remove old code

* fix NacosConfigServiceTest

* Encryption and decryption to achieve migration

Co-authored-by: 杨翊 SionYang <263976490@qq.com>
2022-03-16 10:54:11 +08:00
胡俊
2e07c6a0c1
Package scan (#7917)
* PayloadRegistry update use spi

* PayloadRegistry update use spi

* PayloadRegistry update use spi

* PayloadRegistry update use spi

* add test

* update comment

* remove code
rename code
2022-03-11 15:50:44 +08:00
胡俊
fdf90133a2
[ISSUE#7886]Feature package scan (#7895)
* for #7886

* nacos style

* nacos style

* code style

* .

* scan nacos style

* class reader

* class reader

* class reader

* class reader

* add comment

* update dependency

* update dependency

* rat update
check style update

* package change

* pdm exclude

* pdm update

* comment

* comment

* change pkg  final

* code structure update

* code style

* code style update
2022-03-08 20:11:21 +08:00
realJackSun
a4ce82221f [#7904] Bad smell code in ClientWorker.java 2022-03-08 10:43:50 +08:00
胡俊
9a26a65bc5
[ISSUE#7738]Client code should use enabled to pass parameters (#7756)
* use enabled

* add var
2022-02-16 10:25:46 +08:00
胡俊
4c45a3afd3
fix by zero error (#7724)
* fix by zero error

* fix by zero error --unit test
2022-02-07 10:38:37 +08:00
KomachiSion
32d7ce3b66 Repackage some class 2022-01-24 15:35:45 +08:00
KomachiSion
135ab364fe Move client spi to nacos-auth-plugin module 2022-01-21 15:40:02 +08:00
KomachiSion
4e98013f8e Solve conflicts. 2022-01-12 17:02:20 +08:00
KomachiSion
78de31dbdd Merge remote-tracking branch 'upstream/develop' into issue#5696-merge-develop
# Conflicts:
#	auth/src/main/java/com/alibaba/nacos/auth/common/AuthConfigs.java
#	client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java
#	client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingMaintainService.java
#	client/src/main/java/com/alibaba/nacos/client/naming/remote/AbstractNamingClientProxy.java
#	client/src/main/java/com/alibaba/nacos/client/naming/remote/NamingClientProxyDelegate.java
#	client/src/test/java/com/alibaba/nacos/client/naming/remote/AbstractNamingClientProxyTest.java
2022-01-12 16:52:14 +08:00
胡俊
7bb6cf2d13
[ISSUE#6999]Logback overrides the automatic refresh of application logback . issu… (#7596)
* Logback overrides the automatic refresh of application logback . issue #6999

* Logback overrides the automatic refresh of application logback . issue #6999
2022-01-11 16:58:06 +08:00
pengten
626f79ad51
Optimize code style and fix bugs (#7469) 2022-01-09 22:28:27 +08:00
胡俊
cdd83e2117
optimize NotifySubscriberRequest (#7545) 2022-01-07 18:08:22 +08:00
胡俊
a17098df24
The configuration cannot be updated in the case of single core (#7561)
* The configuration cannot be updated in the case of single core

* client threadPool

* log

* update style
2022-01-06 16:16:56 +08:00
李晓双 Li Xiao Shuang
f5ef53ee2e
Merge pull request #7551 from KomachiSion/develop-issue#7550
[ISSUE#7550] Add judgement for is subscribe services.
2022-01-04 19:31:17 +08:00
KomachiSion
d3c76ceb0b Fix Unit test. 2022-01-04 18:04:17 +08:00
KomachiSion
351a290a25 Fix #7550, add judgement for is subscribe services. 2022-01-04 17:55:03 +08:00
李晓双 Li Xiao Shuang
b64e17a891
Merge pull request #7537 from hujun-w-2/feature_add_error_message
Add error information to facilitate troubleshooting
2022-01-01 14:22:00 +08:00
hujun
6ce2eb8d7c Add error information to facilitate troubleshooting 2021-12-31 20:53:48 +08:00
hujun
ef6b0c186b optimize judge 2021-12-31 20:37:41 +08:00
MajorHe1
c6bae6ba1d
[ISSUE #7276] init security proxy when construct in NacosNamingMainta… (#7287)
* [ISSUE #7276] init security proxy when construct in NacosNamingMaintainService

* [ISSUE #7276] add something to make ci re-run
2021-12-21 12:51:21 +08:00
赵延
78f783f55b
fix push again problem. (#7412) 2021-12-15 11:11:50 +08:00
李晓双 Li Xiao Shuang
4c27c03052
Merge pull request #7311 from li-xiao-shuang/feature_7310
[ISSUE #7310] replace with <>
2021-12-01 11:51:52 +08:00
李晓双 Li Xiao Shuang
6c2704dd3d
[ISSUE #7308] replace with lambda (#7309)
* replace with lambda

* remote unused import
2021-11-30 16:05:24 +08:00
lixiaoshuang
3059cf8683 replace with <> 2021-11-29 22:51:29 +08:00
赵延
c0fb69bdb3
fix update task can't stop problem. (#7248) 2021-11-29 10:28:10 +08:00
onewe
e5cb831965
[ISSUE #7229] Optimize the constants to the utils package for the client module. Part 5 (#7259)
* add Constants.java

* Optimize the constants to the utils package for the client module
2021-11-24 11:17:40 +08:00
onewe
e4c5368147
[ISSUE #7229] Optimize the constants to the logging package for the client module. Part 2 (#7256)
* add Constants.java

* Optimize the constants to the logging package for the client module
2021-11-24 11:16:09 +08:00
李晓双 Li Xiao Shuang
c6adbcaa20
replace with lambda (#7218) 2021-11-12 10:56:54 +08:00
李晓双 Li Xiao Shuang
774fcf74ce
[ISSUE ##7214] replace with lambda (#7215)
* can be replaced with lambda

* can be replaced with <>

* replace with lambda

* delete unused import
2021-11-12 10:28:25 +08:00
李晓双 Li Xiao Shuang
80874749bf
[ISSUE #7220] replace with lambda (#7222)
* replace with lambda

* replace with lambda
2021-11-12 10:20:54 +08:00
brotherlu-xcq
f51985e0b1
[ISSUE #7504] fix the typos in TemplateUtils.java. (#7162) 2021-11-04 09:58:34 +08:00
赵延
290316d2ac
not publish server list change event when the servers is not change. (#7165) 2021-11-04 09:58:09 +08:00
李晓双 Li Xiao Shuang
6121bc7e05
can be replaced with <> (#7137) 2021-10-28 10:14:27 +08:00
李晓双 Li Xiao Shuang
72bbd24c88
[ISSUE ##7131] replaced with lambda (#7136)
* can be replaced with lambda

* can be replaced with <>
2021-10-28 10:14:08 +08:00
KomachiSion
6317a3fc89 Fix ram type plugin not login for config module. 2021-10-09 15:13:23 +08:00
KomachiSion
dd600537b0 For PMD and copyright. 2021-10-09 14:20:39 +08:00
杨翊 SionYang
77afc50350
[ISSUE#5696] Move and repackage some ram class to ram package. (#7040)
* move client.identity package to auth.ram.identity.

* move SignUtil to ram.utils.

* Add shutdown for auth plugin.

* Move SpasAdapter to new package.
2021-10-09 11:38:43 +08:00
杨翊 SionYang
7ccd0773f1
[ISSUE#5695] Replace the usage of Ram in naming and config module. (#7038)
* Change SecurityProxy usage

* Replace ram usage in naming module

* Replace ram usage in naming module

* Replace ram usage in config module

* Remove unused field and fix unit test.
2021-10-09 10:32:45 +08:00
杨翊 SionYang
1cfbd45fda
[ISSUE#5696] Add Ram client auth service impl. (#7036)
* Add Resource abstract.

* Add Ram client auth service impl.
2021-10-08 16:59:08 +08:00
杨翊 SionYang
cbf80cd297
[ISSUE#5696] repackage client (#7029)
* Rename and move classes make them more readable.

* Rename and move test classes.
2021-10-08 10:03:36 +08:00
Wuyunfan-BUPT
c771c5d2b9
[ISSUE # 5696] Replace original auth client (#6885)
* Replace auth client

* Replace auth client original implement

* Replace original auth client

* Revise client: combine function and modify name
2021-09-18 09:43:30 +08:00
Wuyunfan-BUPT
b825bac845
Add auth client: plugin and implement (#6883) 2021-09-15 11:55:31 +08:00
secbro2
562cf6f579
optimize the HashMap’s initialCapacity (#6714) 2021-08-24 09:36:59 +08:00