Commit Graph

4997 Commits

Author SHA1 Message Date
misakacoder
d1bd44625f
[ISSUE #12146] 修复当对操作类型为删除的配置进行回滚时,操作类型不显示问题 (#12164) 2024-06-03 10:40:32 +08:00
Leo Han
19c3adcbb6
[ISSUE#12074] Add Python sample for nacos (#12127)
* Add Python sample for nacos

* Delete example/src/main/python directory

Remove python sample

* Update for nacos show python  codeing
2024-06-03 10:13:22 +08:00
杨翊 SionYang
d212a52bc9
Merge pull request #12165 from alibaba/summer-ospp#10374
Summer ospp#10374
2024-06-03 10:11:53 +08:00
KomachiSion
0d8b04b470 For checkstyle. 2024-06-03 09:35:35 +08:00
KomachiSion
96ee0f37e6 Fix UT after sync newest branch 2024-05-31 16:59:43 +08:00
KomachiSion
5f7801b341 Merge branch 'refs/heads/upstream-develop' into summer-ospp#10374
# Conflicts:
#	client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingService.java
#	client/src/main/java/com/alibaba/nacos/client/naming/cache/ServiceInfoHolder.java
#	client/src/test/java/com/alibaba/nacos/client/naming/NacosNamingServiceTest.java
#	client/src/test/java/com/alibaba/nacos/client/naming/event/InstancesChangeEventTest.java
#	client/src/test/java/com/alibaba/nacos/client/naming/event/InstancesChangeNotifierTest.java
2024-05-31 15:21:48 +08:00
shalk(xiao kun)
04f9b86e45
upgrade module naocs-core from junit4 to junit5 (#12134) 2024-05-31 13:42:53 +08:00
杨翊 SionYang
79a5aa5eb6
Support aliyun ram v4 signature method. (#12162)
* Nacos client ram plugin support aliyun v4 signature.

* Add V4 sign UT

* For checkstyle.
2024-05-31 13:30:55 +08:00
shalk(xiao kun)
67da6d1b5f
upgrade module naocs-log from junit4 to junit5 (#12156) 2024-05-31 11:50:03 +08:00
shalk(xiao kun)
25155e480a
[ISSUE #12158] module naming upgrade to junit5 (#12159)
* upgrade module naocs-naming from junit4 to junit5

* upgrade module naocs-naming from junit4 to junit5
2024-05-31 11:49:42 +08:00
杨翊 SionYang
857e6113c4
No need init password when auth disabled. (#12153) 2024-05-31 09:24:21 +08:00
xpy01xpy
47786e6c0b
[ISSUE#11957] Fix init password for nacos username en-us (#12150)
* fix:add en

* build code

* fix:all state

* build code

* feat:register / request
2024-05-30 18:04:41 +08:00
杨翊 SionYang
98edf22e8c
Change duplicate create admin user api return code to 4xx. (#12149) 2024-05-30 15:28:29 +08:00
xpy01xpy
0a797223c0
[ISSUE#11957] Console support init password for nacos username (#12148)
* feat:add register pagg

* fix:i18n

* console-ui build

* fix

* fix
2024-05-30 14:53:41 +08:00
shalk(xiao kun)
bc039bc125
upgrade module naocs-console from junit4 to junit5 (#12136) 2024-05-29 10:43:13 +08:00
shalk(xiao kun)
6fa3069b7e
[issue #12043] module client refact unit test to junit5 (#12044)
* refact(client): remove junit4 to junit5

* fix code style

* format with code style

* fix code style

* fix codestyle
2024-05-24 10:15:17 +08:00
hth
992f10a1d6
[ISSUE #11957] AuthModule add admin exist (#12066)
* AuthModule add admin exist

* test fix

* fix state

* add state cache

* rename to auth_admin_request

* test fix

* auth_admin_request default value fix

* fix admin request
2024-05-24 10:14:40 +08:00
杨翊 SionYang
6bee5c47a9
update codecov token. (#12121) 2024-05-20 14:32:43 +08:00
shalk(xiao kun)
366c88e4d6
[issue #12081] module api upgrade junit4 to junit5 (#12082)
* refact(api): remove junit4 to junit5

* format with code style
2024-05-20 11:14:33 +08:00
Zachary
9363a088f0
[ISSUE #12060] fix too large ttl when auth disabled (#12090)
* [ISSUE #12060]  fix too large ttl when auth disabled

fix issue #12060

1. fix too large ttl when auth disabled
2. generate a valid token when key is valid even if auth disabled

* [ISSUE #12060]  add unit test

* [ISSUE alibaba#12060] fix style issue
2024-05-20 11:12:24 +08:00
shalk(xiao kun)
35e3994bcb
[ISSUE #12113] upgrade module naocs-common from junit4 to junit5 (#12116)
* upgrade module naocs-common from junit4 to junit5

* fix checkstyle
2024-05-20 11:10:23 +08:00
shalk(xiao kun)
94bf8661ad
[ISSUE #12114] upgrade module naocs-config from junit4 to junit5 (#12117)
* upgrade module naocs-config from junit4 to junit5

* fix checkstyle
2024-05-20 10:59:47 +08:00
shalk(xiao kun)
26176ddb3c
upgrade module naocs-consistency from junit4 to junit5 (#12118) 2024-05-20 10:46:53 +08:00
shalk(xiao kun)
dc0e46e9f9
upgrade module naocs-auth from junit4 to junit5 (#12105) 2024-05-16 09:41:05 +08:00
shalk(xiao kun)
67b672251e
upgrade module naocs-sys from junit4 to junit5 (#12107) 2024-05-16 09:40:12 +08:00
阿魁
5169f06654
Support TLS Grpc communication between clusters. (#11549)
* Fix exception code error.(#10925)

* [ISSUE #11456]Add RpcClusterClientTlsConfig.java.

* [ISSUE #11456]Add cluster rpc tls config.

* [ISSUE #11456]Add RpcClusterClientTlsConfig UT.

* [ISSUE #11456]Add cluster server tls.

* [ISSUE #11456]Remove supportCommunicationTypes.

* [ISSUE #11456]Fix unit testing and indentation handling

* [ISSUE #11456]Indentation handling

* [ISSUE #11456]Fix unit test and rpc constants.

* [ISSUE #11456]Fix unit test.

* [ISSUE #11456]Optimize code.

* [ISSUE #11456]Fix check style.

* [ISSUE #11456]Add unit test.

* [ISSUE #11456]Fix check style.

* [ISSUE #11456]Update unit test.

* [ISSUE #11456]Fix unit test.

* [ISSUE #11456]Add License.

* [ISSUE #11456]Fix unit test.

* [ISSUE #11456]Fix unit test.

* [ISSUE #11456]Rename class.

* [ISSUE #11456]Optimize code.

* [ISSUE #11456]Handling indentation issues.

* [ISSUE #11456]Handling indentation issues.

* [ISSUE #11456]Handling indentation issues.

* [ISSUE #11456]Optimize code.

* [ISSUE #11456]Fix unit test.

* [ISSUE #11456]Fix unit testing and compatibility handling.

* [ISSUE #11456]Support TLS GRPC communication between clusters.

* [ISSUE #11456] Fix bugs.

* [ISSUE #11456]Fix bugs.

* [ISSUE #11456]Adjusting parameter names (compatibility considerations).

* [ISSUE #11456]Resolve conflict.

* [ISSUE #11456]Remove ProtocolNegotiatorBuilderManager and abstract ProtocolNegotiatorBuilderSingleton.

* [ISSUE #11456]Remove CommunicationType.java.

* [ISSUE #11456]Optimize code.

* [ISSUE #11456]Revert author.

* Splitting RpcTlsConfigFactory.

* Split RpcConstants.

* Divided RpcTlsConfigFactory, adjusted cluster parameters to "nacos.remote.peer.rpc.tls".

* check style.

* check style.

* unit test.
2024-05-15 11:13:29 +08:00
shenyao
6fe43637c0
[ISSUE #11967] Can not aquire the specific config (#12025)
* [ISSUE #11967] Can not aquire the specific config

* [ISSUE #11967] Can not aquire the specific config

* [ISSUE #11967] Can not aquire the specific config

* [ISSUE #11967] Can not aquire the specific config

* [ISSUE #11967] Can not aquire the specific config
2024-05-15 11:04:32 +08:00
mikolls
9a6ec0ca3d
[ISSUE#12022] Fix nacos datasource plugin ClassCastException bug (#12… (#12031)
* [ISSUE#12022] Fix nacos datasource plugin ClassCastException bug (#12022)

* [ISSUE#12022] Fix nacos datasource plugin ClassCastException bug (#12022)

* [ISSUE#12022] Fix nacos datasource plugin ClassCastException bug (#12022)

* [ISSUE#12022] Fix nacos datasource plugin ClassCastException bug (#12022)

* [ISSUE#12022] Fix MapperManagerTest test (#12022)

* [ISSUE#12022] Fix MapperManagerTest test (#12022)
2024-05-15 10:56:54 +08:00
Happy-26
15c9663d31
[ISSUE #12072] Add logic that does not impose any limit when totalCountLimit is less than 0. (#12073)
* Fixed an issue where the maximum number of anti-fragile plug-ins implemented by default in Nacos is one more than the actual number of connections.

* bug fix : 修改删除空服务实例时,服务名和分组名没有正确解析的问题

* Update ConfigChangeAspect.java

修改configChangeRequest.setArg()的key为serviceType

* Update ConfigChangeAspect.java

* Update ConfigChangeRequest.java

* Update NacosConnectionControlManager.java

Add logic to not impose any limit when totalCountLimit equals -1.

* Update NacosConnectionControlManager.java

* Update NacosConnectionControlManagerTest.java

Add unit test cases when LimitCount is less than 0

* Update NacosConnectionControlManager.java

Modify comment
2024-05-15 10:39:26 +08:00
shalk(xiao kun)
4e2bcb9277
module address upgrade junit4 to junit5 (#12084) 2024-05-15 10:37:53 +08:00
JianweiWang
47dd078545
fix #11984 (#12091) 2024-05-14 13:37:08 +08:00
Zac
b047a90fba
[issue 12062]bugfix (#12086) 2024-05-11 13:38:45 +08:00
xYohn
7c461fdf67
[ISSUE #12046] fix console-ui bug when using encryption-plugin (#12061)
* #12046 console-ui should not offer encryptedDataKey field to API

* #12046 when containing encryptedDataKey,it should not execute encryption in v2 API (same as the v1 API)
2024-05-07 16:18:36 +08:00
杨翊 SionYang
ed64d1f055
Depend nacos logback adapter directly. (#12059) 2024-05-06 14:15:10 +08:00
caoyanan666
99807358df
feat(develop): [ISSUES #12013] startup.sh support environment CUSTOM_NACOS_MEMORY (#12014)
* use DISABLE_NACOS_DEFAULT_MEMORY_SETTING

* use CUSTOM_NACOS_MEMORY

* Code optimization

* remove unuse

* startup.cmd support CUSTOM_NACOS_MEMORY environment variable

---------

Co-authored-by: caoyanan <caoyanan@growingio.com>
2024-05-06 11:49:19 +08:00
shenyao
8d6f87eda6
[ISSUE #11926] The abnormal exit mechanism does not take effect (#12045) 2024-05-06 11:44:28 +08:00
hth
70ad2eb991
[ISSUE #11957] Remove default password (#11991)
* Remove default password

* admin role check fix

* remove tmp admin
2024-04-29 10:04:00 +08:00
shalk(xiao kun)
b2e506d7fe
[WIP] add junit jupiter (#12024)
* add junit5 in compatible mode

* add junit5 jupiter and mockito jupiter
2024-04-29 09:51:28 +08:00
shalk(xiao kun)
b016e79dfe
fix client log config (#12040) 2024-04-29 09:34:53 +08:00
杨翊 SionYang
da3e88b3d4
[ISSUE#11956] Fix logging module old bugs (#12011)
* Remove log4j dependencies from nacos-client.

* Fix logback listener don't add to context.

* Fix can't adapter low version logback below 1.1.10.

* For checkstyle.
2024-04-24 18:07:34 +08:00
shalk(xiao kun)
de10c07146
clean code remove unused dependency javatuple (#11976) 2024-04-24 15:51:58 +08:00
cxhello
17dea53d20
fix: CVE-2024-22262 Upgrade Spring to 5.3.34 (#11980) (#12003) 2024-04-24 15:44:30 +08:00
杨翊 SionYang
4d30b042ee
[ISSUE #11956] Move logback 12 and log4j2 adapter to single module. (#11996)
* Move some basic logging classes into common module.

* Move logback 12 version adapter to single module.

* For checkstyle.

* Enhance logger adapter pom.

* Refactor the adapter initialization logic to avoid spi loader error.

* Move log4j2 logger adapter to single module.

* Fix the ut cover and create useless dir.
2024-04-23 10:24:38 +08:00
cx
720519b1dc
[ISSUE #11994]修复HttpRequestInstanceBuilderTest出现的空指针问题,优化SnowFlakeInstanceIdGenerator初始化流程 (#11995)
* [ISSUE #11994] fix: Initialize EnvUtil's variable environment in HttpRequestInstanceBuilderTest

* refactor: Optimize the initialization process of SnowFlakeInstanceIdGenerator

* refactor: optimize the initialization process of SnowFlakeInstanceIdGenerator.
2024-04-23 09:31:11 +08:00
Happy-26
96814ff00d
[ISSUE #11968] Buf fix: Use put() instead of putIfAbsent() for setArg() in ConfigChangeRequest (#11971)
* Fixed an issue where the maximum number of anti-fragile plug-ins implemented by default in Nacos is one more than the actual number of connections.

* bug fix : 修改删除空服务实例时,服务名和分组名没有正确解析的问题

* Update ConfigChangeAspect.java

修改configChangeRequest.setArg()的key为serviceType

* Update ConfigChangeAspect.java

* Update ConfigChangeRequest.java
2024-04-22 10:53:11 +08:00
温安适
2bb7193d1b
Bug fix:10639 (#11972)
* Update LocalSimpleCountRateCounter.java

fixbug

* Update LocalSimpleCountRateCounter.java

bugfix

* fix:默认的nacos反脆弱插件的问题

* fix:默认的nacos反脆弱插件的问题

* fix:默认的nacos反脆弱插件的问题

* fix:默认的nacos反脆弱插件的问题

* fix:默认的nacos反脆弱插件的问题,调整为tryAdd

* fix:默认的nacos反脆弱插件的问题,调整为tryAdd

* 调整测试方式,保障流水线成功

* 重构PageHandlerAdapterFactory,这里将handlerAdapters,handlerAdapterMap设置为unmodifiable

* 重构PageHandlerAdapterFactory,这里将handlerAdapters,handlerAdapterMap设置为unmodifiable

* fix: 10639, 调整encrypted_data_key 为varchar(1024)
2024-04-22 10:49:08 +08:00
杨翊 SionYang
5c19ac12ad
[#11956] Refactor nacos client logging module, use SPI load current logger adapter. (#11964)
* Add NacosLoggingAdapter

* Refactor Logback Logging adapter to Nacos logging adapter.

* Refactor log4j2 Logging adapter to Nacos logging adapter.

* Remove useless abstract class

* Add and Adapt log4j2 impl to SPI.

* Remove useless method in NacosLogbackConfigurator

* Fix IT ClassNotFound problem
2024-04-16 13:52:28 +08:00
Happy-26
2005ca6f90
[ISSUE #11951] Fix the problem that the servicename and groupname are not resolved correctly when deleting an empty service instance (#11955)
* Fixed an issue where the maximum number of anti-fragile plug-ins implemented by default in Nacos is one more than the actual number of connections.

* bug fix : 修改删除空服务实例时,服务名和分组名没有正确解析的问题
2024-04-15 15:20:02 +08:00
hnyyghk
9b2cc662ec
[ISSUE #11902] Fix request and response reflect-config.json (#11940)
* Update request reflect-config.json

add deletion graalvm reflect config

* Update response reflect-config.json

add deletion graalvm reflect config
2024-04-11 15:30:10 +08:00
hnyyghk
fb597084c5
fix Navigator clipboard api needs a secure context (https) (#11942) 2024-04-11 15:29:09 +08:00